/ Модель

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

Лицензия
Apache 2.0
Архитектура
thx01 · dense
Базовая модель
mmBERT-base
Библиотека
thx01
Опубликована
16 окт 2026

laya-indic

Классификация текстаТекст → label4 профессии

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

133скачиваний за 30 дней3лайкавеса обновлены6 ноя 2026

Бенчмарки

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

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

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

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

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

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

laya-indic v2 — многоязычная модель классификации текста, выпущенная как независимый персональный проект. Она использует архитектуру принятия решений THX-01 и библиотеку thx01, но построена на энкодере jhu-clsp/mmBERT-base, который дополнительно обучали на индийских языках и затем дообучили для классификации. В модели около 322 млн параметров; для каждого вопроса она принимает до 1 024 токенов, включая текст, вопрос и варианты ответа.

Модель предназначена для классификации по вопросам, сформулированным на английском языке: можно задавать варианты ответа, вопрос да/нет или упорядоченную шкалу. Схемы вопросов задаются при использовании, поэтому модель применима к новым меткам без повторного обучения. Её целевые языки — индийские языки и хинглиш; метаданные также указывают поддержку ряда других языков. В README приведены результаты на 67 задачах, включая классификацию тем, тональности и намерений.

Лицензия репозитория — Apache-2.0. Ограничения: модель работает с классификацией, не генерирует открытые ответы, не выполняет многошаговые рассуждения и не поддерживает вопросы на число, извлечение фрагментов или цитирование. Вопросы и описания вариантов должны быть на английском, длинный ввод обрезается до 1 024 токенов; точность калибровки различается между задачами, а модель не проверялась как система модерации контента.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

laya-indic

A newer version is available: Yama (v3, XLM-RoBERTa-large encoder), released as a separate model. It scores 0.862 against 0.800 for this model on the same 67 tasks and is better calibrated. This repository stays at v2 (mmBERT-base); v1 is at revision v1.0.

A multilingual typed-decision model with a focus on Indian languages and Hinglish. You give it a text (a message, ticket, review, headline or document) and one or more questions written in plain English. It answers every question in a single forward pass, with a calibrated probability for each option. Question schemas are defined at inference time, so it handles new labels and new tasks without retraining.

laya-indic is an independent personal release. It is not affiliated with or endorsed by HAL-X AI. It uses the THX-01 decision architecture and the open-source thx01 library (Apache-2.0, HAL-X AI), but it is built on the jhu-clsp/mmBERT-base encoder (MIT), not on THX-01's weights. The encoder's pretraining is first continued on public Indian-language web text (Sangraha, CC-BY-4.0), and then the decision model is trained. All training data is public and permissively licensed, plus labels generated by open-weights Qwen3 models.

Parametersabout 322M (mmBERT-base encoder plus a 2-layer decision head)
Inputup to 1,024 tokens per question (question, options and text)
Question typeschoice, noul (yes/no), score (ordinal)
Trainingcontinued pretraining on 457M tokens of public text, then 2 epochs over 521,752 decisions: 285,078 from 17 public datasets, 173,226 verified Qwen3 synthetic questions and 63,448 verified Qwen3 questions about real Indian-language text
Languagestrained on 30+ languages; strongest on English, Hindi, Hinglish and 10 other Indian languages
LicenceApache-2.0

What's new in v2

  • Continued pretraining on Indian languages. Before decision training, the mmBERT-base encoder ran one masked-language-modelling pass over 457M tokens of Sangraha (11 Indian languages plus English) and Hinglish replay. Held-out MLM loss dropped 7–25% per language.
  • Real Indian-language text. 23,955 snippets of real Sangraha web text in 11 languages, with 63,448 questions about them written and verified by open-weights Qwen3. v1 saw only synthetic Indic text.
  • Results. Overall 0.789 → 0.800. SIB-200 Indic topic 0.626 → 0.670, up in 9 of 10 languages. SIB-200 in THX-01's languages 0.751 → 0.779. Other families are flat, except IndicSentiment, which dipped (0.892 → 0.884). The earlier weights are kept at revision v1.0.

Question types

typereturnscriteria
choiceone of N options, with a probability for each{"key": "description", ...} (descriptions may be null)
noulP(yes)none
scorean ordinal level and its distributionan ordered list of level descriptions

