/ Модель

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

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

dwago

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

Dwago v8.1e — обученный с нуля ансамбль текстовых классификаторов для быстрых локальных структурированных решений, таких как маршрутизация, триаж и модерация.

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

Бенчмарки

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

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

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

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

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

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

Dwago v8.1e — модель для структурированной классификации и принятия решений по тексту, созданная Mohammedi Yunus и обученная с нуля. Она принимает текст или объект с именованными полями и выдаёт вероятности для выбора одного из описанных вариантов, ответа «да/нет» или порядковой оценки. Модель представляет собой ансамбль двух Transformer-энкодеров с общей схемой условной головы принятия решений; суммарно в нём около 157 млн параметров. Используются собственные токенизаторы и веса, обученные с нуля, без предобученных весов или внешних эмбеддингов.

Dwago предназначена для быстрого локального прототипирования маршрутизации запросов, триажа, тематической и эмоциональной разметки, модерации, классификации намерений и проверок в стиле текстового следования. В README приведены результаты на ряде бенчмарков, но отмечены слабые места на задачах MNLI, многоязычной классификации намерений и сложных многошаговых решениях. Документы ограничены 512 токенами, калибровка вероятностей может ухудшаться при сдвиге распределения. Модель не валидирована для значимых медицинских, юридических, финансовых, кадровых или критичных для безопасности решений; заявленные возможности проверки кода требуют отдельного слоя инструментов, не входящего в пакет. Лицензия Dwago Evaluation License разрешает оценку и некоммерческие исследования; коммерческое использование требует платной лицензии.

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

Dwago v8.1e: a 157M-parameter decision model trained from scratch

Created by Mohammedi Yunus. Open weights under the Dwago Evaluation License: evaluation and non-commercial research only; commercial use requires a paid license (see License and commercial use).

Dwago answers questions about a piece of content (the state: plain text or an object with named fields) and returns probabilities. It supports three question types: choice (pick one of N described options), yes/no, and score (an ordinal rating). v8.1e is an equal-weight ensemble of two Dwago networks, v7.2 (34M parameters) and v8.1b (123M). Every weight in both was trained from random initialisation in this project: its own tokenizer, encoders pretrained on 8.58 and 7.34 billion tokens of decontaminated text, and multi-task supervised fine-tuning. No pretrained weights, external embeddings or pretrained tokenizers were used, and no other model's predictions were used as labels (the only soft targets came from ensembles of Dwago's own from-scratch models).

Highlights

  • Above Jev on 10 of 17 Jev-published benchmarks (5 with Holm-supported superiority of at least 2 points). Largest leads: Emotion (system test) 94.00 vs 55.00, Emotion (published) 87.75 vs 58.65, Security labels 88.00 vs 71.50, Finance topics 82.03 vs 66.99, Banking77 96.88 vs 90.63.
  • Better than Dwago v7.2 on 9 of 17 (DailyDialog, Finance topics, Tweet topics, Emotion (system test), Moderation, Triage, Code correctness, Security labels, JevBench); lower on 3 (Emotion (published), MNLI, Security pair ranking).
  • Above Laya on 14 of 17 of the same benchmarks.
  • Sealed held-out sets (built for cycle v7, evaluated once): triage 82.27 (v7.2 76.82), multilingual 82.08 (77.14), JevBench-style 50.19 (48.44), code sealed C 84.18 (82.77).
  • Fast: 4.89 ms median per request on an RTX 3070 for both networks together (157.2M parameters).

Where Dwago beats Jev

Benchmark results against Jev and Laya

Same inputs as Jev's public results; each benchmark's own (publisher) metric; every system evaluated once from a frozen checkpoint. Bold = v8.1e above Jev; * = Holm-supported superiority over Jev of at least 2 points (paired whole-group bootstrap, one Holm family of 17 per system).

