fix: model_max_length to 514 ee2b827
james.ryu commited on
How to use klue/roberta-small with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="klue/roberta-small") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("klue/roberta-small")
model = AutoModelForMaskedLM.from_pretrained("klue/roberta-small")