THX-01 also supports number, excerpt and "cite": true. This model was not trained for those and does not support them.

Quickstart

import thx01   # pip install thx01

agent = thx01.load("LatentAILabs/laya-indic")          # or a local directory; GPU if available
# v1 weights: thx01.load(huggingface_hub.snapshot_download("LatentAILabs/laya-indic", revision="v1.0"))

text = "Kal se mera UPI payment fail ho raha hai, paise kat gaye par merchant ko nahi mile"
out = agent.system_one(text, {
    "topic":  {"type": "choice", "instructions": "What is the customer writing about?",
               "criteria": {"failed_payment": "payment failed or money debited but not received",
                            "refund": "asking for a refund", "account": "login or account access", "other": None}},
    "urgent": {"type": "noul", "instructions": "Does the customer need help urgently?"},
    "anger":  {"type": "score", "instructions": "How frustrated is the customer?",
               "criteria": ["calm", "mildly annoyed", "clearly frustrated", "furious"]},
})
# topic  -> failed_payment (0.97)
# urgent -> P(yes) 0.55
# anger  -> "clearly frustrated" 0.85

The response's model field says "THX-01". That is the thx01 library's default label; the weights are this model's.

For many texts, use agent.predict_batch(texts, questions, batch_size=64). questions can be one schema shared by every text or a list with one schema per text.

Write questions in English and leave the text in its own language and script. That is how the model was trained.

Benchmarks

Zero-shot accuracy on 67 tasks, compared with THX-01 (322M, same architecture, roughly 2.1M training decisions) and with laya-indic v1. Both models were scored with the same harness, the same prompts and the same test samples. The harness is adapted from THX-01's open benchmark code (bench/tasks.py).

Task familyTasksTHX-01laya-indic v1laya-indic v2
Overall (all tasks)670.7570.7890.800
English general (AG News, Emotion, Banking77, SMS, MASSIVE en)70.8130.8510.851
MASSIVE scenario, THX's 14 languages140.8710.8790.878
MASSIVE intent@20 + yes/no (az, hi)40.9160.9140.919
SIB-200 topic, THX's 10 languages100.7660.7510.779
SIB-200 topic, Indic (hi + 9)100.6280.6260.670
MASSIVE scenario, Indic (bn ta te kn ml ur)60.6700.8480.849
IndicSentiment (6 languages)60.8790.8920.884
IndicCOPA (6 languages)60.5250.4970.513
Hinglish-TOP (domain, intent@20)20.7900.9350.940
Qwen3 synthetic held-out schemas40.7170.8780.872

Per task: v2 is ahead of THX-01 on 47 of 67 tasks, behind on 19, tied on 1; ahead of v1 on 40, behind on 24, tied on 3.

Read these numbers with the training data in mind. Neither model saw these test sets. Some tasks, however, have their training splits in one model's data and not in the other's:

Eval familyThis model trained onTHX-01
MASSIVEtrain split, 20 languages (incl. hi bn ta te kn ml ur, az ka tr fa)train splits ("public benchmarks' training splits")
Hinglish-TOPtrain + validation splitsnot stated
Banking77, SMS spamBanking77 train; SMS messages outside the 1,000-message test samplenot stated
AG Newsnothing (licence unclear, so excluded)not stated individually
SIB-200nothing (CC-BY-SA, so excluded); synthetic topic sentences and, in v2, Qwen3-labelled topics on real Sangraha textnot stated
IndicSentiment, IndicCOPA, DAIR Emotionnothing; synthetic reviews and emotion datasets insteadnot stated

All training texts, including the continued-pretraining corpus (line by line), were deduplicated against every evaluation set, using normalised exact match.