BenchmarkJev 1.13.0Dwago v8.1eDwago v7.2Dwago v7Dwago v6.2Laya (shipped)
DailyDialog70.9977.09*75.22*76.98*79.29*61.37
Emotion (published)58.6587.75*88.40*84.90*88.65*58.80
Finance topics66.9982.03*79.14*79.43*81.78*34.08
Tweet topics79.3382.4079.8079.1579.2163.20
AG News91.0092.0092.0093.0092.0094.00
Banking7790.6396.8896.8895.8394.7980.21
Emotion (system test)55.0094.00*87.00*87.00*89.00*55.00
Guardrails96.6790.0090.0091.6783.3388.33
MNLI86.6770.0071.6773.3378.3398.33
Moderation98.8994.4493.3391.1183.3383.33
Multilingual intent100.0076.0076.0076.0040.0036.00
Triage88.7586.2584.3884.3866.2579.38
Code correctness98.0077.8676.3078.9151.0451.04
Code quality99.48100.00100.00100.0067.4554.43
Security labels71.5088.00*86.00*57.0087.25*50.25
Security pair ranking89.0094.5096.00*68.5095.0047.50
JevBench86.5848.9247.6243.7244.1654.55
Above Jev—10 of 1710 of 177 of 178 of 173 of 17

All benchmarks

Where Dwago is still behind Jev: Triage (86.25 vs 88.75); Moderation (94.44 vs 98.89); Guardrails (90.00 vs 96.67); MNLI (70.00 vs 86.67); Code correctness (77.86 vs 98.00); Multilingual intent (76.00 vs 100.00); JevBench (48.92 vs 86.58). Gaps range from 2.50 to 37.66 points. These are reported, not hidden.

Code review. The code-review numbers (correctness and quality) come from the full system: this ensemble plus Dwago's code-review tool layer (static checks, sandboxed execution of supplied tests, behaviour probes), which is not included in this package. The tool layer only handles requests whose state has a candidate_source field; every other request goes straight to the ensemble.

Full report with sealed held-out sets, size and speed, and method: benchmark/README.md. Machine-readable results: benchmark/results/.

How Dwago was built

From an evaluation suite fixed before training, through tokenizer training, pretraining on one RTX 3070, free Kaggle GPUs and a Colab A100, multi-task fine-tuning and self-distillation, to one-time evaluations recorded in append-only ledgers: benchmark/HOW_DWAGO_WAS_BUILT.md. The project was engineered with an AI coding agent (Claude Code) under the author's direction; the model's weights were all learned from random initialisation by these pipelines.

Quick start

from dwago_model import Dwago                      # dwago_model.py ships with the weights
model = Dwago.from_pretrained('.')                 # loads both members; CUDA if available, else CPU
model.predict({'message': 'Ich möchte heute Abend eine Pizza bestellen.'}, {
    'intent':  {'type': 'choice', 'instructions': 'What does the customer want?',
                'criteria': {'takeaway_order': 'order takeaway food', 'transport_taxi': 'book a taxi', 'other': 'anything else'}},
    'urgent':  {'type': 'noul', 'instructions': 'Is there time pressure in `message`?'},
})
  • Requirements: torch, tokenizers, safetensors, numpy.
  • Check: this package's code reproduces the research engine on 200 development decisions (100% argmax agreement, max probability difference 3.0e-08; results/package-check-v81e.json).
  • No ONNX export is included in this release.

Model

Membersv7.2: 10-layer pre-LN Transformer encoder, width 384, 6 heads (33,925,633 parameters); v8.1b: 12 layers, width 768, 12 heads (123,314,689 parameters). Both with a schema-conditioned decision head.
Total parameters157,240,322
CombinationEqual-weight average of the two members' probabilities (no weight tuning; fixed before selection)
Input[CLS] question [SEP] state [SEP] (question ≤ 128 tokens, at most 512 positions in total). Each option description (≤ 62 tokens) is encoded separately and cached.
Tokenizer33,919-token lower-cased BPE with word-start markers: 24,576 tokens trained on the decontaminated English corpus plus 9,343 tokens for non-Latin scripts. Shared by both members.
Layout markersLine breaks and indentation are encoded as and ¦, so code and multi-line fields keep their structure.
PrecisionWeights fp32. GPU inference bf16.
Speed4.89 ms median, 6.99 ms p95 per request on an RTX 3070 (batch 1, end to end, CUDA graphs); v7.2 alone 1.70 ms

