How to use from the
Use from the
Transformers library
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("sshleifer/tiny-marian-en-de")
model = AutoModelForSeq2SeqLM.from_pretrained("sshleifer/tiny-marian-en-de", device_map="auto")
Quick Links