from transformers import RobertaConfig config = RobertaConfig.from_pretrained("FacebookAI/roberta-large", vocab_size=50265) config.save_pretrained("./")