/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen3.5-4B
Опубликована
20 сен 2026

Qwen3.5-4B-Hmm

Классификация текстаТекст → label

Hmm — англоязычная LoRA-модель на базе Qwen3.5-4B, которая оценивает вероятности вариантов для классификации и решений по текстовым или JSON-данным.

1 249скачиваний за 30 дней5лайковвеса обновлены10 окт 2026

Бенчмарки

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

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

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

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

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

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

Hmm — экспериментальная модель n4ze3m, дообученная методом LoRA на базе Qwen3.5-4B для принятия решений по предоставленным текстовым или JSON-данным. Вместо обычного текстового ответа она оценивает вероятности вариантов ответа: например, «да» или «нет», выбор из списка либо оценку по заданной шкале. Для получения результатов используется вероятность первого токена среди букв вариантов; автор также предоставляет локальный сервер, который упрощает такой способ работы.

Модель подходит для классификации, маршрутизации запросов, проверок и принятия решений в рабочих процессах. Дообучение выполнено на смеси открытых и синтетических данных: около 30 тысяч вопросов, один проход обучения; синтетические примеры созданы и размечены другой LLM. В README приводятся результаты нескольких тестов, но автор предупреждает, что качество зависит от конкретных данных и Hmm уступает Jev на сравниваемых наборах.

Модель обучалась только на английских запросах и промптах длиной до 768 токенов. Длинные списки вариантов сервер обрабатывает частями, что медленнее и может снижать точность; один вопрос требует отдельного прохода. Автор отмечает ошибки на задачах безопасности и не рекомендует использовать модель как единственный защитный фильтр или для важных решений. Лицензия — Apache-2.0; доступны веса GGUF в вариантах BF16, Q8_0 и Q4_K_M, а также safetensors.

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

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

Ограничения

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

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

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

Открыть на Hugging Face

Hmm (Qwen3.5-4B)

Hmm is a small open model that answers questions about your data with probabilities instead of text. You give it a state (any text or JSON) and a few typed questions, it gives back a yes/no probability, a choice or a score.

It is a fine-tuned Qwen3.5-4B. Code, local server and training scripts: github.com/n4ze3m/hmm

Note: This is a fun experiment. Hmm is nowhere near the quality of Jev from TypeSafe and it is not affiliated with TypeSafe in any way. The local server just follows the same request format so it is easy to try.

Files

FileSizeDescription
Qwen3.5-4B-Hmm-Q4_K_M.gguf2.7 GBRecommended. Same accuracy as the full model in my tests
Qwen3.5-4B-Hmm-Q8_0.gguf4.5 GB8-bit
Qwen3.5-4B-Hmm-bf16.gguf8.4 GBFull precision
lora/170 MBThe LoRA adapter, if you want to use it with transformers + peft

Usage

Hmm does not generate text, it reads the probability of the option letters on the first token. The easiest way to use it is the small server from the GitHub repo, which does this for you.

  1. Start the model
llama-server -hf n4ze3m/Qwen3.5-4B-Hmm:Q4_K_M -np 4 --port 8080

or with Ollama (v0.12.11 or newer)

ollama pull hf.co/n4ze3m/Qwen3.5-4B-Hmm:Q4_K_M
  1. Start the server
git clone https://github.com/n4ze3m/hmm.git
cd hmm/server
bun run start
  1. Ask something
curl http://localhost:8787/v1/systemone -d '{
  "state": "Help! My payouts have failed for 3 days. I need the money today.",
  "questions": {
    "is_urgent": { "type": "noul", "instructions": "Does this message convey urgency?" },
    "department": {
      "type": "choice",
      "instructions": "Which team should handle this?",
      "criteria": {
        "billing": "Payments, invoicing, refunds",
        "technical": "Bugs, outages, integrations",
        "sales": "Pricing, upgrades, new accounts"
      }
    }
  }
}'

Prompt format

If you want to call the model yourself, this is the exact prompt it was trained on. Take the probabilities of the tokens A, B, C... for the first generated token and normalize them over your options.

<|im_start|>user
State (data to evaluate):
{state}

Question:
{instructions}

Options:
A: {option key} — {option description}
B: {option key} — {option description}
Return only the option letter.<|im_end|>
<|im_start|>assistant
<think>

</think>

For yes/no questions the options are A: false — No and B: true — Yes. For score questions the keys are 0, 1, 2... and the descriptions are your levels, lowest first.

Benchmarks

Note: These numbers are from a few public test sets. Your use case is not one of them, and results can be very different from one use case to another. Hmm does not match Jev on any of them. Please test it on your own data before you trust it with anything.

Everything is zero-shot, none of these test sets were used for training. Majority means always answering the most common label. Qwen3.5-4B is the base model without fine-tuning, same prompt. Jev is only shown where the benchmark's own authors measured it on exactly the same records, I did not run Jev myself.

BenchmarkMajorityQwen3.5-4BHmm 4BJev 1.13
typed-decisions, 2,000 workflow decisions0.5200.5960.7090.727
Bespoke public suite, 13 human labelled tasks, macro0.7210.7500.760
OpenBookQA0.2760.8100.854
CommonsenseQA0.2090.7600.763
HellaSwag (2,000)0.2610.7650.722
Phishing emails (PhishNChips)0.5000.6480.629
  • On decisions about text you give it (routing, classification, verification, workflows) Hmm is a few points behind Jev. It is not ahead of Jev on anything that counts.
  • The fine-tune does not add knowledge, on knowledge benchmarks Hmm is about the same as the base Qwen. On game decisions (maze, doom) Hmm is not useful at all.
  • A lot of the score comes from Qwen itself. The fine-tune adds 11 points on the workflow benchmark, about 3 on the Bespoke suite, and it made HellaSwag and phishing slightly worse.
  • The Q4_K_M GGUF scores the same as the full model (0.715 vs 0.709 on typed-decisions, inside the noise).

Per-task tables, how the data was rebuilt, the overlap check and the caveats are in BENCHMARKS.md.

Training

  • LoRA (r=32) on all attention and MLP projections, 1 epoch, around 30,000 questions.
  • The training data is a mix of publicly available datasets and synthetic data. For the synthetic part DeepSeek V4.1 Flash (via Atlas Cloud) wrote around 7,400 cases with 26,000 questions for 100+ workflows, then answered every question again 3 times to get soft labels. Questions where it disagreed with itself were removed. This used about 25M tokens. The synthetic dataset is on Hugging Face: n4ze3m/typed-decisions-synth.
  • Training took 2 hours on one rented RTX 3090, which costs about $0.42.
  • The loss is plain cross entropy on the option letters, half on the answer and half on the soft labels.

Limitations

  • One question is one forward pass, so many questions about a long state are slow.
  • The model only knows 26 option letters. Longer lists (up to 255) still work with the server from the GitHub repo, it asks them in chunks of 25, but that is slower and less accurate.
  • It was trained on prompts up to 768 tokens and only in English.
  • The synthetic training data is written and labelled by an LLM. Nobody checked it.
  • It can miss things a careful reader would catch. In my tests it allowed a shell command that hid an rm -rf behind base64. Do not use it as your only safety gate, and do not use it for anything important.

Citation

@misc{nazeem2026hmm,
  author = {Muhammed Nazeem},
  title  = {Hmm: a small open model for typed decisions},
  year   = {2026},
  url    = {https://github.com/n4ze3m/hmm}
}

Support

If you like the project, you can support me on Ko-fi.

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

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

GPU в ailist

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

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

В репозитории нет config.json: не понять архитектуру модели.

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

0 моделей