roberta-debug-32 / copy_tokenizer_config.py
pere's picture
first push
cb63820
raw
history blame
312 Bytes
# Code used for copying tokenizer and config
from transformers import XLMRobertaTokenizerFast, XLMRobertaConfig
tokenizer = XLMRobertaTokenizerFast.from_pretrained("xlm-roberta-base")
config = XLMRobertaConfig.from_pretrained("xlm-roberta-base")
tokenizer.save_pretrained("./")
config.save_pretrained("./")