/ Модель

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

Контекст
256 токенов
Параметры
14,5 млн
Лицензия
Apache 2.0
Архитектура
marian · dense
Библиотека
transformers
Опубликована
16 ноя 2026

Paar-en-mr

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

Компактная модель для офлайн-перевода коротких текстов с английского на маратхи.

100скачиваний за 30 дней0лайковвеса обновлены16 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Paar English → Marathi — модель машинного перевода от UDGAM LABS, предназначенная для перевода коротких текстов с английского на маратхи письмом деванагари. Она построена на архитектуре Marian encoder-decoder: 6 слоёв энкодера, 2 слоя декодера, ширина 256 и общая SentencePiece-лексика на 32 000 элементов. Метаданные указывают 14,5 млн параметров и контекст 256 токенов; модель обучена с нуля на переводах, созданных IndicTrans2 dist-200M для предложений из IndicCorp v2, и дистиллирована от этой модели-учителя.

Модель рассчитана на приложения, веб-страницы, браузерные расширения и офлайн-инструменты, где важны небольшой размер и работа без отправки текста с устройства. Доступны форматы ONNX и safetensors; автор сообщает о запуске на обычном CPU и в браузере через transformers.js. По приведённым тестам качество уступает более крупным переводчикам, особенно на разговорном и новостном тексте. В лексике отсутствуют некоторые символы маратхи, имена могут искажаться, идиомы и длинные формальные предложения обрабатываются ненадёжно. Лицензия — Apache-2.0.

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

  • офлайн-перевод коротких английских фраз на маратхи
  • перевод текста в браузерном расширении без отправки данных на сервер
  • перевод английских строк в мобильном или настольном приложении на CPU
  • подготовка черновика перевода для последующей проверки человеком

Ограничения

В тестах модель уступает более крупным переводчикам; идиомы, имена и длинные формальные предложения могут переводиться с ошибками. Некоторые символы маратхи отсутствуют в словаре, поэтому проверяйте имена, числа и результат перед использованием в официальных, медицинских или юридических текстах.

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

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

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

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

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

Открыть на Hugging Face

Paar · Udgam Labs

UDGAM LABS · Translator · English → Marathi · 17.3M parameters, 17.7 MB at int8

Paar English → Marathi

Paar English → Marathi translates English sentences into Marathi (Devanagari). It has 17.3M parameters: the int8 model file is 17.7 MB (19.8 MB with its vocabulary), and it runs offline on an ordinary CPU, about 31 ms a sentence on one core of a Mac mini, or in a web browser with transformers.js. It was distilled from IndicTrans2: it learned from English sentences that IndicTrans2 dist-200M translated. Against Firefox's offline English-to-Marathi model (31.6 MB, about 1.6 times its size), it is behind by 3.05 chrF++ on FLORES+ (news-style text) and behind by 3.14 on IN22-Conv (everyday conversation). Against indicMT, a model about 8.6 times larger to download, it is behind by 0.66 on FLORES+ and behind by 1.52 on IN22-Conv. All differences are paired, with 95% intervals (Results below).

It is one of twelve, English to: Hindi, Bengali, Marathi, Telugu, Tamil, Gujarati, Urdu, Kannada, Malayalam, Punjabi, Odia, Assamese.

Try it: in your browser · code and fine-tuning recipe on GitHub

Quick start

Transformers (the weights as trained):

# pip install transformers sentencepiece torch
from transformers import MarianMTModel, MarianTokenizer

repo = "udgamlabs/Paar-en-mr"
tok = MarianTokenizer.from_pretrained(repo)
model = MarianMTModel.from_pretrained(repo)

batch = tok(["Can you send me the invoice for the last three months?"], return_tensors="pt", padding=True, truncation=True, max_length=128)
out = model.generate(**batch, num_beams=1, max_new_tokens=200)
print(tok.batch_decode(out, skip_special_tokens=True)[0])
# तुम्ही मला गेल्या तीन महिन्यांपासून चलन पाठवू शकता का?

CTranslate2 int8 (the small, fast build in ct2-int8/):

# pip install ctranslate2 sentencepiece huggingface_hub
import ctranslate2, sentencepiece as spm
from huggingface_hub import snapshot_download

path = snapshot_download("udgamlabs/Paar-en-mr", allow_patterns=["config.json", "ct2-int8/*"])
sp = spm.SentencePieceProcessor(model_file=f"{path}/ct2-int8/source.spm")
tr = ctranslate2.Translator(f"{path}/ct2-int8", device="cpu", compute_type="int8")

def translate(sentences):
    pieces = [p[:127] + ["</s>"] for p in sp.encode(sentences, out_type=str)]
    out = tr.translate_batch(pieces, beam_size=1, max_decoding_length=200)
    return [sp.decode([t for t in r.hypotheses[0] if t != "</s>"]) for r in out]

print(translate(["Can you send me the invoice for the last three months?"])[0])

JavaScript, in the browser or Node, with transformers.js (the ONNX build in onnx/, int8):

// npm install @huggingface/transformers
import { pipeline } from "@huggingface/transformers";

const translate = await pipeline("translation", "udgamlabs/Paar-en-mr", { dtype: "q8" });
const [out] = await translate("Can you send me the invoice for the last three months?", { max_new_tokens: 200 });
console.log(out.translation_text);
// तुम्ही मला गेल्या तीन महिन्यांपासून चलन पाठवू शकता का?
  • One sentence per input. Split paragraphs into sentences first; inputs are cut at 127 pieces.
  • Greedy decoding (num_beams=1) is what we scored. Beam search was not tested.
  • The CTranslate2 int8 build scores 0.06 chrF++ from the fp32 weights on FLORES+, and 69% of its translations are word for word the same. The ONNX int8 build (for transformers.js) is within 0.08 chrF++ of the fp32 weights on both test sets. In the browser, the int8 files are 28.8 MB, downloaded once.
EnglishPaar English → Marathi (from the Transformers quick start)
The train leaves at 6:45 tomorrow morning, so please be at the station by 6:15.ट्रेन उद्या सकाळी 6:45 वाजता निघून जाते, म्हणून कृपया 6:15 द्वारे स्थानकावर रहा.
Can you send me the invoice for the last three months?तुम्ही मला गेल्या तीन महिन्यांपासून चलन पाठवू शकता का?
My phone battery dies by the afternoon even though I charge it overnight.मी एका रात्रीत चार्ज करत असतानाही माझी फोन बॅटरी दुपारपर्यंत मरते.

These are unedited outputs, mistakes included, and no native speaker has reviewed them.

Results

chrF++ (higher is better), NFC on both sides, our harness, the same sentences for every system. Ours greedy; indicMT int8 with beam 5 as its card says; Firefox's offline model greedy, as Firefox runs it. Differences (ours minus theirs) are paired: 1,000 bootstrap resamples, 95% interval. Measured 3 to 16 November 2026. Our scores are of the fp32 weights; the int8 build is within 0.07 chrF++ of them, and the comparison with Firefox, re-run on the int8 build, gives the same result.

Test set (sentences)Paar (17.3M)indicMT (153.8M)IndicTrans2 dist-200M (211.8M)Firefox's offline model (31.6 MB)
FLORES+ devtest (1,012)48.0248.68 (-0.66 [-1.15, -0.19])50.7951.07 (-3.05 [-3.50, -2.62])
IN22-Conv (1,503)44.5546.07 (-1.52 [-2.04, -0.96])48.6847.70 (-3.14 [-3.66, -2.60])
  • IN22-Gen: 46.09. Numbers kept (sentences whose every number survives), FLORES+ / IN22-Conv: 94.4% / 96.4%.
  • Size: the int8 folder is 19.8 MB; the browser (ONNX int8) files are 28.8 MB. indicMT's int8 files are 169.2 MB.
  • Speed (Mac mini, FLORES+ devtest): about 31 ms a sentence on one CPU thread (CTranslate2 int8, median), about 228 sentences a second batched on four threads. In a browser (transformers.js, int8, one thread) about 40 ms a sentence in Chrome and Safari on the same Mac (measured for English → Gujarati). Phones are not measured.

Where it falls short

  • It is behind the bigger models: indicMT by 0.7 (FLORES+) and 1.5 (IN22-Conv) chrF++, IndicTrans2 dist-200M, its teacher, by 2.8 on FLORES+. If you can run a 150-200M model, those translate better.
  • Firefox's offline English-to-Marathi model (31.6 MB) is ahead of it by 3.0 (FLORES+) and 3.1 (IN22-Conv) chrF++.
  • Some letters are missing from its vocabulary (ऋ, ऍ, ॐ and the nukta). They come out as "⁇" (<unk> in transformers.js), or are dropped by the Transformers decoder. 1.6% of FLORES+ outputs carry one.
  • Idioms and short phrases are often translated word for word, and small words such as "by" (a deadline) can take the wrong sense.
  • Names are often mangled, and Latin letters inside names often become "⁇".
  • Long formal sentences lose meaning more often than short everyday ones.
  • English to Marathi only. It does not translate into English.
  • No native-speaker review of its outputs yet.
  • Speed is measured on one Mac mini (its CPU, and Chrome and Safari for the browser build), not on phones.

How it was trained

A Marian encoder-decoder (6 encoder and 2 decoder layers, width 256, one shared 32,000-piece SentencePiece vocabulary), trained from random weights. Its training targets are IndicTrans2 dist-200M's translations (beam 4) of English sentences from IndicCorp v2 (CC0). The sentences were cleaned and deduplicated, about a third were rewritten in a spoken style, and every sentence overlapping FLORES+, NTREX or IN22 was removed before training. Scores are on the test sets, scored once after training.

Intended use and limitations

For translating short English text into Marathi where a large model is too heavy or the text should not leave the device: apps, web pages, offline tools, browser extensions, a first draft for a human translator. It is not meant for legal, medical or official text without a human check. Check names and numbers in the output.

Fine-tuning

The GitHub repository has a recipe (finetune/) for training it further on your own sentence pairs with Transformers. If you publish a fine-tuned version, set base_model: udgamlabs/Paar-en-mr in its card so it links back here.

Licence

Apache-2.0. See NOTICE: IndicTrans2 (AI4Bharat, MIT) wrote the training targets, and the English sentences come from IndicCorp v2 (AI4Bharat, CC0). No third-party weights are included.

Citation

@misc{udgamlabs2026paarmr,
  title  = {Paar: a 17 MB English-to-Marathi translator},
  author = {Prasad, Jitesh K},
  year   = {2026},
  howpublished = {Udgam Labs},
  url    = {https://huggingface.co/udgamlabs/Paar-en-mr}
}

Please also cite IndicTrans2 (Gala et al., 2023, TMLR; arXiv:2305.16307), whose translations it learned from.


About Udgam Labs. Udgam Labs is an independent AI research lab. We work from first principles: before we build, we understand why things work, whether we are training a model, fine-tuning one or applying AI to a new problem. Udgam (उद्गम) is Sanskrit for origin. udgamlabs.com

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
MarianMTModel
Ревизия весов
48861cc

0 моделей