/ Модель

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

Контекст
8 192 токена
Параметры
64,2 млн
Лицензия
Apache 2.0
Архитектура
indim · dense
Библиотека
transformers
Опубликована
25 ноя 2026

InDIM-small

Заполнение пропусковТекст → текст9 профессий

Компактный энкодер ModernBERT для индийских языков и английского, предназначенный для предсказания замаскированных токенов и дообучения под классификацию, разметку и поиск.

57скачиваний за 30 дней12лайковвеса обновлены26 ноя 2026

Бенчмарки

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

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

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

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

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

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

InDIM-small — компактный многоязычный энкодер от Cobuild Tech Private Limited для индийских языков и английского. Это базовая модель на архитектуре ModernBERT: около 32 млн параметров, 12 слоёв, размер скрытого представления 384 и контекст до 8192 токенов. Она обрабатывает тексты на родных письменностях, романизированный текст латиницей и смешанный текст с несколькими языками.

Модель предназначена для дообучения под классификацию, разметку токенов, например NER и выявление персональных данных, а также поиск и извлечение текстов. Как masked-language encoder, она поддерживает предсказание замаскированных токенов и может служить основой для retrieval-моделей; сама по себе не генерирует текст. В тестах авторов она показала высокую скорость на CPU и устойчивость к int8-квантизации, но результаты зависят от задачи и языка.

Слабые стороны — меньшая точность на некоторых сложных задачах, более слабая поддержка английского, неравномерное покрытие языков и слабый перенос с данных только на английском. Для retrieval требуется дообучение: исходные эмбеддинги не выровнены между языками. Лицензия — Apache-2.0; для загрузки факторизованных эмбеддингов требуется код модели из репозитория с trust_remote_code=True.

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

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

Ограничения

Английский язык поддерживается слабее, чем индийские языки; охват предобучающими данными неодинаков, а перенос с англоязычных данных ограничен. Модель не генерирует текст, её исходные эмбеддинги не выровнены для межъязыкового поиска, а на некоторых сложных задачах более крупные модели точнее.

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

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

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

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

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

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

Открыть на Hugging Face

InDIM-small (32M)

InDIM (Indic Decision Intelligence Models) are compact encoders for Indian languages. InDIM-small has 32M parameters and covers 12 Indian languages and English: Assamese, Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Odia, Punjabi, Tamil, Telugu, Urdu and English. It reads native script, romanized text (Hindi, Tamil, … in Latin letters) and code-mixed text.

It is a base model: fine-tune it for classification, token tagging (NER, PII) or retrieval. On our fine-tuned tasks it beats mmBERT-small (140M) on 12 of 15 benchmarks at about a quarter of the size, runs about 3× faster on CPU and keeps its outputs under int8 quantisation.

Parameters31.5M encoder (+0.3M masked-LM head)
ArchitectureModernBERT encoder: 12 layers, hidden 384, FFN 576, 6 heads, RoPE, global attention every third layer and 128-token local attention in the others
Vocabulary128,064-piece Unigram tokenizer for Indic + English; factorized 128-dim word embedding, tied with the output layer
Pretraining length512 tokens (longer inputs work; see the PII results below)
Precisionfp32 weights; fp16 inference is exact; int8 friendly (see Precision)

Usage

The factorized embedding needs the model code in this repository (trust_remote_code=True).

from transformers import AutoTokenizer, AutoModel, AutoModelForMaskedLM, pipeline

tok = AutoTokenizer.from_pretrained("CobuildX-AI/InDIM-small", trust_remote_code=True)
mlm = AutoModelForMaskedLM.from_pretrained("CobuildX-AI/InDIM-small", trust_remote_code=True)
fill = pipeline("fill-mask", model=mlm, tokenizer=tok)
fill("भारत की राजधानी [MASK] है।")            # top prediction: "दिल्ली"

encoder = AutoModel.from_pretrained("CobuildX-AI/InDIM-small", trust_remote_code=True)

Fine-tuning: AutoModelForSequenceClassification and AutoModelForTokenClassification load the stock ModernBERT heads on top (classifier_pooling "cls" or "mean"). Learning rates of 2e-4 to 8e-4 worked best for our tasks (higher than for larger models).

ONNX: onnx/model.onnx (fp32) and onnx/model_int8.onnx (dynamic int8) take input_ids and attention_mask [batch, length] and return the last hidden state.

Results

All fine-tuned numbers use the same recipe for every model within a task (plain fine-tuning, no distillation), a learning rate picked per model on validation, and the mean of 3 training runs unless marked. Higher is better unless marked.

Fine-tuned tasks: InDIM-small vs mmBERT-small

