/ Модель

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

Контекст
40 960 токенов
Параметры
1,7 млрд
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-1.7B
Библиотека
transformers
Опубликована
22 сен 2026

lq-decide-1.7b

Генерация текстаТекст → текст

LQ-Decide 1.7B — англоязычная модель для классификации и выбора с оценкой вероятностей по заданному списку вариантов.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

LQ-Decide 1.7B — компактная модель для выбора между заданными вариантами, разработанная Hanish Keloth для LocalQuill. Вместо свободного текста она оценивает фиксированный набор вариантов и возвращает распределение вероятностей за один проход; это позволяет использовать её для маршрутизации и принятия решений без разбора сгенерированного ответа. Модель основана на Qwen/Qwen3-1.7B, дообучена с помощью LoRA rank 32, затем веса адаптера объединены с базовой моделью. В репозитории доступны safetensors и варианты GGUF Q8_0 и Q4_K_M; размер модели — 1,7 млрд параметров, контекст — 40 960 токенов.

Модель предназначена для локальной работы на устройствах и подходит для классификации состояний по заданным правилам, интерпретации свидетельств и выбора кандидата из списка. Она рассчитана на английский язык и от трёх до шестнадцати вариантов. На опубликованном чистом тесте точность сбалансированной классификации составила 0,797 для bf16, но на изменённых вариантах тех же примеров снизилась до 0,628. Калибровка температуры и усреднение по перестановкам вариантов улучшают надёжность вероятностей и снижают смещение к позиции в списке. Разработчик сообщает, что измерения задержки проведены на Apple M5 Max, а результаты для телефонов не опубликованы.

Лицензия модели — Apache-2.0. README указывает, что обучение проводилось на датасете с помеченными лицензиями источников, исключая некоммерческие источники.

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

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

Ограничения

Модель рассчитана на английский язык и проверена для наборов из 3–16 вариантов; устойчивость к переформулировкам заметно ниже точности на чистом тесте. Результаты задержки опубликованы только для Apple M5 Max и не подтверждают производительность на телефонах.

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

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

Открыть на Hugging Face

LQ-Decide 1.7B

A model that answers typed decisions instead of generating text. You give it a state and a fixed option set; it returns a probability distribution over those options from a single forward pass. Nothing is sampled, so the output cannot be malformed and there is nothing to parse or repair.

Built by Hanish Keloth for LocalQuill, a private on-device AI keyboard and offline chat app. Trained from Qwen/Qwen3-1.7B. A smaller 0.6B version is also available.

Results

Two labelled public fixtures from the SemIf project, never seen in training. Balanced accuracy, three options per item, chance is 0.333.

authored144perturbations108
LQ-Decide 1.7B, Q8_0 GGUF0.812—
LQ-Decide 1.7B, bf160.7970.628
LQ-Decide 1.7B, Q4_K_M GGUF0.762—
LQ-Decide 0.6B, Q8_00.7500.586
SemIf, Qwen3.5-4B, published0.813—
Jev (TypeSafe, closed), published0.883 on 102 aligned rows—

The bf16 row is measured through transformers and the GGUF rows through llama.cpp; the 0.015 spread between bf16 and Q8_0 is within noise on 144 items and should not be read as quantization improving the model.

Per family, bf16, permutation-averaged:

familyauthored144perturbations108
evidence interpretation0.8120.667
rule application0.7710.556
candidate selection0.7710.583

The perturbation set contains modified variants of the same items and is the better test of whether the model reads the distinction or the wording. The gap between 0.797 and 0.628 is the honest measure of how much of this is robust.

Quantization costs real accuracy here

Measured on both sizes, same fixture, same prompts:

modelQ8_0Q4_K_Mdifferencemedian latency Q8 → Q4
0.6B0.7500.703−4.737 ms → 36 ms
1.7B0.8120.762−5.067 ms → 59 ms

Because the entire output is a probability over a handful of option tokens, four-bit error lands directly on the thing you read rather than being spread across generated text. Use Q8_0. Q4_K_M buys file size and, at 1.7B, eight milliseconds, for five points of accuracy.

Calibration

A single temperature constant, fitted on a held-out split, shipped in calibration.json.

expected calibration error
raw0.161
after T = 2.30.039
after T = 2.3, permutation-averaged0.031

Averaging logits over all option orderings costs nothing in accuracy, improves calibration, and removes position bias in the option list. Apply the temperature before reading probabilities as confidence.

Latency

llama.cpp on an Apple M5 Max, 147-token prompts, one decision per request:

quantmedianp95size
Q4_K_M59 ms72 ms1,056 MB
Q8_067 ms81 ms1,749 MB

No phone measurement is published, by us or, as far as we can find, by anyone else working on this pattern. Do not assume desktop numbers transfer to a handset.

Use

import torch, json
from transformers import AutoTokenizer, AutoModelForCausalLM

LETTERS = "ABCDEFGHIJKLMNOP"
SYSTEM = ("Apply the supplied criterion to the supplied evidence. Choose exactly one listed option. "
          "Respond with only its uppercase letter, with no explanation or reasoning.")

tok = AutoTokenizer.from_pretrained("Hanish/lq-decide-1.7b")
model = AutoModelForCausalLM.from_pretrained("Hanish/lq-decide-1.7b", dtype=torch.bfloat16).eval()
T = 2.3   # calibration.json

def decide(state, question, options):
    payload = {"evidence": state, "criterion": question,
               "options": [{"letter": LETTERS[i], "description": d} for i, d in enumerate(options)]}
    msgs = [{"role": "system", "content": SYSTEM},
            {"role": "user", "content": json.dumps(payload, ensure_ascii=False)}]
    text = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True, enable_thinking=False)
    ids = tok(text, return_tensors="pt")
    with torch.no_grad():
        logits = model(**ids).logits[0, -1]
    sel = torch.tensor([logits[tok.encode(LETTERS[i], add_special_tokens=False)[0]]
                        for i in range(len(options))]).float()
    return torch.softmax(sel / T, -1).tolist()

print(decide(
    "The optician ordered replacement lenses. The workshop confirms they have not yet been fitted.",
    "Assess the claim: the replacement lenses have been fitted.",
    ["The evidence establishes the claim",
     "The evidence does not establish either",
     "The evidence establishes the opposite"]))

The prompt format matters; the model was trained on exactly this template, with options shuffled and the answer letter re-based so it reads descriptions rather than positions. With llama-server, request one token with logprobs and read the probability mass on the option letters.

Training

LoRA rank 32 on all projections, merged. Loss on the single answer-letter token only. Options permuted and the letter set re-based every epoch. 117,096 rows, two epochs, 19,516 steps, about 2 h 50 m on one L40S.

Data: Hanish/lq-decide-data, 141,038 rows, every source licence-tagged and non-commercial sources excluded. 57,096 rows are synthetic items in three decision families, where the intended answer was fixed before generation so the teacher only wrote surface text and never supplied a label. The evaluation fixtures were never trained on, generated from, or shown to the teacher.

Limitations

  • English only.
  • Three to sixteen options; not tested beyond that.
  • Perturbation robustness is well below clean-fixture accuracy, 0.628 against 0.797.
  • Not compared against Laya or other recent decision models, which publish on their own benchmarks; this one has not been run on them. The table above is not a ranking against anything not in it.

Credits

Base model Qwen/Qwen3-1.7B (Apache-2.0, Alibaba). Evaluation fixtures from the SemIf project (MIT). Synthetic data generated with Ornith-1.5-35B-A3B (MIT). The interface pattern follows TypeSafe's Jev, a separate closed product; this model is not affiliated with or endorsed by it.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей