Overview
Translate-15L is a lightweight multilingual translation model trained on OPUS100.
Rather than maximizing parameter count, the model focuses on providing practical multilingual translation with fast inference and a compact footprint.
It supports translation between English and 14 additional languages in both directions.
Quick Start
from transformers import AutoTokenizer, T5ForConditionalGeneration
model = T5ForConditionalGeneration.from_pretrained(
"WhirlwindAI/Translate-15L"
)
tokenizer = AutoTokenizer.from_pretrained(
"WhirlwindAI/Translate-15L"
)
text = "Hello, how are you?"
prompt = f"translate en to fr: {text}"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
**inputs,
max_new_tokens=50,
num_beams=4
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Supported Languages
| Code | Language |
|---|---|
| ๐ฌ๐ง en | English |
| ๐ช๐ธ es | Spanish |
| ๐ซ๐ท fr | French |
| ๐ฉ๐ช de | German |
| ๐ฎ๐น it | Italian |
| ๐ต๐น pt | Portuguese |
| ๐ณ๐ฑ nl | Dutch |
| ๐ท๐บ ru | Russian |
| ๐จ๐ณ zh | Chinese |
| ๐ฏ๐ต ja | Japanese |
| ๐ฐ๐ท ko | Korean |
| ๐ธ๐ฆ ar | Arabic |
| ๐ฎ๐ณ hi | Hindi |
| ๐น๐ท tr | Turkish |
| ๐ป๐ณ vi | Vietnamese |
Performance
Highlights
| Direction | BLEU |
|---|---|
| ๐ฌ๐ง โ ๐ซ๐ท | 32.43 |
| ๐ฉ๐ช โ ๐ฌ๐ง | 16.93 |
| ๐ฌ๐ง โ ๐ช๐ธ | 6.51 |
| ๐ซ๐ท โ ๐ฌ๐ง | 5.13 |
| ๐ฌ๐ง โ ๐ต๐น | 5.05 |
| ๐ฌ๐ง โ ๐ฎ๐น | 4.15 |
Speed
โก ~8,151 Tokens / Second
Fast enough for lightweight multilingual applications while remaining compact.
See speed.txt for the complete benchmark.
Examples
Notes
- English โ 14 Languages
- Optimized for compact deployment
- Trained on OPUS100
- Best performance on high-resource European languages
- Performance on low-resource languages remains limited
- Downloads last month
- -