from transformers import XLMRobertaConfig as Config, XLMRobertaTokenizer as Tokenizer model_id = "xlm-roberta-base" config = Config.from_pretrained(model_id) config.save_pretrained("./") tokenizer = Tokenizer.from_pretrained(model_id) tokenizer.save_pretrained("./")