from transformers import RobertaConfig config = RobertaConfig.from_pretrained("roberta-base", vocab_size=25165) config.save_pretrained("./")