add model 340ec6a
Félix Marty commited on
How to use fxmarty/tiny-marian with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("fxmarty/tiny-marian")
model = AutoModelForSeq2SeqLM.from_pretrained("fxmarty/tiny-marian", device_map="auto")