/ Модель

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

Лицензия
Apache 2.0
Библиотека
ctranslate2
Опубликована
18 окт 2026

indicMT

ПереводТекст → текст5 профессий

Компактная модель Ujjwal Sharma для перевода между английским и 22 языками Индии.

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

Бенчмарки

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

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

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

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

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

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

IndicMT — компактная модель машинного перевода, разработанная Ujjwal Sharma. Она переводит между английским и 22 официально признанными языками Индии в 44 направлениях; перевод между двумя индийскими языками выполняется через английский. Модель построена на архитектуре Transformer encoder-decoder с 12 слоями кодировщика и декодировщика, размерностью 512, 16 головами внимания и примерно 154 млн параметров. Для токенизации используется общая SentencePiece unigram-лексика размером 128 тыс. токенов.

Модель обучена с нуля на датасете AI4Bharat BPCC: сначала на смеси добытых и переводных данных, затем дообучена на данных человеческого перевода. Репозиторий содержит контрольную точку OpenNMT-py в float32 и конверсию CTranslate2 с весами int8 для быстрого CPU-инференса. В README приведены результаты на тестовых наборах IN22-Gen и IN22-Conv; точность зависит от языка и направления перевода. Лицензия — Apache-2.0.

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

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

Ограничения

Перевод между двумя индийскими языками выполняется через английский в два этапа. Качество различается по языкам и направлениям; int8-версия предназначена для CPU-инференса, а опубликованные результаты получены на float32-конверсии.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Compact multilingual machine translation for English and the 22 Scheduled Indian languages.

Usage · Languages · Results · Limitations · Citation


Compact multilingual machine translation between English and the 22 Scheduled Indian languages (44 directions). This repository holds the OpenNMT-py training checkpoint and an int8 CTranslate2 conversion of it for fast CPU inference.

  • Model: Transformer encoder-decoder, 12 encoder and 12 decoder layers, d_model 512, feed-forward 2048, 16 heads, 153,807,872 parameters, one shared 128k SentencePiece (unigram) vocabulary with tied embeddings.
  • Training: from scratch with OpenNMT-py 3.5.1 on AI4Bharat's BPCC. Pre-trained on an 8:2 mix of mined and human-translated data (step 13,600), then fine-tuned on human data only (step 1,800).
  • Code, data pipeline, evaluation and serving: github.com/ujjwalsharmaIITB/indicMT. Technical report: Technical report. Blog: Medium blog. Trailer: watch on Google Drive.
PathContentsSize
indicMT/CTranslate2 model, int8 weights (recommended for CPU inference)170.6 MB
indicMT.ptOpenNMT-py 3.5.1 checkpoint, float32, as saved at the end of training2.4 GB
indicMT.spm.modelSentencePiece model (128k unigram), shared by both3.5 MB
indicmt_config.jsonVariants, language tags and the source format, machine-readable

indicMT/ holds model.bin, config.json and shared_vocabulary.json. The checkpoint is the unmodified training file: model weights, vocabulary, training options and the Adam optimizer state, so fine-tuning can continue from it.

pip install ctranslate2==4.8.2 sentencepiece==0.2.2 huggingface_hub
import ctranslate2
import sentencepiece as spm
from huggingface_hub import snapshot_download

path = snapshot_download("ujjwalsharmaIITB/indicMT", allow_patterns=["indicMT/*", "indicMT.spm.model"])
sp = spm.SentencePieceProcessor(model_file=f"{path}/indicMT.spm.model")
translator = ctranslate2.Translator(f"{path}/indicMT", device="cpu")


def translate(texts, tgt, beam_size=5):
    """texts: raw sentences in one source language; tgt: target tag without brackets, e.g. "hi" or "en"."""
    tag = f"<{tgt}>"
    sources = sp.encode([f"{tag} {t}" for t in texts], out_type=str)  # tag and sentence as one string
    results = translator.translate_batch(sources, beam_size=beam_size)
    return [sp.decode(r.hypotheses[0]) for r in results]


