/ Модель

Характеристики

Размер весов
10,2 ГБ
Лицензия
Gemma
Архитектура
gemma4 · dense
Базовая модель
gemma-4-E2B-it
Библиотека
transformers
Опубликована
3 сен 2026

en-indic-translate-2b

Генерация текстаТекст → текст3 профессии

Модель переводит английские научные и технические документы на 11 индийских языков, стараясь сохранять формулы, код и структуру текста.

82скачиваний за 30 дней0лайковвеса обновлены4 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

En-Indic Translate 2B — модель, дообученная Sulabh Katiyar на google/gemma-4-E2B-it для перевода с английского на 11 индийских языков: ассамский, бенгальский, гуджарати, хинди, каннада, малаялам, маратхи, одия, панджаби, тамильский и телугу. Она предназначена для перевода длинных научных и технических документов, сохраняя формулы LaTeX, блоки кода, заголовки и структуру документа. Модель работает с текстом и доступна в формате safetensors через Transformers.

В карточке приведены результаты оценки на 500 сложных документах. Для версии E2B указаны частота зацикливания 7,8% и точное совпадение числа математических выражений в 56,2% случаев; результаты относятся к оценке авторов без эталонных переводов. Модель тестировалась на AMD MI300X с ROCm, поэтому для работы с NVIDIA CUDA могут потребоваться корректировки версий пакетов. Лицензия — Gemma.

Сценарии применения

  • перевод научных статей с английского на хинди
  • перевод технической документации на индийские языки
  • перевод документов с формулами LaTeX без изменения формул
  • перевод длинных текстов с сохранением блоков кода и заголовков

Ограничения

В оценке авторов версия E2B зацикливалась в 7,8% случаев, а число математических выражений точно сохранялось в 56,2% документов. Модель тестировалась на AMD MI300X с ROCm; для NVIDIA CUDA могут потребоваться корректировки версий пакетов.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

En-Indic Translate 2B

English to 11 Indic language translation model. Translates English text to Assamese, Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Odia, Punjabi, Tamil, and Telugu while preserving LaTeX formulas, code blocks, and document structure.

Base Model

Fine-tuned from google/gemma-4-E2B-it.

Baseline: Sarvam-Translate

The comparison baseline is sarvamai/sarvam-translate, a strong open En→Indic translation model. Translating complex scientific documents is hard in a way that ordinary sentence translation is not: the inputs are long, densely structured, and formula-heavy, so a model has to translate the prose while leaving LaTeX math, section headings, and fenced code untouched — and stay coherent over thousands of tokens without collapsing into a repetition loop. The evaluation below measures whether the document survived the translation, not just whether the sentences read well.

Evaluation and metrics

The model is evaluated on a held-out set of 500 complex English documents (~45 per language, across all 11 Indic languages), scored reference-free — each translation is judged against its own source document for whether the math, structure, and layout survived, so no human gold translation is required. The table below places this model in context alongside its two siblings and the Sarvam-Translate baseline.

Higher is better on every row except degeneracy rate and loop period (lower is better). Values are means / pass-rates over the 500 documents.

MetricOurs (E4B)Ours (26B)Ours (E2B)Sarvam
Degeneracy (loop) rate ↓1.8% (9/500)2.2% (11/500)7.8% (39/500)17.4% (87/500)
Loop period — max (chars) ↓2541972161,540
Loop period — median (chars) ↓10102342
Math preservation ↑0.9790.9800.9340.364
Structure integrity ↑0.9880.9910.9630.607
Renderable ↑98.2%95.8%96.2%84.6%
Heading match ↑97.0%97.2%92.2%17.6%
Code-fence match ↑100%100%100%92.0%

Supporting math detail

MetricOurs (E4B)Ours (26B)Ours (E2B)Sarvam
Math counts match (exact) ↑69.4%69.8%56.2%7.2%
Extra / invented math fraction ↓0.0010.0010.0150.172
Mean inline-math delta (kept vs source)-1.1-2.0-3.8-34.3

On average Sarvam drops ~34 inline math elements per document; our models drop ~1–4. Code-fence match is the closest column (100% vs 92%) — a clear but modest win.

How to read these metrics

All metrics are reference-free (no gold translation needed). Higher is better on everything except degeneracy rate and loop period, where lower is better.

  • Degeneracy (loop) rate — the share of documents where the model falls into a repetition loop, repeating the same span over and over until it runs out of budget, producing unusable output for that document.
  • Loop period — when a model does loop, how long the repeated chunk is: a 5-character stutter is recoverable, a 1,500-character block repeated over and over is catastrophic.
  • Math preservation — the fraction of the source document's math (LaTeX equations and symbols) that survives intact in the translation.
  • Structure integrity — how much of the document's skeleton (section headings and fenced code blocks) is reproduced in the right shape in the translation.
  • Renderable — whether the translated document actually displays correctly, with its math and markup rendering with no errors.
  • Heading match — whether the translation keeps exactly the same set of section-heading levels as the source: no headings dropped, merged, or invented.
  • Code-fence match — whether every fenced code block is copied through byte-for-byte, exactly as in the source.

