unicamp-dl/mmarco
Updated • 2.81k • 94
How to use unicamp-dl/mt5-3B-mmarco-en-pt with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("unicamp-dl/mt5-3B-mmarco-en-pt")
model = AutoModelForSeq2SeqLM.from_pretrained("unicamp-dl/mt5-3B-mmarco-en-pt", device_map="auto")Base model
google/mt5-large