TasknTHX-01 accv1 accv2 accTHX-01 ECEv2 ECE
AG News (4)10000.9310.8780.8640.0080.043
DAIR Emotion (6)10250.4250.5180.4920.2640.317
Banking77 (77)10010.6580.8110.8190.0500.052
SMS spam (yes/no)10000.8810.9570.9640.0980.024
MASSIVE-intent@20 (en)10000.9280.9230.9250.0630.044
Intent yes/no (en)10000.9610.9590.9670.0370.020
MASSIVE-intent@20 (az)10000.9080.8760.8810.0530.037
Intent yes/no (az)10000.9480.9470.9450.0280.024
MASSIVE-scenario (en)5000.9060.9140.9260.0900.059
MASSIVE-scenario (az)5000.8780.8440.8620.0590.038
MASSIVE-scenario (ru)5000.8960.8920.9000.0710.047
MASSIVE-scenario (tr)5000.8740.8820.8660.0890.080
MASSIVE-scenario (de)5000.8840.8940.9020.0680.054
MASSIVE-scenario (fr)5000.8920.9140.9020.0680.057
MASSIVE-scenario (es)5000.8680.8940.9020.0720.059
MASSIVE-scenario (ar)5000.8320.8460.8440.0730.056
MASSIVE-scenario (hi)5000.8560.8940.8920.0580.071
MASSIVE-scenario (zh-CN)5000.8720.9040.8980.0680.055
MASSIVE-scenario (fa)5000.8940.8920.8900.0770.047
MASSIVE-scenario (ka)5000.7620.7520.7280.0610.067
MASSIVE-scenario (ja)5000.9100.9100.9220.0660.058
MASSIVE-scenario (ko)5000.8680.8760.8560.0490.075
SIB-200 (az)2040.7790.7210.7700.1020.105
SIB-200 (en)2040.8330.7940.8190.0750.081
SIB-200 (ru)2040.7790.7740.8480.0720.087
SIB-200 (tr)2040.7790.7790.7450.0880.132
SIB-200 (de)2040.8190.7740.8190.0880.072
SIB-200 (ar)2040.7700.7400.7790.0790.074
SIB-200 (hi)2040.7210.7400.7300.1360.083
SIB-200 (zh)2040.7940.7840.8280.0670.065
SIB-200 (kk)2040.6910.7350.7600.1330.083
SIB-200 (uz)2040.6960.6670.6910.1330.106
Hinglish-TOP domain10000.8890.9630.9690.0620.041
Hinglish-TOP intent@2010000.6920.9080.9100.0500.052
MASSIVE-intent@20 (hi)10000.8770.8830.9040.0340.049
Intent yes/no (hi)10000.9330.9510.9450.0320.022
BoolQ-hi (yes/no) ‡10000.7000.6220.6180.1400.160
MASSIVE-scenario (bn)5000.7000.8360.8460.0740.069
MASSIVE-scenario (ta)5000.7000.8400.8480.0660.057
MASSIVE-scenario (te)5000.6260.8460.8380.0810.059
MASSIVE-scenario (kn)5000.6140.8540.8540.0650.045
MASSIVE-scenario (ml)5000.6520.8500.8460.0540.053
MASSIVE-scenario (ur)5000.7280.8620.8620.0610.044
SIB-200 (mr)2040.6470.6670.7260.1800.099
SIB-200 (bn)2040.6180.6520.6620.1790.135
SIB-200 (ta)2040.6810.6860.6960.1170.118
SIB-200 (te)2040.6230.5930.6570.1290.136
SIB-200 (gu)2040.6180.5440.6720.1280.101
SIB-200 (kn)2040.6080.6180.6620.1790.126
SIB-200 (ml)2040.5290.5930.5980.2380.187
SIB-200 (pa)2040.5640.5640.6030.1780.169
SIB-200 (ur)2040.6720.6030.6910.1370.137
IndicSentiment (hi)9980.9180.9230.9270.0960.033
IndicSentiment (bn)9980.8660.8880.8780.0650.061
IndicSentiment (mr)9980.8960.8910.9080.0820.046
IndicSentiment (ta)9980.8710.9000.8470.0650.088
IndicSentiment (te)9980.8590.8640.8680.0570.073
IndicSentiment (gu)9980.8630.8900.8770.0580.066
IndicCOPA (hi)4490.5460.4880.5010.1630.292
IndicCOPA (mr)4490.5230.4850.5140.1780.264
IndicCOPA (bn)5000.5220.5220.5180.1850.263
IndicCOPA (ta)5000.5400.4980.4900.1530.266
IndicCOPA (te)5000.5300.4780.5280.1770.258
IndicCOPA (gu)4480.4890.5090.5290.2210.239
Qwen3-synth held-out schemas (choice)10080.7270.8450.8450.1180.065
Qwen3-synth held-out (Hinglish)7190.7300.9000.8900.1270.055
Qwen3-synth held-out schemas (noul)13420.7500.9310.9300.1170.035
Qwen3-synth held-out schemas (score)6500.6580.8350.8230.1020.046

