Instructions to use WhirlwindAI/Translate-25T with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WhirlwindAI/Translate-25T with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="WhirlwindAI/Translate-25T")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("WhirlwindAI/Translate-25T") model = AutoModelForSeq2SeqLM.from_pretrained("WhirlwindAI/Translate-25T") - Notebooks
- Google Colab
- Kaggle
| language: | |
| - multilingual | |
| - en | |
| - fr | |
| - es | |
| - zh | |
| - ru | |
| - ar | |
| - ja | |
| - ko | |
| - it | |
| - pt | |
| - de | |
| - hi | |
| - id | |
| - tr | |
| - vi | |
| - pl | |
| - uk | |
| - ro | |
| - sv | |
| - nl | |
| license: apache-2.0 | |
| library_name: transformers | |
| pipeline_tag: translation | |
| tags: | |
| - translation | |
| - multilingual | |
| - mt5 | |
| - machine-translation | |
| - whirlwindai | |
| <p align="center"> | |
| <img src="https://capsule-render.vercel.app/api?type=blur&height=240&text=Translate-25T&fontSize=55&fontColor=ffffff&animation=twinkling&color=gradient&customColorList=12,20,24,30"/> | |
| </p> | |
| <div align="center"> | |
| <img src="https://readme-typing-svg.demolab.com?font=Space+Grotesk&weight=700&size=28&duration=2500&pause=1000&color=06B6D4¢er=true&vCenter=true&width=850&lines=Translate-25T;Multilingual+Translation.+18%2B+Languages.;Built+for+Speed+and+Clarity." /> | |
| <br> | |
| <img src="https://img.shields.io/badge/Parameters-300M-06B6D4?style=for-the-badge"> | |
| <img src="https://img.shields.io/badge/Languages-25%2B-10B981?style=for-the-badge"> | |
| <img src="https://img.shields.io/badge/Base-mT5--Small-0EA5E9?style=for-the-badge"> | |
| <img src="https://img.shields.io/badge/License-Apache--2.0-22C55E?style=for-the-badge"> | |
| </div> | |
| --- | |
| # The Idea | |
| # The Idea | |
| Translate‑25T is a multilingual translation model fine‑tuned from **google/mt5‑small** on the **OPUS‑100** dataset. It supports translation between **English and 18+ other languages** in both directions, making it a practical tool for research, education, and lightweight multilingual applications. | |
| The focus is on **balance**: delivering solid translation quality while keeping inference fast and the model compact enough to run in resource‑constrained environments. | |
| <p align="center"> | |
| <img src="https://capsule-render.vercel.app/api?type=rect&height=4&color=gradient&customColorList=12,20,24,30"/> | |
| </p> | |
| --- | |
| # Quick Start | |
| ```python | |
| from transformers import MT5ForConditionalGeneration, AutoTokenizer | |
| model = MT5ForConditionalGeneration.from_pretrained("WhirlwindAI/Translate-25L") | |
| tokenizer = AutoTokenizer.from_pretrained("WhirlwindAI/Translate-25L") | |
| def translate(text, src, tgt): | |
| prompt = f"translate {src} to {tgt}: {text}" | |
| inputs = tokenizer(prompt, return_tensors="pt", truncation=True) | |
| outputs = model.generate(**inputs, max_new_tokens=128, num_beams=4) | |
| return tokenizer.decode(outputs[0], skip_special_tokens=True) | |
| print(translate("Hello, how are you?", "en", "fr")) | |
| ``` | |
| <p align="center"> | |
| <img src="https://capsule-render.vercel.app/api?type=rect&height=4&color=gradient&customColorList=12,20,24,30"/> | |
| </p> | |
| --- | |
| # Supported Languages | |
| # Supported Languages | |
| Translate‑25T covers a diverse set of languages, including many high‑resource European languages, as well as several Asian and Middle Eastern languages. | |
| | Code | Language | Code | Language | | |
| |------|----------|------|----------| | |
| | 🇬🇧 en | English | 🇩🇪 de | German | | |
| | 🇫🇷 fr | French | 🇪🇸 es | Spanish | | |
| | 🇷🇺 ru | Russian | 🇨🇳 zh | Chinese | | |
| | 🇯🇵 ja | Japanese | 🇰🇷 ko | Korean | | |
| | 🇸🇦 ar | Arabic | 🇮🇹 it | Italian | | |
| | 🇵🇹 pt | Portuguese | 🇳🇱 nl | Dutch | | |
| | 🇮🇳 hi | Hindi | 🇮🇩 id | Indonesian | | |
| | 🇹🇷 tr | Turkish | 🇻🇳 vi | Vietnamese | | |
| | 🇵🇱 pl | Polish | 🇺🇦 uk | Ukrainian | | |
| | 🇷🇴 ro | Romanian | 🇸🇪 sv | Swedish | | |
| <p align="center"> | |
| <img src="https://capsule-render.vercel.app/api?type=rect&height=4&color=gradient&customColorList=12,20,24,30"/> | |
| </p> | |
| --- | |
| # Evaluation | |
| We evaluated Translate‑25T on the **OPUS‑100 test set** using **50 samples per language pair**. The results below show BLEU scores, inference speed, and a combined radar view. | |
| ### BLEU Scores | |
|  | |
| ### Inference Speed | |
|  | |
| ### Radar Comparison | |
|  | |
| <p align="center"> | |
| <img src="https://capsule-render.vercel.app/api?type=rect&height=4&color=gradient&customColorList=12,20,24,30"/> | |
| </p> | |
| --- | |
| # Sample Translation (French → English) | |
| | Input (French) | Output (English) | | |
| |----------------|------------------| | |
| | `Bonjour, comment allez‑vous aujourd'hui ?` | `Hello, how are you here now?` | | |
| <p align="center"> | |
| <img src="https://capsule-render.vercel.app/api?type=rect&height=4&color=gradient&customColorList=12,20,24,30"/> | |
| </p> | |
| --- | |
| # Model Details | |
| | Property | Value | | |
| |-----------|-------| | |
| | Base Model | google/mt5-small | | |
| | Parameters | 300 Million | | |
| | Architecture | mT5 (Encoder‑Decoder) | | |
| | Training Data | OPUS-100 | | |
| | Languages | 18+ | | |
| | Framework | Hugging Face Transformers | | |
| | License | Apache 2.0 | | |
| <p align="center"> | |
| <img src="https://capsule-render.vercel.app/api?type=rect&height=4&color=gradient&customColorList=12,20,24,30"/> | |
| </p> | |
| --- | |
| # Highlights | |
| - **Multilingual**: translate between English and 18+ languages. | |
| - **Efficient**: ~300M parameters – lightweight enough for many production scenarios. | |
| - **Fast**: average inference speed of **52.2 tokens/second** on a T4 GPU. | |
| - **Research‑friendly**: open weights and Apache 2.0 license. | |
| - **Practical**: trained on a diverse set of parallel sentences from OPUS‑100. | |
| <p align="center"> | |
| <img src="https://capsule-render.vercel.app/api?type=rect&height=4&color=gradient&customColorList=12,20,24,30"/> | |
| </p> | |
| --- | |
| # Limitations | |
| - Performance varies across language pairs; high‑resource languages (e.g., English–French) achieve the best BLEU scores. | |
| - The model may struggle with domain‑specific terminology, slang, or very long documents. | |
| - Low‑resource languages are not covered; additional fine‑tuning is recommended for specialised use cases. | |
| <p align="center"> | |
| <img src="https://capsule-render.vercel.app/api?type=rect&height=4&color=gradient&customColorList=12,20,24,30"/> | |
| </p> | |
| --- | |
| # Acknowledgements | |
| Built by **WhirlwindAI**. We thank the Hugging Face team for their ecosystem, and the OPUS project for providing the training data. | |
| <p align="center"> | |
| <img src="https://capsule-render.vercel.app/api?type=rect&height=4&color=gradient&customColorList=12,20,24,30"/> | |
| </p> | |
| --- | |
| # License | |
| This model is released under the **Apache 2.0** license. | |
| <p align="center"> | |
| <img src="https://capsule-render.vercel.app/api?type=rect&height=4&color=gradient&customColorList=12,20,24,30"/> | |
| </p> | |
| --- | |
| <div align="center"> | |
| ### 🌪️ WhirlwindAI | |
| *Practical AI, built with care.* | |
| <br> | |
| <img src="https://capsule-render.vercel.app/api?type=waving&height=120§ion=footer&color=0:06B6D4,100:10B981"/> | |
| </div> |