/ Модель

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

Контекст
131 072 токена
Размер весов
8,1 ГБ
Лицензия
Apache 2.0
Архитектура
lod · dense
Базовая модель
Qwen3-4B-Base
Библиотека
transformers
Опубликована
27 сен 2026

lod-stor-4B

Классификация без дообученияТекст → label

Модель на базе Qwen3 оценивает вероятности вариантов ответа и уверенность для классификации без примеров и задач выбора по текстовому контексту.

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

Бенчмарки

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

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

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

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

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

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

lod-stor-4B — плотная модель оценки вариантов на 4 млрд параметров, разработанная авторами проекта LOD и дообученная на базе Qwen/Qwen3-4B-Base с помощью LoRA. Она принимает текстовое состояние и вопросы с вариантами ответов и критериями, а затем оценивает варианты и возвращает вероятности, отдельную оценку уверенности в том, что правильный ответ вообще присутствует среди вариантов, либо балл по шкале от 2 до 10. Модель предназначена для классификации без примеров, ранжирования вариантов и выборочного принятия решений с возможностью воздержаться; токены ответа она не генерирует и может работать на CPU.

Модель обрабатывает английский текст. Принимает состояние до 30 720 токенов и вопросы в пределах общего окна 32 768 токенов; более длинное состояние вызывает ошибку, если явно не включить усечение. В описанных авторами оценках точность заметно различается между задачами, а калибровка вероятностей может быть неточной на отдельных задачах. Модель не может выбрать ответ вне предложенного списка; при отсутствии правильного варианта осмысленна только оценка уверенности. Лицензия — Apache-2.0.

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

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

Ограничения

Модель не выбирает ответы вне предложенных вариантов, а точность и калибровка могут существенно различаться между задачами; английский язык — единственный заявленный язык. Для состояний свыше 30 720 токенов приведённые результаты не подтверждены, а усечение требует явного включения.

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

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

Открыть на Hugging Face

lod-stor-4B

A 4B option-scoring model. You send a state and one or more typed questions, each with its own options and criteria. For every question it returns a calibrated probability over your options, plus a separate confidence that the answer is among them at all. No generated tokens; runs on a CPU. One of two sizes: lod-lille-0.6B (Qwen3-0.6B-Base) and lod-stor-4B (Qwen3-4B-Base), same interface and code.

Code, training recipes and the corpus pipeline: github.com/mrn-dk/lod.

  • Independent questions: each question attends to the state and to itself, never to another question, so adding or removing a question never changes the rest.
  • Independent options: each option attends to the state, its question and itself, from the same start position. No option's score depends on which other options are listed or in what order.
  • Options are compared once: a small comparison layer looks at the top 64 options together and corrects their scores; the rest keep their own.
  • Only your options: the softmax covers your options and nothing else, at temperature 1. The training loss is a proper scoring rule, and a temperature fitted afterwards made held-out calibration worse, so none is applied.
  • Criteria are read: option keys are arbitrary identifiers; the criteria text carries the meaning.
  • Proper-scoring training: cross-entropy against observed outcome frequencies (soft targets where they exist). No RL.

Quick start

pip install torch transformers
from transformers import AutoModel

model = AutoModel.from_pretrained("thefloydd/lod-stor-4B", trust_remote_code=True).eval()

response = model.score(
    state={"channel": "email",
           "subject": "Deploy failing since 4.2.1",
           "body": "Since upgrading to 4.2.1 our nightly deploy fails at the migration "
                   "step with 'relation users_pkey already exists'. Rolling back to "
                   "4.2.0 fixes it. We have 200 seats and this blocks our release on "
                   "Friday.",
           "plan": "enterprise"},
    questions={
        "kind": {
            "type": "choice",
            "instructions": "What kind of request is this?",
            "criteria": {"bug":      "Reports something that is broken",
                         "question": "Asks how to do something",
                         "feature":  "Requests new functionality",
                         "billing":  "About payment or invoices"}},
        "needs_engineer": {
            "type": "noul",
            "instructions": "Does resolving this require someone who can read the codebase?",
            "criteria": {"true":  "Requires engineering investigation",
                         "false": "A support agent can resolve it from documentation"}},
    },
)

kind = response["answers"]["kind"]
print({k: round(v, 3) for k, v in kind["probabilities"].items()}, round(kind["confidence"], 3))
# {'bug': 0.966, 'question': 0.027, 'feature': 0.004, 'billing': 0.003} 0.92
print(round(response["answers"]["needs_engineer"]["noul"], 3))
# 0.687
print(response["usage"])
# {'input_tokens': 173, 'output_tokens': 0, 'state_tokens': 91, 'state_truncated': False}

confidence is the head's estimate that the right answer is among the listed options; noul is the probability that the statement is true.

Interface