Training data

Pretraining:

  • English Wikipedia 2023-11-01 and FineWeb-Edu sample-10BT.
  • Decontaminated against every evaluation text before the tokenizer was trained: 13-gram overlap, exact short sentences, and evaluation article titles.
  • Two of the v6 teacher's members additionally saw 0.4B tokens of Python code (CodeSearchNet, codeparrot-clean validation, APPS; mixed licenses as stated by the sources).

Supervised (training splits only).

  • The v5 pool: DBpedia-14, SNLI, MultiNLI, SQuAD 2.0 answerability, Banking77, BoolQ, AG News and STS-B, plus schema augmentations of these rows.
  • v6 tasks: the task types below, plus request-format variants and execution-labelled code review built from MBPP and HumanEval.
  • v6.2 additions:
    • multilingual intent, scenario, topic, banking and NLI data (MASSIVE in 51 languages, SIB-200, MINDS-14, XNLI);
    • code-review and code-execution data generated by this project, labelled by running the code and by syntax-tree checks.
  • Screening: every training row was checked against every evaluation input (exact text and 5-gram containment ≥ 0.9). Non-Latin text uses a Unicode-aware normaliser and character 5-grams. Matches were removed.
TaskSourceLicense (as stated by the source)Training rows
abuse_severitygoogle/civil_commentsCC0 1.052,605
anlifacebook/anliCC BY-NC 4.060,000
arcallenai/ai2_arcCC BY-SA 4.02,747
code_execgenerated by this project (assertion outcomes, executed)this project13,357
code_review2generated by this project (function families, executed)this project50,000
code_review3generated by this project (function families, executed)this project96,000
code_vulnerableCyberNative/Code_Vulnerability_Security_DPOApache-2.07,230
copasuper_glue/copaBSD-2319
csqatau/commonsense_qaMIT9,115
daily_dialogDailyDialog (roskoN mirror)CC BY-NC-SA 4.028,586
emotiondair-ai/emotionother (research/education)17,273
fin_topiczeroshot/twitter-financial-news-topicMIT15,603
fmt_fieldformat variant of abuse_severityCC0 1.056,899
fmt_nliformat variant of snlirelease59,200
glue_colanyu-mll/glueGLUE (per-task terms)7,894
glue_mrpcnyu-mll/glueGLUE (per-task terms)2,850
glue_qnlinyu-mll/glueGLUE (per-task terms)59,384
glue_qqpnyu-mll/glueGLUE (per-task terms)59,378
glue_rtenyu-mll/glueGLUE (per-task terms)1,990
harm_severityPKU-Alignment/PKU-SafeRLHFCC BY-NC 4.037,974
hellaswagRowan/hellaswagMIT39,176
identity_attackgoogle/civil_commentsCC0 1.025,297
insultgoogle/civil_commentsCC0 1.057,615
jailbreakjackhhao/jailbreak-classificationApache-2.0792
massive_intentMASSIVE (mteb mirror)CC BY 4.059,980
ml_bankMINDS-14CC BY 4.08,145
ml_intentMASSIVECC BY 4.0201,710
ml_nliXNLICC BY-NC 4.074,990
ml_scenarioMASSIVECC BY 4.040,746
ml_topicSIB-200CC BY-SA 4.061,500
multircsuper_glue/multircother4,045
openbookqaallenai/openbookqaunknown4,206
prompt_injectiondeepset/prompt-injectionsApache-2.07,932
sciqallenai/sciqCC BY-NC 3.011,073
sensitive_dataai4privacy/pii-masking-200kother57,632
spamucirvine/sms_spamunknown4,512
sst2stanfordnlp/sst2unknown57,348
sst5SetFit/sst5 (SST-5)unknown8,945
support_intentbitext customer supportCDLA-Sharing-1.022,280
threatgoogle/civil_commentsCC0 1.07,633
ticket_urgentTobi-Bueck/customer-support-ticketsCC BY-NC 4.011,132
toxicgoogle/civil_commentsCC0 1.057,582
tweet_topiccardiffnlp/tweet_topic_singleother4,287
wants_cancelbitext customer supportCDLA-Sharing-1.022,280
wants_refundbitext customer supportCDLA-Sharing-1.022,280
wicsuper_glue/wicCC BY-NC 4.04,827
winograndeallenai/winograndeCC BY8,615

