/ Модель

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

Контекст
262 144 токена
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.5-4B
Библиотека
transformers
Опубликована
11 окт 2026

Mizan-v3-3B

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

Mizan v3 3B — персидско-английская модель классификации и принятия решений, которая оценивает заданные варианты ответа для текстовых записей и JSON по пользовательским правилам.

126скачиваний за 30 дней20лайковвеса обновлены13 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Mizan v3 3B — модель принятия решений от Nimruz, дообученная на базе Qwen3.5-4B. Она принимает текстовую запись или JSON и набор типизированных вопросов, затем за один проход выдаёт калиброванные вероятности для разрешённых вариантов ответа. Это не чат-бот и не модель для свободной генерации текста.

Модель предназначена для маршрутизации обращений по заданной политике, оценки срочности и риска по пользовательским критериям, модерации, анализа отзывов и определения следующего действия. Вопросы и записи могут быть на персидском или английском; модель способна отвечать на новые вопросы и интерпретировать описания вариантов, даже если их ключи непрозрачны. Поддерживаются типы ответа choice, score и yes/no.

В карточке указано, что модель использует выход с 20-го слоя из 32 слоёв Qwen3.5-4B; для Q4 GGUF заявлены размер 1,9 ГБ и около 55 мс на GPU начального уровня. Метаданные указывают архитектуру Qwen3.5, библиотеку Transformers и формат safetensors. Лицензия — Apache-2.0; по карточке, обучение использовало только данные, допускающие коммерческое применение.

Модель работает только с текстом и не поддерживает изображения. Результаты следует проверять на собственных размеченных данных перед автоматизацией: качество ниже на крупных таксономиях намерений, а 4-битная версия немного уступает 8-битной. Обычный запуск через Transformers выдаёт некалиброванные вероятности, для калибровки требуется температурная настройка из конфигурации модели.

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

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

Ограничения

Модель принимает только текст и не обрабатывает изображения; перед автоматизацией её рекомендуется проверить на собственных размеченных примерах. На больших таксономиях намерений она уступает более крупным моделям, а Q4 немного менее точна, чем Q8; вероятности при обычном запуске через Transformers некалиброваны.

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

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

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

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

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

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

Открыть на Hugging Face

Mizan v3 · 3B · میزان

by Nimruz · GGUF: Mizan-v3-3B-GGUF · all models: Mizan collection

A Persian-first decision model. You give it a record (text or JSON) and a set of typed questions. It returns a calibrated probability for every allowed answer, in one forward pass. There is no text generation, no parsing and no made-up labels.

  • Applies your rules. Put your routing policy or scoring rubric in the record and Mizan v3 follows it, even when the rule goes against intuition.
  • Level with models 3–9× its size on 3,000 real Persian records: 82.5%, against 83.0% for Clef-Flash 9B and 83.4% for Clef 27B. Best calibrated of all models tested.
  • 91.1 on Tasmim-Bench, ahead of Clef, Jev and Clef-Flash, with the lowest score error on that leaderboard (see the note below).
  • Small and fast: it decides from layer 20 of Qwen3.5-4B's 32. The 1.9 GB Q4 GGUF answers in about 55 ms on an entry-level GPU, 1.5× faster than Mizan 1.0.
  • Jev / SystemOne compatible: the same request and response body as /v1/systemone.
  • Apache-2.0, trained only on data that allows commercial use.

Which Mizan should I use?

ModelReadsDownload (4-bit)Use it for
Mizan v3 3B (this one)text, JSON1.9 GBThe default: routing, policies, scores, moderation, reviews, intent
Mizan v2 4Btext + images2.7 GB + 0.37 GBCamera frames, receipts, factory and product photos
  • v3 has no vision. If your records include pictures, use v2. It also runs the live demo.
  • Mizan 1.0 and 1.5 are older text models. They're kept as the v1 and v1.5 tags of this repo, but v3 replaces both.

scorecard

What it's good at

UseExample question
Ticket routing by your policy"Following the policy in the record, which team gets this?"
Severity, urgency, risk on your rubric"Impact 0–3: 3 = over 200 people or more than 50M toman lost"
Next step by priority rules"Close / ask for details / escalate / assign, per the policy"
Fact checks against the record"The customer gave a tracking number." (yes/no)
Moderation, sentiment, intent, topicthe classic Persian tasks, on reviews, tweets, messages