print(translate(["Hello, how are you?"], "hi"))     # English -> Hindi
print(translate(["नमस्ते, आप कैसे हैं?"], "en"))      # Hindi -> English
print(translate(translate(["नमस्ते, आप कैसे हैं?"], "en"), "ta"))  # Hindi -> Tamil, pivoted through English

Encoding the input. Use sp.encode(f"<xx> {text}") on the whole string. Do not use ['<xx>'] + sp.encode(text).

The tag names the target language. The output carries no tag; detokenize it with sp.decode. Translation between two Indian languages goes through English (two calls), as in the last example.

pip install torch==2.2.0 OpenNMT-py==3.5.1 sentencepiece==0.2.2 huggingface_hub
import subprocess
import sentencepiece as spm
from huggingface_hub import snapshot_download

path = snapshot_download("ujjwalsharmaIITB/indicMT", allow_patterns=["indicMT.pt", "indicMT.spm.model"])
sp = spm.SentencePieceProcessor(model_file=f"{path}/indicMT.spm.model")

texts, tag = ["Hello, how are you?"], "<hi>"
with open("src.spm", "w", encoding="utf-8") as f:
    for pieces in sp.encode([f"{tag} {t}" for t in texts], out_type=str):  # same source format as above
        f.write(" ".join(pieces) + "\n")

subprocess.run(["onmt_translate", "-model", f"{path}/indicMT.pt", "-src", "src.spm",
                "-output", "hyp.spm", "-beam_size", "5", "-gpu", "0"], check=True)  # drop "-gpu 0" on CPU
with open("hyp.spm", encoding="utf-8") as f:
    print([sp.decode(line.split()) for line in f])

The checkpoint stores its training options as a Python object, so it loads with torch.load(..., weights_only=False). That is the default in torch 2.2.0, which OpenNMT-py 3.5.1 pins. From torch 2.6 the default changed and loading fails. Load only files you trust this way.

The GitHub repository has the code for larger jobs:

LanguageTagCodeScript
English<en>eng_LatnLatin
Assamese<as>asm_BengBengali
Bengali<bn>ben_BengBengali
Bodo<br>brx_DevaDevanagari
Dogri<doi>doi_DevaDevanagari
Gujarati<gu>guj_GujrGujarati
Hindi<hi>hin_DevaDevanagari
Kannada<kn>kan_KndaKannada
Kashmiri<ks>kas_ArabPerso-Arabic
Konkani<gom>gom_DevaDevanagari
Maithili<mai>mai_DevaDevanagari
Malayalam<ml>mal_MlymMalayalam
Manipuri<mni>mni_MteiMeitei (Meetei Mayek)
Marathi<mr>mar_DevaDevanagari
Nepali<ne>npi_DevaDevanagari
Odia<or>ory_OryaOdia
Punjabi<pa>pan_GuruGurmukhi
Sanskrit<sa>san_DevaDevanagari
Santali<sat>sat_OlckOl Chiki
Sindhi<sd>snd_DevaDevanagari
Tamil<ta>tam_TamlTamil
Telugu<te>tel_TeluTelugu
Urdu<ur>urd_ArabPerso-Arabic

The Bodo tag is <br> (ISO 639-3 brx). It is not Breton.

Macro chrF++ over the 22 languages, beam 5, corpus-level sacreBLEU (word_order=2). All reported results are from the CTranslate2 float32 model, the checkpoint in this repository converted to CTranslate2 without quantization.

Test seten→xxxx→en
IN22-Gen47.1553.87
IN22-Conv43.1550.59

Against IndicTrans2 1B run with the same protocol (paired bootstrap, 22 directions pooled), IndicMT is slightly but significantly ahead on en→xx on IN22-Gen (47.31 against 46.53, p = 0.001; 11 directions better and 8 worse at p < 0.05) and on IN22-Conv (43.23 against 42.60, p = 0.001; 8 better, 13 worse). IndicTrans2 is clearly ahead on xx→en (62.48 against 53.87 on IN22-Gen, 55.63 against 50.59 on IN22-Conv) and has 7.2 times more parameters.