Added in cycles v7 and v8:

  • Public data (541,875 rows):
TaskSources (as named on the Hugging Face Hub)Training rows
v7_injectionjayavibhav/prompt-injection, reshabhs/SPML_Chatbot_Prompt_Injection, databricks/databricks-dolly-15k, Lakera/mosscap_prompt_injection, TrustAIRLab/in-the-wild-jailbreak-prompts, Lakera/gandalf_ignore_instructions47,581
v7_jailbreakTrustAIRLab/in-the-wild-jailbreak-prompts, GuardrailsAI/detect-jailbreak, databricks/databricks-dolly-15k, lmsys/toxic-chat6,752
v7_nlialisawuffles/WANLI, pietrolesci/nli_fever, tasksource/lingnli205,889
v7_scitailallenai/scitail22,862
v7_spamthehamkercat/telegram-spam-ham, SetFit/enron_spam, Deysi/spam-detection-dataset41,682
v7_threatucberkeley-dlab/measuring-hate-speech, jigsaw (Arsive mirror)11,930
v7_toxicjigsaw (Arsive mirror), ucberkeley-dlab/measuring-hate-speech, toxigen/toxigen-data, lmsys/toxic-chat53,621
v7_toxic_mltextdetox/multilingual_toxicity_dataset (es), textdetox/multilingual_toxicity_dataset (zh), textdetox/multilingual_toxicity_dataset (uk), textdetox/multilingual_toxicity_dataset (ar), textdetox/multilingual_toxicity_dataset (am), textdetox/multilingual_toxicity_dataset (ru), textdetox/multilingual_toxicity_dataset (tt), textdetox/multilingual_toxicity_dataset (hi), textdetox/multilingual_toxicity_dataset (it), textdetox/multilingual_toxicity_dataset (ja), textdetox/multilingual_toxicity_dataset (en), textdetox/multilingual_toxicity_dataset (fr), textdetox/multilingual_toxicity_dataset (de), textdetox/multilingual_toxicity_dataset (hin), textdetox/multilingual_toxicity_dataset (he)69,502
v7_tri_churnbitext/retail-banking, bitext/telco, bitext/insurance, bitext/retail-ecommerce, bitext/media, bitext/wealth-management, bitext/customer-support, bitext/mortgage-loans, bitext/travel, bitext/restaurants, bitext/events-ticketing, bitext/hospitality14,876
v7_tri_intentTobi-Bueck/customer-support-tickets (en), Tobi-Bueck/customer-support-tickets (de), bitext/retail-ecommerce, bitext/insurance, bitext/restaurants, bitext/customer-support, bitext/hospitality, bitext/events-ticketing, bitext/media, bitext/mortgage-loans, bitext/telco, bitext/retail-banking, bitext/travel, bitext/wealth-management55,683
v7_tri_refundbitext/retail-ecommerce, bitext/events-ticketing, bitext/customer-support, bitext/travel, bitext/retail-banking, bitext/hospitality, bitext/insurance, bitext/telco, bitext/mortgage-loans, bitext/restaurants, bitext/media, bitext/wealth-management11,497
  • Generated decision families (320,578 training rows): generator programs written by separate AI writer agents under a fixed contract; each generator fixes the answer first and writes content that supports it, so labels are true by construction (records: results/dec-data.json).
  • Described yes/no rows (68,022): yes/no questions whose options are descriptions, in this project's own wording (results/desc-noul.json).
  • Pretraining for v8.1b: additionally a 51-language Wikipedia corpus (results/mlcorpus.json) and Python code.
  • Screening: every training row was checked against every benchmark input (exact text and 5-gram containment ≥ 0.9, Unicode-aware); matches were removed.