4-way metric comparison

Sample translations

Side-by-side examples on short, math-rich excerpts. The first set shows the source next to this model's output; the second set adds the Sarvam-Translate baseline for contrast on languages where the baseline visibly breaks down.

Source | this model

Bengali (bn) Source and E2B translation, Bengali

Marathi (mr) Source and E2B translation, Marathi

Telugu (te) Source and E2B translation, Telugu

Punjabi (pa) Source and E2B translation, Punjabi

Source | this model | Sarvam-Translate

Hindi (hi) Source, E2B translation, and Sarvam-Translate, Hindi

Kannada (kn) Source, E2B translation, and Sarvam-Translate, Kannada

Tamil (ta) Source, E2B translation, and Sarvam-Translate, Tamil

Malayalam (ml) Source, E2B translation, and Sarvam-Translate, Malayalam

Supported Languages

CodeLanguage
asAssamese
bnBengali
guGujarati
hiHindi
knKannada
mlMalayalam
mrMarathi
orOdia
paPunjabi
taTamil
teTelugu

Usage with HuggingFace Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "sulabhkatiyar/en-indic-translate-2b"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype="bfloat16")

text = "Your English text here"
target_lang = "Hindi"  # or any supported language
prompt = f"Translate English to {target_lang}:\n{text}"

messages = [{"role": "user", "content": prompt}]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to(model.device)

outputs = model.generate(inputs, max_new_tokens=4096, do_sample=False)
result = tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True)
print(result)

Usage with vLLM

from vllm import LLM, SamplingParams
from transformers import AutoTokenizer

model_id = "sulabhkatiyar/en-indic-translate-2b"
tokenizer = AutoTokenizer.from_pretrained(model_id)
llm = LLM(model=model_id, max_model_len=32768)

text = "Your English text here"
target_lang = "Hindi"
prompt = f"Translate English to {target_lang}:\n{text}"

messages = [{"role": "user", "content": prompt}]
prompt_text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)

outputs = llm.generate([prompt_text], SamplingParams(temperature=0, max_tokens=4096))
print(outputs[0].outputs[0].text)

Example

Input (English):

Gradient descent is the workhorse of modern machine learning. Given a loss function $L(\theta)$, the parameters are updated iteratively using the rule $\theta_{t+1} = \theta_t - \eta \nabla L(\theta_t)$, where $\eta$ is the learning rate. For a neural network with $N$ layers, the gradient is computed via backpropagation:

$$\frac{\partial L}{\partial W^{(l)}} = \delta^{(l)} \cdot (a^{(l-1)})^\top$$

where $\delta^{(l)}$ denotes the error signal at layer $l$. A minimal training loop in Python looks like this:

```python
for epoch in range(num_epochs):
    loss = model(x_train, y_train)
    loss.backward()
    optimizer.step()
    optimizer.zero_grad()
```

When $\eta$ is too large, the loss oscillates; when too small, convergence stalls. Adaptive methods like Adam adjust $\eta$ per-parameter using running estimates of $\mathbb{E}[g^2]$.

Output (Hindi):

ग्रेडिएंट डिसेंट आधुनिक मशीन लर्निंग का कार्यवाहक है। एक हानि फ़ंक्शन $L(\theta)$ दिए जाने पर, पैरामीटर को पुनरावृत्त रूप से नियम $\theta_{t+1} = \theta_t - \eta \nabla L(\theta_t)$ का उपयोग करके अद्यतन किया जाता है, जहाँ $\eta$ सीखने की दर है। $N$ परतों वाले एक तंत्रिका नेटवर्क के लिए, ग्रेडिएंट को बैकप्रोपैगेशन के माध्यम से गणना की जाती है:

$$\frac{\partial L}{\partial W^{(l)}} = \delta^{(l)} \cdot (a^{(l-1)})^\top$$

जहाँ $\delta^{(l)}$ परत $l$ पर त्रुटि संकेत को दर्शाता है। पायथन में एक न्यूनतम प्रशिक्षण लूप इस तरह दिखता है:

```python
for epoch in range(num_epochs):
    loss = model(x_train, y_train)
    loss.backward()
    optimizer.step()
    optimizer.zero_grad()
```

जब $\eta$ बहुत बड़ा होता है, तो हानि दोलन करती है; जब बहुत छोटा होता है, तो अभिसरण रुक जाता है। एडम जैसे अनुकूली तरीके $\mathbb{E}[g^2]$ के चल रहे अनुमानों का उपयोग करके प्रति-पैरामीटर $\eta$ को समायोजित करते हैं।

Caveats

This model was developed and tested on AMD MI300X GPUs (ROCm). Some package versions may need adjustment for NVIDIA CUDA environments.

License

This model inherits the Gemma license from its base model.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Gemma4ForConditionalGeneration
Ревизия весов
6eb26e9

0 моделей