nb-roberta-base-scandi-1e4 / convert_model.py
pere's picture
pytorch model
69f03f3
raw
history blame
141 Bytes
from transformers import XLMRobertaForMaskedLM
model = XLMRobertaForMaskedLM.from_pretrained(".",from_flax=True)
model.save_pretrained(".")