Notebook
!conda install -c huggingface transformers !conda install -c conda-forge sentencepiece
# torch from transformers import BertConfig, BertModel # Building the config config = BertConfig() # Building the model from the config model = BertModel(config)
# torch from transformers import BertModel model = BertModel.from_pretrained('bert-base-cased')
model.save_pretrained('directorio/en/mi/computador').
ls directorio/en/mi/computador config.json tf_model.h5
# torch import torch model_inputs = torch.tensor(encoded_sequences)