ECE is expected calibration error with 15 equal-width bins; lower is better. Mean ECE over the 67 tasks is 0.091 for v2, 0.087 for v1 and 0.098 for THX-01.

‡ BoolQ-hi is left out of every mean. Our harness had a label-parsing bug in the first runs of this benchmark. The row shows THX-01 rescored after the fix (0.643, n = 1000) next to v1 and v2, which were scored after the fix.

Where v2 is stronger than THX-01:

  • Indian-language intent and domain (MASSIVE Indic +0.18).
  • Hinglish (+0.15).
  • Banking77 (+0.16), SMS spam and emotion.
  • SIB-200 topic in Indian languages (+0.04) and Kazakh.
  • New decision schemas it has never seen (synthetic held-out +0.16).

Where it is weaker:

  • AG News (0.864 vs 0.931). THX-01 reports training on public benchmarks' training splits; AG News is excluded here.
  • SIB-200 in English and German.
  • IndicCOPA, a causal-reasoning task, where both models are close to chance.

v2 vs v1: v2 is ahead on 40 tasks and behind on 24. The gains are concentrated in SIB-200 topic classification (Indic +0.044, others +0.028). The largest drop is Tamil IndicSentiment (0.900 → 0.847).

Training

Method. RLCD (Reinforcement Learning for Calibrated Decisions), as introduced by THX-01 and implemented in thx01:

  • Policy-gradient term: sampling from noisy logits, rewarded by a strictly proper scoring rule.
  • Soft cross-entropy term: on label-smoothed targets.
  • Calibration: a temperature for each question type, fitted after training on held-out data.

Stage 1: continued pretraining (new in v2). jhu-clsp/mmBERT-base ran one pass of masked-language modelling (15% masking, sequence length 512, learning rate 3e-5) over 457M tokens:

  • Sangraha "verified" documents in Telugu, Gujarati, Kannada, Malayalam, Punjabi, Hindi, Bengali, Tamil, Marathi, Urdu, Odia and English.
  • A small replay of Hinglish texts from the training data below.

Every line that matched an evaluation text was removed. Stage 2: decision training from that encoder, with a freshly initialised decision head.

Epochs2
Batch16 × 2 gradient accumulation = 32 decisions per update; 32,610 updates
Learning ratesencoder 5e-5, head 2e-4; AdamW, weight decay 0.01, 6% warmup, cosine decay
Precisionfp16 autocast, gradient checkpointing
Hardware / timeone NVIDIA H100 shared with other jobs: about 1.5 hours of continued pretraining and 2.8 hours of decision training
Question mix233k choice, 195k yes/no, 93k score

Public data (285,078 decisions; every source is CC0, CC-BY, Apache-2.0 or MIT; full attribution in LICENSES.md):

SourceDecisionsLicenceUsed for
MoritzLaurer/synthetic_zeroshot_mixtral_v0.159,998Apache-2.0general zero-shot choice / yes-no over diverse tasks
MASSIVE (20 languages, train)54,875CC-BY-4.0intent and domain choice, intent yes/no
HuffPost News Category28,552CC-BY-4.0news-topic choice, coarse and fine
HelpSteer220,000CC-BY-4.0response-quality score questions
BRIGHTER emotion19,344CC-BY-4.0emotion yes/no, human-labelled in-language (Hindi and Marathi in full, plus 8 other languages)
Civil Comments12,999CC0-1.0toxicity yes/no and score
GoEmotions11,998Apache-2.0fine-grained emotion
Nemotron Safety Guard v311,000CC-BY-4.0multilingual safety categories
Aegis 2.010,999CC-BY-4.0safety categories
LEDGAR (LexGLUE)10,000CC-BY-4.0contract-clause type
Banking77 (train)9,964CC-BY-4.077-way intent
WMT DA human evaluation9,000Apache-2.0translation-quality score
Measuring Hate Speech8,000CC-BY-4.0hate-speech facets
IBM Argument Quality 30k8,000CC-BY-3.0argument-quality score
Hinglish-TOP (train + validation)6,936Apache-2.0Hinglish domain and intent
Aya Red-teaming2,685Apache-2.0multilingual harm categories
SMS Spam Collection728CC-BY-4.0spam vs ham

