Downloads · 30 days
12
16% of all-time downloads
iliemihai/madlad400-3b-mt
madlad400-3b-mt is a machine learning model from iliemihai. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
T5ForConditionalGeneration files for the Madlad-400 3B parameter MT model.
Downloads · 30 days
12
16% of all-time downloads
All-time downloads
77
Public
Parameters
2.9B
23.5 GB on disk
Likes
2
Public
Click a slice to open those files.
.bin11.8 GB · 50%
From the Hugging Face model README
T5ForConditionalGeneration files for the Madlad-400 3B parameter MT model.
from transformers import T5ForConditionalGeneration, T5Tokenizer, GenerationConfig
model = T5ForConditionalGeneration.from_pretrained("iliemihai/madlad400-3b-mt")
tokenizer = T5Tokenizer.from_pretrained("iliemihai/madlad400-3b-mt")
text = """The quick brown fox jumped over the laisy dog."""
input_ids = tokenizer.encode(f"<2ro> {text} </s>", return_tensors="pt")
outputs = model.generate(input_ids,
do_sample=True,
early_stopping=True,
top_p=0.92,
top_k=50,
temperature=0.3,
max_length=256)
print(tokenizer.decode(outputs[0]))
**KUDOS TO jbochi FOR RELEASING THE COLAB AND CONVERSION CODE Colab to generate these files is here.