An LLM judge (Gemma 4 31B-it) rated every IN22-Gen en→xx translation (22,528 sentences) for fluency, adequacy and overall quality on a 1–5 scale. Shown the human reference, it rates 63.8% of IndicMT translations perfect (5/5/5; mean overall 4.33), against 70.3% (4.48) for IndicTrans2 1B. Without the reference: 66.9% (4.38) against 73.8% (4.52).

This repository ships the OpenNMT-py checkpoint (indicMT.pt) and the int8 CTranslate2 model (indicMT/); the reported results are from the CTranslate2 float32 conversion of the same checkpoint. chrF++, beam 5; latency is the median for one sentence on CPU (8 threads), IN22-Gen.

ModelIN22-Gen en→xxIN22-Gen xx→enIN22-Conv en→xxIN22-Conv xx→enp50 latencySize
OpenNMT-py checkpoint (indicMT.pt)46.9553.6942.9750.382.4 GB
CTranslate2 float32 (reported)47.1553.8743.1550.59399.2 ms630.4 MB
CTranslate2 int1647.1553.8643.1550.59367.1 ms323.2 MB
CTranslate2 int8 (indicMT/)47.1653.8543.1450.59374.2 ms170.6 MB

int16 and int8 are not significantly different from float32 on IN22-Gen, and int8 is 3.7 times smaller.

IndicMT (CTranslate2 float32), IndicTrans2, Indic Translate and Sarvam Translate are from our own runs (corpus-level chrF++; beam 5 for IndicMT and IndicTrans2, greedy decoding for the two LLMs). All other baselines are taken from the bodhan-ai/indic-translate model page (read on 2026-09-19), which reports sentence-level chrF++ with greedy decoding on IN22-Gen only, so those rows are indicative. A star marks a system that covers only 16 of the 22 languages.

ModelParametersIN22-Gen en→xxIN22-Gen xx→enIN22-Conv en→xxIN22-Conv xx→enSource
IndicMT0.154B47.1553.8743.1550.59our run
IndicTrans2 1B1.1B46.3962.4842.6155.63our run
Indic Translate7.94B47.7360.3345.0455.10our run
Sarvam Translate4B48.7451.8245.7149.77our run
gemini-3.5-flashundisclosed40.3066.60Indic Translate page
gemma-4-31B-it30.7B39.2059.60Indic Translate page
translategemma-27b-it *27B39.6058.50Indic Translate page
gemma-4-26B-a4b-it25.2B36.2056.60Indic Translate page
translategemma-12b-it *12B37.1055.00Indic Translate page
gemma-3-27b-it27.43B31.9055.50Indic Translate page
gemma-3-12b-it12.19B28.8053.20Indic Translate page
translategemma-4b-it *4B31.2049.20Indic Translate page
gemma-3-4b-it4.3B22.9047.10Indic Translate page

Under the same scoring, IndicMT is 0.58 chrF++ below Indic Translate and 1.59 below Sarvam Translate on IN22-Gen en→xx (1.89 and 2.56 below on IN22-Conv), and ahead of Sarvam Translate on xx→en on both test sets. BLEU from our runs (IN22-Gen en→xx / xx→en, IN22-Conv en→xx / xx→en): IndicMT 19.19 / 29.19, 15.73 / 28.36; IndicTrans2 17.88 / 39.12, 15.22 / 34.02; Indic Translate 19.37 / 36.43, 17.30 / 33.37; Sarvam Translate 20.67 / 28.32, 17.95 / 27.51.