Synthetic data (173,226 verified questions over 62,263 texts). The generator is Qwen3-235B-A22B-Instruct-2507 and the verifier is Qwen3-30B-A3B-Instruct-2507, both Apache-2.0. The pipeline is label-first:

  1. The generator proposes a decision schema.
  2. Gold answers are sampled.
  3. The generator writes a text in a chosen language, script and register that makes those answers true.
  4. The verifier answers blind, and a question is kept only if the verifier agrees with the gold answer (about 72% were kept).

About 68% of the texts are in Indian languages or Hinglish. As far as can be verified, no proprietary-model output was used. The one exception that can't be fully checked is NVIDIA's Nemotron Safety Guard v3, which is partly machine-translated and synthetic and doesn't name the models used; see LICENSES.md. The dataset is published as LatentAILabs/laya-indic-synthetic; see also SYNTHETIC_DATA.md.

Real Indian-language text (new in v2). 23,955 snippets of 1–3 sentences or a short paragraph were cut from Sangraha documents (AI4Bharat, CC-BY-4.0):

LanguagesSnippets
Gujarati, Telugu, Kannada, Punjabi, Malayalamabout 2,850 each
Marathi, Bengali, Hindi, Tamilabout 2,000 each
Odia1,464
Urdu113

For each snippet:

  1. Qwen3-235B picked the topic from a fixed 16-topic list. It also wrote 2–3 further questions specific to the snippet (choice, yes/no or score).
  2. The topic options were assembled in code. In 7% of cases the correct topic was removed, so "none of the options" is the answer.
  3. Qwen3-30B answered every question blind, and only questions where the two models agreed were kept: 63,448 in training.

The data is published as LatentAILabs/laya-indic-real-text (CC-BY-4.0).

Limitations

  • Text classification only. It does not do number, excerpt or citation questions, open-ended generation or multi-step reasoning. IndicCOPA results show it cannot do commonsense causal reasoning.
  • Instructions in English. Questions and option descriptions should be in English; the text can be in any supported language.
  • Long texts are truncated at 1,024 tokens per question.
  • Calibration is good on average but not everywhere. Recalibrate on your own data before using probabilities as thresholds.
  • About 45% of the training labels come from Qwen3. 33% are questions on synthetic texts and 12% are questions on real web text. Synthetic Indic text is cleaner and more formal than real user text. Sangraha is mostly news and web prose, not chat. Urdu and Odia have little real text.
  • Content warning. The safety and toxicity datasets (Aegis 2.0, Nemotron Safety Guard, Measuring Hate Speech, Civil Comments, Aya Red-teaming) contain offensive and harmful text. The model can classify such content but is not a tested content-moderation system.

Acknowledgements and licence

  • Architecture, training objective and inference library: THX-01 / thx01 by HAL-X AI (Apache-2.0).
  • Benchmark harness: THX-01's bench/tasks.py, including its MASSIVE scenario descriptions and label humaniser, which were also used in some training instructions.
  • Encoder: mmBERT-base, by JHU CLSP (MIT).
  • Indian-language corpus: Sangraha, by AI4Bharat (CC-BY-4.0), used for continued pretraining and real-text decisions.

The model is released under the Apache License 2.0. See NOTICE for the required attributions and LICENSES.md for every dataset's authors and licence.

More from the author

Built by Arun Prabhakaran (Latent AI Labs). Open models for Indian languages:

  • Yama: zero-shot text classifier
  • Chitragupta: PII detection and redaction
  • Nandi: complaint routing
  • Bhasha: word-level language ID

Write-up: Before You Invent a New Architecture, Try a Bigger Encoder · Summary and FAQ: https://latentailabs.github.io/yama-bigger-encoder/

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

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

GPU в ailist

Универсальный рантайм · thx01 · text-classification

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

Подбираем GPU…

Класс архитектуры
THXDecisionModel
Ревизия весов
2936da2

0 моделей