from transformers import XLMRobertaForMaskedLM, XLMRobertaConfig | |
config = XLMRobertaConfig.from_pretrained("./") | |
model = XLMRobertaForMaskedLM.from_pretrained("./",config=config,from_flax=True) | |
model.save_pretrained("./") | |
from transformers import XLMRobertaForMaskedLM, XLMRobertaConfig | |
config = XLMRobertaConfig.from_pretrained("./") | |
model = XLMRobertaForMaskedLM.from_pretrained("./",config=config,from_flax=True) | |
model.save_pretrained("./") | |