LanguageIN22-Gen en→xxIN22-Gen xx→enIN22-Conv en→xxIN22-Conv xx→en
Assamese44.7456.0244.5855.39
Bengali47.2454.3945.0153.75
Bodo49.3052.3446.3949.18
Dogri55.8661.0450.6458.29
Gujarati50.8857.9250.2156.42
Hindi53.1956.9947.1455.34
Kannada49.0655.3131.7043.40
Kashmiri32.9950.4727.5547.18
Konkani43.5149.6741.4145.31
Maithili49.6956.7244.0851.92
Malayalam44.8353.3538.1948.49
Manipuri46.2650.2941.6446.54
Marathi48.6354.9446.0852.94
Nepali49.6859.0049.6057.08
Odia46.2357.1440.8754.57
Punjabi47.1253.7352.5556.25
Sanskrit37.2645.8634.3541.76
Santali41.1143.7242.9945.11
Sindhi39.7350.5437.1146.16
Tamil47.6350.6038.1941.90
Telugu49.5854.0342.5647.61
Urdu62.7361.0456.4458.34

GPU-hours are GPUs × wall-clock hours, from the cluster's job accounting. Training ran on 4 × A100 80 GB; evaluation and the LLM judge ran on A40 and L40 GPUs.

Release model only. What it takes to reproduce the released model:

StageGPUsGPU-hours
Pre-training, combined data, to step 13,6004 × A100100
Fine-tuning on human data, to step 1,8004 × A10011
IN22-Gen and IN22-Conv evaluation of one checkpoint, 88 directions, OpenNMT-py2 × A400.5
chrF++ trajectory: the same evaluation for 63 checkpoints (54 pre-training up to step 13,600, 9 fine-tuning up to step 1,800)2 × A4032
IN22-Gen and IN22-Conv evaluation, CTranslate2 float32 (reported scores)CPU, 16 cores0 (about 1 hour)
LLM judge, English→Indic2 × A407.7
Total (the trajectory includes the single checkpoint)about 150

Whole project. Everything run for IndicMT, including models that were not released:

WorkGPU-hours
Pre-training (human, mined and combined data)1,539
Deeper architectures (12+18 and 18+18 layers)715
IN22 evaluation of checkpoints473
Fine-tuning (with and without replay, deeper models)248
LLM judge135
Baseline runs (IndicTrans2, Indic Translate, Sarvam Translate)15
Setup and tests4
Total3,129

By GPU type: 2,507 A100, 479 A40, 143 L40.

  • Sentence-level. Trained on sentences of at most 200 SentencePiece pieces. Split paragraphs and documents into sentences first.
  • Indic to Indic pivots through English: two passes, so errors compound and latency doubles.
  • One script per language (table above). For example, Sindhi is Devanagari only, Kashmiri Perso-Arabic only, Santali Ol Chiki only and Manipuri Meetei Mayek only. Text in other scripts is out of domain. Characters outside the vocabulary become <unk> (no byte fallback).
  • Uneven quality. The weakest directions are English to Kashmiri (32.99 IN22-Gen) and English to Sanskrit (37.26). Conversational English-to-Kannada (31.70 IN22-Conv) and English-to-Tamil (38.19) are much lower than on IN22-Gen. Indic-to-English trails IndicTrans2 1B by 8.61 chrF++ on average (IN22-Gen).
  • Automatic metrics only. Scores are chrF++ and BLEU; there is no human evaluation.
  • Data. BPCC includes mined web data, and the model can reproduce its errors and biases. This is a research model: outputs may contain errors, so review them before any high-stakes use.
  • Training: AI4Bharat BPCC, human-translated (bpcc-seed-latest, ilci) and mined (comparable, samanantar-filtered, nllb-filtered) configs, with script-consistency filtering and temperature-sampled mixing.
  • Evaluation: IN22-Gen (1,024 sentences per direction) and IN22-Conv (1,503).
@techreport{sharma2026indicmt,
  author = {Sharma, Ujjwal},
  title  = {{IndicMT}: Compact Multilingual Machine Translation for 22 Indian Languages},
  year   = {2026},
  note   = {Technical report},
  url    = {https://www.cse.iitb.ac.in/~ujjwalsharma/blogs/indicMT/}
}

Apache License 2.0. Copyright 2026 Ujjwal Sharma. The training data (BPCC) and test sets (IN22) are AI4Bharat's and have their own terms.

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

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

GPU в ailist

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

Нельзя запустить

Модели CTranslate2 требуют отдельного рантайма.

Ревизия весов
1809894

0 моделей