Questions can be in Persian or English, and they can be new questions it has never seen. Options can have meaningful keys (billing) or opaque ones (opt_1), because it reads the descriptions.

Getting started (5 minutes)

1. Install llama.cpp (build b11443 or newer):

brew install llama.cpp            # macOS / Linux with Homebrew
# or: download a release for your OS from https://github.com/ggml-org/llama.cpp/releases
llama-server --version            # check the build number

2. Download Mizan (1.9 GB):

pip install -U huggingface_hub
hf download Nimruz/Mizan-v3-3B-GGUF mizan-v3-3b-Q4_K_M.gguf --local-dir .

3. Start the server:

llama-server -m mizan-v3-3b-Q4_K_M.gguf -c 8192 -b 8192 -ub 8192 -ngl 99 --port 8080   # GPU
llama-server -m mizan-v3-3b-Q4_K_M.gguf -c 8192 -b 8192 -ub 8192 -ngl 0  --port 8080   # CPU only

4. Ask your first question. A request has a state (your record, as text or JSON) and questions (each with a type and instructions):

import httpx

request = {
    "state": {"review": "غذا سرد رسید و پیک هم خیلی بداخلاق بود"},
    "questions": {
        "sentiment": {"type": "choice", "instructions": "حس کلی مشتری چیست؟",
                      "criteria": {"positive": "راضی", "negative": "ناراضی"}},
        "refund": {"type": "noul", "instructions": "آیا مشتری درخواست بازگشت پول کرده؟"},
    },
}
answers = httpx.post("http://localhost:8080/v1/systemone", json=request, timeout=60).json()["answers"]
print(answers)

The real output of Mizan v3 Q4:

{"sentiment": {"type": "choice", "choice": "negative", "confidence": 0.989,
               "probabilities": {"negative": 0.989, "positive": 0.011}},
 "refund":    {"type": "noul", "noul": 0.040}}

5. Read the answer. There are three question types:

typeYou giveYou get back
choicecriteria: {key: description}choice (the top key), confidence, probabilities for every key
noula yes/no statement or questionnoul: the probability of "yes"
scorecriteria: a list of levels, lowest firstscore: the expected level, e.g. 2.3; probabilities per level; legend

For a whole-number level, take the level with the highest probability. score is the probability-weighted average, which is useful for sorting.

6. Give it your rules. This is where v3 shines. Put the policy and the rubric in the record:

{
  "state": {
    "message": "سلام، از دیروز اینترنت کل ساختمون ما قطعه، حدود ۴۰ واحد. کد پیگیری K48213",
    "customer": {"tier": "ویژه", "previous_follow_ups": 1},
    "policy": "ارجاع: قطعی و کندی ← شبکه؛ قبض ← صورتحساب. اگر شماره پیگیری نباشد، اول اطلاعات تکمیلی بخواه."
  },
  "questions": {
    "route": {"type": "choice", "instructions": "طبق قواعد، این مورد به کدام تیم برود؟",
              "criteria": {"network": "شبکه", "billing": "صورتحساب", "sales": "فروش"}},
    "impact": {"type": "score", "instructions": "شدت پیامد کدام سطح است؟ بالاترین سطح صادق را انتخاب کن.",
               "criteria": ["فقط یک نفر", "۲ تا ۱۰ نفر", "۱۱ تا ۱۰۰ نفر", "بیش از ۱۰۰ نفر"]},
    "has_reference": {"type": "noul", "instructions": "کاربر شماره پیگیری داده است."}
  }
}

Mizan v3 Q4 answers:

  • route network (95.6%);
  • impact level 2, "11 to 100 people" (99.6%);
  • has_reference yes (97.7%).

Writing good questions

  • Rules go in state as plain text. v3 follows the policy it's given, even when the policy is unusual.
  • Describe every option. The descriptions matter more than the keys, so opt_1 works as well as billing.
  • Give score levels concrete thresholds ("more than 10M toman"), not just "low / high".
  • Add an "other / none of these" option when the answer might not be listed.
  • Many questions per request is fine, and it costs almost nothing extra: all answers come from one pass.
  • Persian or English questions both work, on Persian or English records.