Data licenses. The training data includes sources under non-commercial, share-alike, research-only or unstated terms (for example CC BY-NC 4.0: ANLI, XNLI, PKU-SafeRLHF, WiC, ticket data; CC BY-NC-SA 4.0: DailyDialog; research/education-only: dair-ai/emotion). The licenses of the cycle v7 sources are as stated by each source and were not re-verified for this card. No dataset is redistributed here.

Evaluation

  • Selection on development data only: the mean of nine development task groups. v8.1e scored 79.79 (v7.2: 79.15) and passed the code-review guard (results/select-v81-ens-s1.json, results/tools-dev2-scores.json).
  • One-time evaluations of the frozen system:

sealed7: decision items from writer modules whose outputs were never used for training or selection (aggregates only). Code sealed C and blind A: code-review sets held out from all training and selection; family-balanced correctness at the frozen threshold 0.5.

Systemsealed7 triagesealed7 multilingualsealed7 JevBench-styleCode sealed CBlind A
v8.1e82.2782.0850.1984.1879.49
v7.276.8277.1448.4482.7779.05
  • Protocol for the Jev comparison: paired whole-group bootstrap (10,000 replicates) with one Holm family across all 17 comparisons. A win needs Holm-supported superiority and an estimated difference of at least 2 points. Jev's numbers are its published per-item outcomes (Jev 1.13.0), not new API calls; Dwago ran on exactly the same inputs.
  • Post-hoc disclosure: cycles v7 and v8 were designed after earlier benchmark results showed which task types were weak, so their data choices are benchmark-informed. No benchmark item was ever used for training, tuning or selection.

Intended use and limitations

  • Intended for research and prototyping of fast, local, structured decisions (routing, triage, tagging, moderation, intent and entailment-style checks) with human review.
  • Not validated for consequential decisions (medical, legal, financial, employment) or safety-critical use. It is not a security scanner or a code reviewer.
  • Weak spots: MNLI-style entailment, multilingual intent, multi-step JevBench-style decisions, and code correctness (which needs the tool layer that is not part of this package); long documents are truncated at 512 tokens.
  • Calibration can degrade under distribution shift.

Reproducibility

results/ holds the pre-registrations (with every addendum), the selection records, the append-only evaluation ledger with the SHA-256 of every results file, the Jev comparisons, the sealed-set scores, the data records, the latency record and the package check. The training code is not published with this release; the pipeline is described step by step in the build write-up.

License and commercial use

  • Released under the Dwago Evaluation License (LICENSE). Copyright (c) 2026 Mohammedi Yunus. Open weights, not open source.
  • Allowed after access approval: evaluating, testing and benchmarking the model; non-commercial academic research, with credit to "Dwago by Mohammedi Yunus".
  • Not allowed without a separate written license: any commercial or production use, redistribution of the weights or of modified versions, and using Dwago or its outputs to train other models.
  • Commercial licenses (fees, royalties or revenue sharing) are available from Mohammedi Yunus: contact via the Hugging Face profile muhammediyunes.
  • Some training datasets carry their own non-commercial or research-only terms (see Training data); this license grants no rights in them.

Citation

@misc{yunus2026dwago,
  author = {Mohammedi Yunus},
  title = {Dwago: a compact structured-decision model trained from scratch},
  year = {2026}, howpublished = {\url{https://huggingface.co/muhammediyunes/dwago}}
}

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

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

GPU в ailist

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

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

Доступ к модели ограничен автором; у платформы нет доступа к весам.

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

0 моделей