from transformers import BertConfig config = BertConfig.from_pretrained("NbAiLab/nb-bert-large", vocab_size=50265) config.save_pretrained("./")