Going to production

  • Gate on confidence: auto-apply answers above a threshold and send the rest to a person. On our benchmark, the most confident 70% of answers are about 92% correct.
  • Test first on 200–300 of your own labeled records, and pick the threshold from that.
  • Throughput: llama-server --parallel N serves several requests at once. We haven't benchmarked it for Mizan yet, so load-test it on your hardware.
  • Q8 vs Q4: Q8 (3.1 GB) is about 0.6 points more accurate; Q4 (1.9 GB) is smaller and runs on any 8 GB GPU or a laptop CPU.

راهنمای سریع فارسی

میزان یک مدل تصمیم‌گیری است، نه یک چت‌بات. یک «رکورد» (متن یا JSON) و چند سؤال تایپ‌شده می‌گیرد و برای هر گزینه احتمال برمی‌گرداند:

  • choice یعنی انتخاب یک گزینه؛
  • noul یعنی بله/خیر؛
  • score یعنی سطح‌بندی.

قوانین و معیارهای کسب‌وکارتان را داخل خود رکورد بنویسید. میزان v3 طبق همان قوانین تصمیم می‌گیرد. برای تصویر از میزان v2 استفاده کنید. پیش از خودکارسازی، مدل را روی چند صد نمونهٔ واقعی خودتان بسنجید.

Python without a server

Unsloth (calibrated, same answers as the GGUF):

from unsloth import FastDecisionModel

model, processor = FastDecisionModel.from_pretrained("Nimruz/Mizan-v3-3B", max_seq_length=4096)
FastDecisionModel.for_inference(model)
answers = FastDecisionModel.predict(model, processor, state, questions)

Tested with unsloth==2026.10.3.

Plain transformers:

import sys
from huggingface_hub import snapshot_download

path = snapshot_download("Nimruz/Mizan-v3-3B")
sys.path.insert(0, path)
from joint_schema_model import load_release_model, systemone

model, processor = load_release_model(path, device="cuda")
print(systemone(model, processor, {"model": "mizan", "state": state, "questions": questions}))

Plain transformers gives uncalibrated probabilities: the same top answer, but sharper confidences. To calibrate, divide each question's logits by the temperature in unsloth_decision_config.json for its type (order: choice, score, noul).

Evaluation

1. Real Persian data

3,000 real, human-labeled records from 7 public Persian datasets. Every model gets identical rows and questions, and none of these rows was used for training.

Taskv3 Q8v3 Q4Mizan 1.0Clef-Flash 9BClef 27BJev (API)Laya 322M
Food-review sentiment (SnappFood)87.087.087.088.085.886.080.8
Product recommend (Digikala)71.872.274.876.275.274.844.5
Aspect question in Persian (ParsiNLU)81.080.871.580.078.580.067.8
Offensive moderation (Pars-OFF)86.083.880.882.286.887.572.2
Intent routing, 60 intents (MASSIVE)77.576.872.587.785.778.227.2
Article topic routing (Digikala Mag)81.280.580.877.081.082.262.5
Claim supported by passage (FarsTail)93.092.283.590.090.897.581.8
Mean82.581.978.783.083.483.762.4
Calibration error (ECE, lower is better)0.0580.0610.1100.0780.0750.0920.210
Size3.1 GB1.9 GB9.4 GB~19 GB~55 GBhosted0.7 GB

Earlier releases score 82.0 (1.5) and 82.8 (v2, which adds images). This benchmark is close to saturated: the top models all land at 82–84%, and about half of the "errors" we reviewed on SnappFood and Digikala were wrong dataset labels.

per task size vs accuracy

2. Tasmim-Bench (external)

Tasmim-Bench v1.0.4 has 96 synthetic Persian cases: routing, next steps and severity scores under fictional policies, with colloquial text, Finglish, negation and taarof.

