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