question typeasksreturns
choicewhich option is correctchoice, probabilities, confidence
noulwhether a statement is truenoul (a probability)
scorea position on a 2–10 point scalescore, probabilities, confidence
  • The model never sees the question id; put the full question in instructions.
  • No option cap. When the options do not fit beside the state, each question is scored in option shards against the state encoded once. Because options are independent, that gives the same answer as one pass.
  • Up to 32,768 tokens accepted (the backbone's window): the state is read up to 30,720 tokens, and the state plus the questions of one pass up to 32,768.
  • Tested up to 30,000-token states (the long-context check above); 256 options in one question (synthetic) and 988 test questions with 129+ options. Trained on states up to 30,000 tokens and 32,768 in total, mostly short.
  • The state is never cut silently. A state over the budget raises ValidationError (field == "state"). Pass state_overflow="truncate" to score the part that fits; usage.state_truncated and usage.state_tokens then say how much was read.
  • usage also reports input_tokens; output_tokens is always 0.
  • fp32 by default; dtype=torch.bfloat16 halves memory and moves the example slightly (probabilities unchanged to 3 decimals; noul 0.692). model.to("cuda") for GPU.
  • config.json sets temperature: 1.0 (no fitted temperature) and confidence_mode: head; score() applies both.

Evaluation

139,543 test questions over 447 tasks. The test tasks' families, and the development families used to choose the checkpoint, never appear in training. 95 % bootstrap intervals are in brackets.

accuracyNLLECE
all questions0.789 [0.786, 0.791]0.6650.036 [0.034, 0.038]
mean over tasks0.685 [0.661, 0.710]0.931—
labels from people or real systems (70,997 questions, 375 tasks)0.7380.7980.036
labels computed by code (68,546 questions, 72 tasks)0.8420.5390.038
  • Selective prediction: when the top option has p ≥ 0.9 (47.5 % of questions) it is wrong 5.5 % of the time. The confidence head ranks answers better than the top probability (AURC 0.045 vs 0.069 on held-out dev tasks).
  • Option order: reversing and shuffling the options of 41 questions moves a probability by 0.0007 on average and at most 0.010 (bf16 GPU arithmetic), and never changes the answer; in fp32 the scores are order-independent by construction.
  • Many options: accuracy on test questions with 129 or more options is 0.475 (988 questions). Synthetic look-up, 10 questions per option count, accuracy by N — 2: 1.0, 4: 1.0, 8: 1.0, 16: 1.0, 32: 1.0, 64: 1.0, 128: 1.0, 256: 1.0.
  • Long states: controlled look-up at fixed state lengths, 180 questions each (chance 0.306), accuracy — 1k: 0.85, 2k: 0.82, 4k: 0.81, 8k: 0.82, 16k: 0.79, 30k: 0.81.
  • Abstention: with the needed evidence withheld, mean confidence drops from 0.84 to 0.52; for claims about entities never seen in training it is 0.97 when the state supports the claim and 0.30 when the state does not mention it.

Limitations

  • Accuracy varies a lot by domain. The weakest on the test tasks: reasoning and puzzles (0.50), document structure (0.57), security advisory triage (0.59), text classification and taxonomy (0.61).
  • Probabilities are calibrated on average (ECE 0.036), but per task they can be far off (mean per-task ECE 0.19). On questions with a known true probability the model tracks it (r 0.78, mean absolute error 0.089) but not closely enough to read as an exact posterior.
  • It cannot answer off-list. If the right answer is missing, only confidence is meaningful.
  • Long states are a tail of the training mix; beyond 30,000 tokens the numbers above are unmeasured.
  • Only the top 64 options by first-stage score are compared with each other; the others are scored on their own.
  • English only.

Training

Qwen/Qwen3-4B-Base with LoRA (r 64, alpha 128, dropout 0.05), merged. 8,000 steps at learning rate 1e-4, batches of up to 49,152 tokens; checkpoint chosen by out-of-distribution dev NLL. No temperature is fitted: one fitted on the held-out dev families (with an option-count slope) lowered NLL slightly but made calibration worse. The confidence head is trained afterwards against the frozen scoring model and reads the shortlisted options' hidden states plus the shape of the distribution.

Data: 793,920 questions over 2,750 tasks from 51 sources in 25 domains: text classification, rule application, affect, reasoning, forecasting, grounding, security, software, NLI, law, tables, documents, logs, browser and sensor states, tool calls, entity resolution, code diffs, scheduling, multi-hop ranking, multilingual text, exact posteriors, many-option linking, broad real-language judgements and long documents. Labels come from people or real systems where they exist and are computed by code for the generated rows. The Decision Index 0.2 benchmark is excluded (its datasets by name, and every state checked against its items).

Citation

@software{lod_2026,
  title  = {lod-stor-4B: a prefill-only option-scoring model for calibrated decisions},
  year   = {2026},
  note   = {Qwen/Qwen3-4B-Base + LoRA, independent questions and options, a comparison
            layer over the shortlist, proper-scoring fine-tuning, separate confidence
            head}
}

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
LodModel
Ревизия весов
7b8939b

0 моделей