Choice accuracyYes/no F1Score error (MAE) ↓Overall
Mizan v3 Q40.9170.9700.45891.1
Mizan 1.0 Q40.8700.9700.49089.2
gpt-6-luna-decisions (API, #1)0.9221.0000.47992.1
Clef (API)0.9580.9790.72989.8
Jev 1.13 (API)0.9430.9890.76089.3

tasmim

Note: v3 never saw any Tasmim case, and the benchmark's domains were kept out of its training data. But part of that data borrows Tasmim's question format: a fictional policy in the record, 0–3 impact levels, a next-step question. So part of the gain is familiarity with the format. With 96 cases, differences of 1–2 points are within noise.

3. Policies and rubrics (in-house)

267 cases from a domain held out of training (school administration), built by the same generator as v3's rule data. Every answer is computed by code from the case's facts and its policy.

OverallRouting by policyNext stepImpact / urgency scores
Mizan v3 Q497.1%97%98%98–99%
Mizan 1.0 Q470.5%–––

The domain is unseen, but the format isn't, so treat this as "it learned the skill", not as a real-world score.

Speed

Same 4-bit GGUF on llama.cpp, NVIDIA L4: 55 ms median per text request, against 80 ms for Mizan 1.0. CPU speed is not measured for v3 yet; expect about the same 1.5× gain.

speed

Confidence gating: auto-decide what Mizan is sure about, and send the rest to a human.

gating

How v3 is built

A shorter backbone. We measured how well each layer of Qwen3.5-4B supports Persian decisions with a linear probe per layer:

Layer812161820242832 (last)
Held-out mix64.771.878.280.379.978.577.676.1
Unseen domain53.561.972.575.773.172.470.666.4
  • Decision ability peaks in the middle of the model, and the last layers, which specialize in predicting the next word, are worse. Earlier classification work found the same (Chip-Tuning, TELL-TALE).
  • So v3 keeps the first 20 of 32 layers, about 2.9B parameters, and puts the decision head there.
  • It's still a standard Qwen3.5 checkpoint with fewer layers, so llama.cpp and Unsloth load it unchanged.

Order-aware scores. Score questions get an extra loss term: the expected distance from the right level. Being off by one level costs less than being off by three.

Training

BaseQwen/Qwen3.5-4B (via unsloth/Qwen3.5-4B), cut to its first 20 decoder layers
HeadClef joint-schema head, trained from scratch
MethodUnsloth FastDecisionModel + DecisionTrainer; LoRA r=64 on all linear layers (lr 1e-4), head lr 3e-4, ordinal loss weight 0.5; LoRA merged
Schedule1 epoch, 1,336 steps, batch 16, cosine, max length 4,096
CalibrationPer-type temperatures fitted on a held-out slice (ECE 0.027 there)
Compute1× H100, 34 min

Data: 21.4k decisions, about 57% English and 43% Persian.

  • English: Unsloth's decision mixture (BANKING77, CLINC150, MNLI, SNLI, WANLI, BoolQ, AG News, SST-5, MMLU, CommonsenseQA, ARC, prompt injections) plus typed-decisions.
  • Rule-labelled Persian cases (2,530 records, about 11k questions) in 9 business domains: food delivery, banking apps, telecom, insurance, HR, clinic admin, logistics, building management and ride hailing.
    • Code samples the facts and a random policy for each case, then computes every answer. An LLM only writes the Persian message.
    • A second, blind LLM pass reads the facts back from the message, and mismatches are dropped (87% kept).
  • Mistake fixes (2,420): we found earlier Mizan models' mistakes on real Persian data, and an LLM diagnosed each one blind. For every real mistake it wrote 3 new examples: new wording, a contrast pair, and a new question wording. All of them are new text, and any example sharing 6 or more consecutive words with the source data was dropped.
  • Persian business workflows (about 6,600 records) from Mizan 1.0: moderation, reviews, app feedback, support routing, SMS fraud, listings, sales leads, chatbot guardrails, RAG relevance and CV screening.
  • Clean data: no text from datasets with non-commercial or unclear licenses. The only real rows used are from MASSIVE (CC BY 4.0).
  • Leak control: records and their copies are split together, and training rows are decontaminated against every eval set.

Limitations

  • Text only. For images, use Mizan v2.
  • Most Persian training data is synthetic. Test it on 200–300 of your own labeled records before automating.
  • Weaker than Clef on large intent taxonomies (60 intents: 77.5% vs 87.7%), and slightly below the earlier Mizan models on Digikala's "recommend or not" reviews.
  • The 4-bit build costs about 0.6 points against 8-bit; use Q8 when accuracy matters most.

Versions

Earlier releases are kept as tags of this repo: v1 (Mizan 1.0) and v1.5 (Mizan 1.5).

License

Apache-2.0, the same as the Qwen3.5 base model.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
d7fd7e6

0 моделей