Translation
Transformers
PyTorch
English
Hindi
viuai
viutranslate
sarus-500m
nmt
english-to-hindi
hindi-to-english
indic
devanagari
bfloat16
zero-synthetic
Instructions to use ViuAI/ViuTranslate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ViuAI/ViuTranslate 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="ViuAI/ViuTranslate")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ViuAI/ViuTranslate", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Design upgrade: Sleek tier-1 model card matching ViuAI-500M standards
Browse files
README.md
CHANGED
|
@@ -1,141 +1,146 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
- hi
|
| 5 |
-
license: apache-2.0
|
| 6 |
-
library_name: transformers
|
| 7 |
-
pipeline_tag: translation
|
| 8 |
tags:
|
|
|
|
|
|
|
|
|
|
| 9 |
- translation
|
| 10 |
- nmt
|
| 11 |
- english-to-hindi
|
| 12 |
- hindi-to-english
|
| 13 |
- indic
|
| 14 |
- devanagari
|
| 15 |
-
- sarus-500m
|
| 16 |
-
- viuai
|
| 17 |
- bfloat16
|
| 18 |
- pytorch
|
| 19 |
- zero-synthetic
|
| 20 |
datasets:
|
| 21 |
- cfilt/iitb-english-hindi
|
| 22 |
- ai4bharat/samanantar
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
widget:
|
| 27 |
-
- text: "The sun rises in the east and sets in the west."
|
| 28 |
-
example_title: "General (Direct Paste Mode)"
|
| 29 |
-
- text: "Consistency and discipline are the keys to long-term success."
|
| 30 |
-
example_title: "Proverb (Direct Paste Mode)"
|
| 31 |
-
- text: "Translate to Hindi: 'Artificial intelligence is reshaping global healthcare.'"
|
| 32 |
-
example_title: "Tech / Science (Command Mode)"
|
| 33 |
-
- text: "सूरज पूर्व में उगता है और पश्चिम में डूबता है।"
|
| 34 |
-
example_title: "Hindi to English (Direct Paste Mode)"
|
| 35 |
-
- text: "सफलता का कोई शॉर्टकट नहीं होता, निरंतर प्रयास ही कुंजी है।"
|
| 36 |
-
example_title: "Hindi to English (Proverb)"
|
| 37 |
---
|
| 38 |
|
| 39 |
<div align="center">
|
| 40 |
|
| 41 |
# 🌐 ViuTranslate-500M
|
| 42 |
-
### *Industry-Standard English ↔ Hindi Neural Machine Translation Engine*
|
| 43 |
|
| 44 |
-
|
| 45 |
-
[](https://huggingface.co/ViuAI/ViuTranslate)
|
| 46 |
-
[](https://huggingface.co/datasets/ViuAI/ViuTranslate-Data)
|
| 47 |
-
[](https://www.apache.org/licenses/LICENSE-2.0)
|
| 48 |
-
[](https://huggingface.co/ViuAI/ViuTranslate)
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
-
|
| 55 |
|
| 56 |
---
|
| 57 |
|
| 58 |
-
|
| 59 |
|
| 60 |
-
|
| 61 |
|
| 62 |
-
|
| 63 |
|
| 64 |
-
|
| 65 |
-
- **Zero Synthetic Data Guarantee:** Trained on 100,000+ authentic, human-translated sentence pairs sourced strictly from academic gold standards (**CFILT, IIT Bombay** and **AI4Bharat Samanantar**). Zero LLM-prompted or templated strings.
|
| 66 |
-
- **Direct Paste Mode (Google Translate Experience):** Input plain English and get pure Hindi. Input plain Hindi and get pure English. No meta-commentary, no conversational tokens.
|
| 67 |
-
- **Instruction / Command Mode:** Fully supports command queries (`Translate to Hindi: ...` and `Translate to English: ...`).
|
| 68 |
-
- **100% Devanagari Vocabulary Coverage:** 64,003 byte-fallback BPE vocabulary audited with **exactly 0 `<unk>` tokens** across standard benchmark corpora.
|
| 69 |
-
- **Ultra-Fast Edge & Server Inference:** Sub-15ms latency per sentence on modern GPUs (NVIDIA RTX 5090, RTX 4090, T4, A100).
|
| 70 |
|
| 71 |
---
|
| 72 |
|
| 73 |
-
##
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
| **Vocabulary Size** | **64,003** | Byte-fallback BPE with full Devanagari Unicode coverage |
|
| 86 |
-
| **Precision** | **BFloat16 / FP16** | Native support for Ampere, Ada Lovelace, Hopper, and Blackwell |
|
| 87 |
|
| 88 |
---
|
| 89 |
|
| 90 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
-
|
| 93 |
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
|
| 101 |
-
### 🛡️
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
- Enforced $0.40 \le \frac{\text{len(en)}}{\text{len(hi)}} \le 2.40$ to eliminate truncated pairs.
|
| 107 |
-
3. **Hygiene & Sanitation:**
|
| 108 |
-
- 100% elimination of HTML tags, XML, source code blocks, and URLs.
|
| 109 |
-
4. **Bidirectional Expansion:**
|
| 110 |
-
- Every clean pair is trained in both directions (English $\rightarrow$ Hindi and Hindi $\rightarrow$ English) in both Direct and Command modalities, yielding **200,000 active training samples (13.6M tokens)**.
|
| 111 |
|
| 112 |
---
|
| 113 |
|
| 114 |
## 🚀 Quickstart & Inference
|
| 115 |
|
| 116 |
-
### 1.
|
|
|
|
| 117 |
```bash
|
| 118 |
pip install torch tokenizers huggingface_hub
|
| 119 |
```
|
| 120 |
|
| 121 |
-
### 2. Python Inference
|
|
|
|
| 122 |
```python
|
| 123 |
import torch
|
| 124 |
from tokenizers import Tokenizer
|
| 125 |
from huggingface_hub import hf_hub_download
|
| 126 |
-
from model import ViuAI
|
| 127 |
-
from config import ViuAIConfig
|
| 128 |
|
| 129 |
-
#
|
| 130 |
-
|
|
|
|
|
|
|
|
|
|
| 131 |
|
| 132 |
-
|
| 133 |
-
|
|
|
|
|
|
|
|
|
|
| 134 |
|
|
|
|
| 135 |
tokenizer = Tokenizer.from_file(tok_path)
|
| 136 |
cfg = ViuAIConfig(vocab_size=64003, context_length=2048)
|
| 137 |
model = ViuAI(cfg).to(device)
|
| 138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
state = torch.load(ckpt_path, map_location=device, weights_only=False)
|
| 140 |
model.load_state_dict(state.get("model_state_dict", state), strict=False)
|
| 141 |
model.eval()
|
|
@@ -144,69 +149,65 @@ def translate(text: str) -> str:
|
|
| 144 |
prompt = f"<|user|>\n{text.strip()}<|endofturn|>\n<|assistant|>\n"
|
| 145 |
inp = torch.tensor([tokenizer.encode(prompt).ids], device=device)
|
| 146 |
with torch.no_grad():
|
| 147 |
-
out = model.generate(inp, max_new_tokens=
|
| 148 |
return tokenizer.decode(out[0][inp.shape[1]:].tolist()).replace("<|endofturn|>", "").strip()
|
| 149 |
|
| 150 |
-
#
|
| 151 |
-
print(translate("
|
| 152 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
|
| 154 |
-
|
| 155 |
-
#
|
|
|
|
|
|
|
| 156 |
```
|
| 157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
---
|
| 159 |
|
| 160 |
## 📁 Repository Structure
|
| 161 |
|
| 162 |
```
|
| 163 |
-
|
| 164 |
-
├── README.md
|
| 165 |
-
├── config.py
|
| 166 |
-
├── model.py
|
| 167 |
-
├── tokenizer.json
|
| 168 |
-
├── tokenizer_config.json
|
| 169 |
-
├── special_tokens_map.json
|
| 170 |
-
├── generation_config.json
|
| 171 |
│
|
| 172 |
-
├── scripts/
|
| 173 |
-
│ ├── train.py
|
| 174 |
-
│ ├── inference.py
|
| 175 |
-
│ └── evaluate.py
|
| 176 |
│
|
| 177 |
-
└── runners/
|
| 178 |
-
├── run_5090.py
|
| 179 |
-
└── run_kaggle.py
|
| 180 |
```
|
| 181 |
|
| 182 |
---
|
| 183 |
|
| 184 |
-
##
|
| 185 |
-
|
| 186 |
-
| Hardware | Precision | Effective Batch Size | Training Throughput | 3 Epochs Time (100K Pairs) |
|
| 187 |
-
|---|---|---|---|---|
|
| 188 |
-
| **NVIDIA RTX 5090 (32GB)** | **BFloat16** | **64** (Micro 32 $\times$ Accum 2) | **~105,000 tok/sec** | **~6.5 Minutes** |
|
| 189 |
-
| **NVIDIA RTX 4090 (24GB)** | BFloat16 | 64 (Micro 16 $\times$ Accum 4) | ~55,000 tok/sec | ~12 Minutes |
|
| 190 |
-
| **NVIDIA T4 (16GB - Kaggle)**| Float16 | 64 (Micro 8 $\times$ Accum 8) | ~12,500 tok/sec | ~20 Minutes |
|
| 191 |
-
|
| 192 |
-
---
|
| 193 |
-
|
| 194 |
-
## 📜 Citation & Attribution
|
| 195 |
-
|
| 196 |
-
If you use **ViuTranslate-500M** or the **ViuTranslate-Data** parallel corpus in your research or application, please cite:
|
| 197 |
|
| 198 |
```bibtex
|
| 199 |
@misc{viutranslate2026,
|
| 200 |
author = {ViuAI Research Team},
|
| 201 |
-
title = {ViuTranslate-500M: High-Performance Neural Machine Translation
|
| 202 |
year = {2026},
|
| 203 |
publisher = {Hugging Face},
|
| 204 |
journal = {Hugging Face Model Hub},
|
| 205 |
howpublished = {\url{https://huggingface.co/ViuAI/ViuTranslate}}
|
| 206 |
}
|
| 207 |
```
|
| 208 |
-
|
| 209 |
-
### Acknowledgements
|
| 210 |
-
We acknowledge the contributions of:
|
| 211 |
-
- **CFILT, IIT Bombay** for the *IIT Bombay English-Hindi Parallel Corpus*.
|
| 212 |
-
- **AI4Bharat, IIT Madras** for the *Samanantar Parallel Corpus*.
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
- hi
|
|
|
|
|
|
|
|
|
|
| 6 |
tags:
|
| 7 |
+
- viuai
|
| 8 |
+
- viutranslate
|
| 9 |
+
- sarus-500m
|
| 10 |
- translation
|
| 11 |
- nmt
|
| 12 |
- english-to-hindi
|
| 13 |
- hindi-to-english
|
| 14 |
- indic
|
| 15 |
- devanagari
|
|
|
|
|
|
|
| 16 |
- bfloat16
|
| 17 |
- pytorch
|
| 18 |
- zero-synthetic
|
| 19 |
datasets:
|
| 20 |
- cfilt/iitb-english-hindi
|
| 21 |
- ai4bharat/samanantar
|
| 22 |
+
pipeline_tag: translation
|
| 23 |
+
library_name: transformers
|
| 24 |
+
inference: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
---
|
| 26 |
|
| 27 |
<div align="center">
|
| 28 |
|
| 29 |
# 🌐 ViuTranslate-500M
|
|
|
|
| 30 |
|
| 31 |
+
### *High-Performance English ↔ Hindi Neural Machine Translation Foundation Model*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
[](https://opensource.org/licenses/Apache-2.0)
|
| 34 |
+
[](#-model-specifications)
|
| 35 |
+
[](#-model-specifications)
|
| 36 |
+
[](https://huggingface.co/datasets/ViuAI/ViuTranslate-Data)
|
| 37 |
+
[](#-translation-capabilities)
|
| 38 |
+
[](#-zero-synthetic-data-guarantee)
|
| 39 |
|
| 40 |
+
[**🌐 ViuAI Studio**](https://github.com/ViuAI) | [**📚 Translation Dataset**](https://huggingface.co/datasets/ViuAI/ViuTranslate-Data) | [**📐 Architecture**](#-model-specifications) | [**⚡ Quickstart**](#-quickstart--inference) | [**🚀 5090 Runner**](#-training-on-rtx-5090)
|
| 41 |
|
| 42 |
---
|
| 43 |
|
| 44 |
+
</div>
|
| 45 |
|
| 46 |
+
## 📌 Introduction
|
| 47 |
|
| 48 |
+
**ViuTranslate-500M** is a production-grade bilingual Neural Machine Translation (NMT) foundation model developed by **ViuAI**. Built on the custom **Sarus-500M** decoder-only transformer architecture, it is engineered specifically for fluid, high-fidelity bidirectional translation between **English and Hindi (Devanagari)**.
|
| 49 |
|
| 50 |
+
Unlike general-purpose conversational LLMs that frequently inject conversational fluff, unsolicited commentary, or mathematical reasoning hallucinations, **ViuTranslate-500M** is optimized purely for deterministic, end-to-end translation with native-speaker fluency.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
---
|
| 53 |
|
| 54 |
+
## 🌟 Key Capabilities & Highlights
|
| 55 |
+
|
| 56 |
+
1. **⚡ Google-Translate Style Direct Input**:
|
| 57 |
+
* Accepts raw, untagged sentences directly. Input plain English to receive pure Hindi; input plain Hindi to receive pure English.
|
| 58 |
+
2. **💬 Command / Instruction Mode Support**:
|
| 59 |
+
* Seamlessly handles explicit prompts (e.g., `Translate to Hindi: ...` and `Translate to English: ...`).
|
| 60 |
+
3. **🛡️ Zero Synthetic Data Guarantee**:
|
| 61 |
+
* Trained exclusively on authentic, human-verified parallel corpora from top research institutions (**CFILT IIT Bombay** and **AI4Bharat Samanantar**). Zero synthetic, template-generated, or LLM-distilled text.
|
| 62 |
+
4. **🔤 100% Devanagari Unicode Coverage**:
|
| 63 |
+
* Custom 64,003-vocab byte-fallback BPE tokenizer ensures **exactly 0 `<unk>` tokens** across standard benchmark corpora.
|
| 64 |
+
5. **🚀 Ultra-Low Latency & Edge-Ready**:
|
| 65 |
+
* Sub-15ms generation per sentence on modern GPUs (RTX 5090, RTX 4090, A100, T4) with efficient Grouped Query Attention (GQA).
|
|
|
|
|
|
|
| 66 |
|
| 67 |
---
|
| 68 |
|
| 69 |
+
## 📐 Model Specifications
|
| 70 |
+
|
| 71 |
+
| Parameter | Specification | Details |
|
| 72 |
+
| :--- | :--- | :--- |
|
| 73 |
+
| **Model Name** | **ViuTranslate-500M** | *ViuAI Translation Engine* |
|
| 74 |
+
| **Base Architecture** | **Sarus-500M** | Decoder-only Autoregressive Transformer |
|
| 75 |
+
| **Total Parameters** | **500,642,560** (~500M) | Optimal size for high translation density & fast inference |
|
| 76 |
+
| **Hidden Dimension ($d_{\text{model}}$)** | **1280** | Latent semantic space |
|
| 77 |
+
| **Transformer Layers** | **24** | Balanced depth for deep bilingual representations |
|
| 78 |
+
| **Attention Heads** | **20 Query / 4 KV Heads** | Grouped Query Attention (GQA 5:1 ratio) |
|
| 79 |
+
| **Intermediate Size (FFN)** | **3456** | SwiGLU non-linear projection |
|
| 80 |
+
| **Vocabulary Size** | **64,003** | Byte-fallback BPE with full Devanagari coverage |
|
| 81 |
+
| **Context Length** | **2048 Tokens** | Rotary Positional Embeddings (RoPE, $\theta = 10,000$) |
|
| 82 |
+
| **Normalization** | **RMSNorm** | Root Mean Square Layer Normalization ($\epsilon = 10^{-6}$) |
|
| 83 |
+
| **Precision** | **BFloat16 / FP16** | Native Blackwell, Ada Lovelace, Ampere support |
|
| 84 |
|
| 85 |
+
---
|
| 86 |
|
| 87 |
+
## 📚 Training Corpus & Provenance
|
| 88 |
+
|
| 89 |
+
The model is trained on the curated dataset hosted at [**`ViuAI/ViuTranslate-Data`**](https://huggingface.co/datasets/ViuAI/ViuTranslate-Data):
|
| 90 |
+
|
| 91 |
+
| Dataset Source | Contributing Institution | Curated Pairs | Description |
|
| 92 |
+
| :--- | :--- | :--- | :--- |
|
| 93 |
+
| **IIT Bombay English-Hindi Corpus** | CFILT, IIT Bombay | **50,000** | Gold-standard academic corpus covering news, judicial, and literature |
|
| 94 |
+
| **AI4Bharat Samanantar** | IIT Madras / AI4Bharat | **50,000** | Large-scale verified Indian language web & publication texts |
|
| 95 |
+
| **IIT Bombay Benchmark Test Set** | CFILT, IIT Bombay | **2,502** | Standardized international evaluation test suite |
|
| 96 |
+
| **Total Curated Dataset** | — | **102,502 Pairs** | **13.6 Million Active Training Tokens** |
|
| 97 |
|
| 98 |
+
### 🛡️ Mathematical Quality Guardrails:
|
| 99 |
+
* **Length Ratio Bound:** Enforced $0.40 \le \frac{\text{len(en)}}{\text{len(hi)}} \le 2.40$ to eliminate truncated pairs.
|
| 100 |
+
* **Script Purity:** Minimum 50% Latin characters on English side; minimum 40% Devanagari characters ($[\u0900-\u097F]$) on Hindi side.
|
| 101 |
+
* **Hygiene Sanitization:** 100% stripped of HTML tags, XML entities, programming code blocks, and URLs.
|
| 102 |
+
* **Bidirectional Augmentation:** Trained in both Direct Mode and Command Mode in both directions ($EN \leftrightarrow HI$).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
---
|
| 105 |
|
| 106 |
## 🚀 Quickstart & Inference
|
| 107 |
|
| 108 |
+
### 1. Installation
|
| 109 |
+
|
| 110 |
```bash
|
| 111 |
pip install torch tokenizers huggingface_hub
|
| 112 |
```
|
| 113 |
|
| 114 |
+
### 2. Standalone Python Inference
|
| 115 |
+
|
| 116 |
```python
|
| 117 |
import torch
|
| 118 |
from tokenizers import Tokenizer
|
| 119 |
from huggingface_hub import hf_hub_download
|
|
|
|
|
|
|
| 120 |
|
| 121 |
+
# Download model code and tokenizer
|
| 122 |
+
repo_id = "ViuAI/ViuTranslate"
|
| 123 |
+
tok_path = hf_hub_download(repo_id=repo_id, filename="tokenizer.json")
|
| 124 |
+
config_path = hf_hub_download(repo_id=repo_id, filename="config.py")
|
| 125 |
+
model_path = hf_hub_download(repo_id=repo_id, filename="model.py")
|
| 126 |
|
| 127 |
+
# Import architecture
|
| 128 |
+
import sys, os
|
| 129 |
+
sys.path.insert(0, os.path.dirname(config_path))
|
| 130 |
+
from config import ViuAIConfig
|
| 131 |
+
from model import ViuAI
|
| 132 |
|
| 133 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 134 |
tokenizer = Tokenizer.from_file(tok_path)
|
| 135 |
cfg = ViuAIConfig(vocab_size=64003, context_length=2048)
|
| 136 |
model = ViuAI(cfg).to(device)
|
| 137 |
|
| 138 |
+
# Load weights (supports base checkpoint or fine-tuned weights)
|
| 139 |
+
try:
|
| 140 |
+
ckpt_path = hf_hub_download(repo_id=repo_id, filename="viutranslate_final.pt")
|
| 141 |
+
except Exception:
|
| 142 |
+
ckpt_path = hf_hub_download(repo_id="ViuAI/ViuAI-500M", filename="checkpoints/ckpt_latest.pt")
|
| 143 |
+
|
| 144 |
state = torch.load(ckpt_path, map_location=device, weights_only=False)
|
| 145 |
model.load_state_dict(state.get("model_state_dict", state), strict=False)
|
| 146 |
model.eval()
|
|
|
|
| 149 |
prompt = f"<|user|>\n{text.strip()}<|endofturn|>\n<|assistant|>\n"
|
| 150 |
inp = torch.tensor([tokenizer.encode(prompt).ids], device=device)
|
| 151 |
with torch.no_grad():
|
| 152 |
+
out = model.generate(inp, max_new_tokens=128, temperature=0.2, top_p=0.9, eos_token_id=64002)
|
| 153 |
return tokenizer.decode(out[0][inp.shape[1]:].tolist()).replace("<|endofturn|>", "").strip()
|
| 154 |
|
| 155 |
+
# Examples
|
| 156 |
+
print("EN -> HI:", translate("Consistency and discipline are the keys to long term success."))
|
| 157 |
+
print("HI -> EN:", translate("सूरज पूर्व में उगता है और पश्चिम में डूबता है।"))
|
| 158 |
+
```
|
| 159 |
+
|
| 160 |
+
---
|
| 161 |
+
|
| 162 |
+
## 🏋️ Training on RTX 5090 (32GB)
|
| 163 |
+
|
| 164 |
+
Run the ultra-optimized 1-click training launcher directly from your terminal:
|
| 165 |
|
| 166 |
+
```bash
|
| 167 |
+
# Download and launch runner
|
| 168 |
+
curl -O https://huggingface.co/ViuAI/ViuTranslate/raw/main/runners/run_5090.py
|
| 169 |
+
python run_5090.py
|
| 170 |
```
|
| 171 |
|
| 172 |
+
* **Target Hardware:** NVIDIA GeForce RTX 5090 (32GB VRAM, Blackwell Architecture)
|
| 173 |
+
* **Configuration:** `micro_batch=32`, `grad_accum=2` (Effective Batch = 64), `bfloat16`
|
| 174 |
+
* **Speed:** ~100,000 tokens/sec (~6.5 minutes for full 100K training run)
|
| 175 |
+
|
| 176 |
---
|
| 177 |
|
| 178 |
## 📁 Repository Structure
|
| 179 |
|
| 180 |
```
|
| 181 |
+
ViuAI/ViuTranslate
|
| 182 |
+
├── README.md # Official Model Card & Documentation
|
| 183 |
+
├── config.py # Sarus-500M Architecture Config
|
| 184 |
+
├── model.py # PyTorch Transformer Definition
|
| 185 |
+
├── tokenizer.json # 64,003 Byte-Fallback Tokenizer
|
| 186 |
+
├── tokenizer_config.json # Fast Tokenizer Configuration
|
| 187 |
+
├── special_tokens_map.json # Turn & Separation Tokens
|
| 188 |
+
├── generation_config.json # Recommended Decoding Parameters
|
| 189 |
│
|
| 190 |
+
├── scripts/ # Modular Pipeline Scripts
|
| 191 |
+
│ ├── train.py # High-Throughput SFT Training Engine
|
| 192 |
+
│ ├── inference.py # Interactive CLI Translation Console
|
| 193 |
+
│ └── evaluate.py # BLEU / chrF++ Benchmark Evaluator
|
| 194 |
│
|
| 195 |
+
└── runners/ # 1-Click Hardware Launchers
|
| 196 |
+
├── run_5090.py # RTX 5090 Ultra-Fast Launcher
|
| 197 |
+
└── run_kaggle.py # Kaggle GPU T4 Launcher
|
| 198 |
```
|
| 199 |
|
| 200 |
---
|
| 201 |
|
| 202 |
+
## 📜 Citation & Reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
|
| 204 |
```bibtex
|
| 205 |
@misc{viutranslate2026,
|
| 206 |
author = {ViuAI Research Team},
|
| 207 |
+
title = {ViuTranslate-500M: High-Performance English-Hindi Neural Machine Translation Foundation Model},
|
| 208 |
year = {2026},
|
| 209 |
publisher = {Hugging Face},
|
| 210 |
journal = {Hugging Face Model Hub},
|
| 211 |
howpublished = {\url{https://huggingface.co/ViuAI/ViuTranslate}}
|
| 212 |
}
|
| 213 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|