TaskTest setMetricInDIM-small (32M)mmBERT-small (140M)
Intent (60 intents, 7 languages)MASSIVE testaccuracy85.284.2
SentimentIndicSentiment (13 languages, human labels)accuracy0.8220.839
SentimentTelugu / English / romanized Hindi sources, human labelsmacro F10.5120.508
Slot filling (55 slot types)MASSIVE testspan F10.7000.680
PII (27 types)our synthetic testspan F10.9920.993
PIIYlemis India-PII (independent)typed F10.9890.987
PIIIndiaPII-Bench (independent)typed F10.9600.950
PIIIndicPIIDetX test, 14 shared typestyped F10.9500.930
PIIIndicPIIDetX test, all 27 typestyped F10.9060.894
Profanity / abuse (5 labels)gold set (3,980 held-out texts, LLM-labelled)macro F10.7030.725
HateHindi HateCheckPR-AUC0.7490.742
Causal reasoning (trained on English only)IndicCOPA, 18 languagesaccuracy, 1 run0.5330.530
Paraphrase (trained on English only)IndicXParaphrase, 10 languagesaccuracy, 1 run0.5710.561
Named entitiesNaamapadam, 11 languagesentity F1, 1 run0.7040.671
  • Where InDIM-small is weaker: sentiment on IndicSentiment (−0.017), profanity / insult detection (−0.022 macro F1) and transfer from English-only training (COPA and paraphrase are close to chance, 0.50, for both models). English is its weakest language.
  • PII on long text: on our PII test, rows longer than 512 tokens score 0.996 against 0.991 for shorter rows, so the model works beyond its pretraining length.
  • Fine-tuned models built on InDIM-small, each compared with mmBERT-small, mmBERT-base and IndicBERT v2: intent, sentiment, PII, profanity.

Without fine-tuning

Masked-word prediction (whole-word pseudo-log-likelihood, bits per character; lower is better). Held-out text, but from the same kinds of sources as InDIM-small's pretraining data, which favours InDIM-small: read it as a check of script and register coverage, not as a fair language-modelling comparison.

TextInDIM-smallmmBERT-small
All Indic (macro)1.5712.314
Native script1.2631.737
Romanized (natural)1.8563.051
Romanized (transliterated)1.4102.907
Code-mixed2.1462.377
English0.9860.731

Cross-lingual retrieval (FLORES devtest, English ↔ language, mean-pooled embeddings, accuracy@1, macro over 12 languages; "centered" subtracts each language's mean embedding):

InDIM-smallmmBERT-small
English → native script, centered0.5020.248
Native script → English, centered0.5130.228
English → romanized (transliterated), centered0.3450.077
English → native script, raw0.1330.070

The raw embeddings are not aligned across languages (no sentence-level training); fine-tune for retrieval.

Efficiency

CPU latency (Intel i7-10700, batch 1, median ms, encoder only, PyTorch fp32) at 64 / 128 / 512 tokens:

Parameters8 threads1 thread
InDIM-small31.5M8 / 12 / 3722 / 40 / 183
mmBERT-small140.5M20 / 30 / 9964 / 117 / 494

The tokenizer also uses fewer tokens for Indic text than mmBERT's (for example 25 against 36 tokens for a mixed Hindi / romanized sentence), so real texts are shorter sequences as well.

Precision

  • fp16: exact. Masked-token predictions agree 99.3% with fp32 (the rest are near-ties) and no value overflows. Fine-tuned InDIM-small models give the same labels in fp16 as in fp32.
  • int8 (dynamic, per-channel): the encoder's last hidden state keeps a cosine similarity of 0.999 with fp32 in PyTorch and 0.998 in ONNX Runtime; mmBERT-small keeps 0.886 / 0.037. Masked-LM loss rises by 0.11 nats. For fine-tuned classifiers, int8 changes 3–7% of decisions in our tests, so measure on your task before deploying int8.

Limitations

  • 32M parameters is small: on harder tasks (sentiment, abuse detection) larger models such as mmBERT-base or IndicBERT v2 score higher. Choose InDIM-small when speed, memory or CPU cost matters.
  • English is its weakest language, and transfer from English-only training data to Indian languages is weak. Fine-tune on data in the languages you need.
  • Coverage is uneven: Odia and Assamese have less pretraining text than Hindi, Bengali or Tamil; romanized and code-mixed text is covered for the main languages, but natural romanized text exists for fewer languages than native script.
  • It is a masked-language encoder: it does not generate text, and it does not know facts reliably.
  • Biases in web text can carry over into the model and into models fine-tuned from it.

Intended use and disclaimer

Intended use: a base for fine-tuning classifiers, taggers and retrieval models for Indian-language text, especially where models must run on CPU or at low cost. Not intended for decisions about individual people (hiring, credit, moderation penalties, surveillance) without evaluation on your data and a person reviewing each case. The model is provided "as is", without warranties of any kind; Cobuild Tech Private Limited is not liable for its use. You are responsible for checking that it suits your data and for complying with the laws that apply to your use.

Citation

If you use InDIM models, please cite:

@misc{indim2026,
  title        = {InDIM: Compact Encoders for Indian Languages},
  author       = {{Sudalai Rajkumar} and {Sairaam Varadarajan}},
  organization = {CobuildX AI},
  year         = {2026},
  version      = {0.1},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/CobuildX-AI/InDIM-small}},
  doi          = {10.57967/hf/11878}
}

Licence

Apache-2.0 (see LICENSE). InDIM-small was initialised from mmBERT-small (MIT); see NOTICE.

Questions: hello@cobuildx.ai.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
InDIMForMaskedLM
Ревизия весов
2f5e5fa

0 моделей