/ Модель

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

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

onepass-qwen3-1.7b

Генерация текстаТекст → текст6 профессий

Дообученная на Qwen3-1.7B модель за один проход оценивает вероятности типизированных ответов на вопросы по текстовому описанию ситуации.

148скачиваний за 30 дней1лайквеса обновлены25 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onepass-qwen3-1.7b — компактная модель принятия решений на основе Qwen3-1.7B, разработанная Abdul Samad. Она принимает текстовое описание ситуации и типизированные вопросы с вариантами ответов: да/нет, выбор одного варианта или оценка по шкале. За один проход модель выдаёт вероятности для каждого ответа на все вопросы, не формируя обычный текстовый ответ; это позволяет использовать её для классификации и структурированного извлечения решений.

Модель содержит 1,7 млрд параметров, из которых 35 млн обучены через LoRA, слитую с базовыми весами. Она дообучена на 68 061 текстах и 138 928 вопросах из открытых наборов данных; цели обучения учитывают доли ответов людей. Модель рассчитана на английский текст и использует контекст до 40 960 токенов. Для работы требуется точно соблюдать обученный формат промпта; на каждый вопрос допускается не более 26 вариантов ответа.

На тесте LocalLLaMA/typed-decisions точность составила 0,646, однако на отложенных наборах результаты по точности неоднородны, а лучший вариант ответа ошибочен примерно в трети случаев. Вероятности ответов могут быть полезнее одной метки, особенно для последующей обработки. Модель распространяется в формате Transformers (bf16, safetensors); лицензия — Apache-2.0. Указанные в карточке GGUF-файл и отдельный LoRA-адаптер опубликованы в соседних репозиториях.

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

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

Ограничения

Для корректной работы требуется точно воспроизводить формат промпта, использованный при обучении, и ограничивать число вариантов ответа 26 на вопрос. Точность на тестовом бенчмарке составляет 0,646, результаты на отложенных наборах неоднородны; модель обучена только на английском тексте.

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

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

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

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

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

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

Открыть на Hugging Face

onepass-qwen3-1.7b

This repo has the full model in transformers format (bf16, LoRA merged in). GGUF files for llama.cpp: samadpls/onepass-qwen3-1.7b-GGUF. The LoRA adapter alone: samadpls/onepass-qwen3-1.7b-lora.

Model Overview

onepass is a tiny open decision model. You give it a piece of text (the "state") and typed questions: yes/no, choose one option, or pick a level on a scale. It returns a probability for every possible answer, for all questions at once, from a single forward pass.

  • One pass, nothing generated. Answers are read from the model's scores, so the output can never be malformed.
  • Calibrated. It was trained on the share of human raters who chose each answer, not just one label.
  • Never trained on its benchmark. Scored on LocalLLaMA/typed-decisions, trained only on other open data.

A support message, two questions, and the answer probabilities onepass returned

The card above shows the 8-bit 0.6B model. This model gives refund true 0.92 and team billing 0.95 for the same message.

Model Details

Base modelQwen/Qwen3-1.7B
Size1.7B parameters (35M trained with LoRA)
Training data68,061 texts with 138,928 questions from 19 open datasets
Calibration temperature1.05
LanguageEnglish
LicenseApache-2.0
Other sizesamadpls/onepass-qwen3-0.6b
Codesamadpls/onepass

📊 Results

Scored on the 400-case test split of LocalLLaMA/typed-decisions (2,000 decisions), with the formulas from the benchmark's own scoring script. Accuracy: higher is better. KL from gold, Brier and ECE: lower is better.

ModelAccuracyKL from goldBrierECE
Qwen3-1.7B, no fine-tuning0.2781.9140.8120.611
Label frequencies from the benchmark's train split (ignores the input)0.4810.3270.1810.036
onepass 1.7B0.6460.2360.1290.076
onepass 1.7B
Yes/no0.755
Choose one0.605
Pick a level0.594
Agent traces0.574
Customer service0.686
Invoices0.654
Security incidents0.668
SetAlways the most common answerAccuracy before → after
CondaQA (negation, yes/no)0.4830.495 → 0.476
Cosmos QA (common sense, choose one)0.2600.529 → 0.506
SummEval (summary quality, pick a level)0.6510.073 → 0.376
RAGTruth (is the answer supported?, yes/no)0.7680.476 → 0.760

Accuracy is mixed. The probabilities improve on every set: KL from gold falls on all four.

⚡ Use it with transformers

The model is a normal Qwen3 checkpoint. The only thing that matters is the prompt layout it was trained on. Copy this, and you depend on nothing but transformers:

import json
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

MODEL = "samadpls/onepass-qwen3-1.7b"
TEMPERATURE = 1.05  # calibration temperature for this model
SYSTEM = "You are a decision model. Read the state, then answer every question with the letter of one option."
LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
KIND = {"noul": "true or false", "choice": "choose one", "score": "pick a level"}

def options(q):
    c = q.get("criteria") or {}
    if q["type"] == "noul":  # yes/no: always true, then false
        return [("true", c.get("true", "")), ("false", c.get("false", ""))]
    if q["type"] == "score":  # levels 0..n-1, in order
        return [(str(i), d) for i, d in enumerate(c)]
    return list(c.items())

def build_prompt(state, questions, tok):
    enc = lambda s: tok.encode(s, add_special_tokens=False)  # encode piece by piece, never the whole string
    text = state if isinstance(state, str) else json.dumps(state, indent=1, ensure_ascii=False)
    ids = enc(f"<|im_start|>system\n{SYSTEM}<|im_end|>\n<|im_start|>user\nState:\n{text}\n")
    slots = {}
    for n, (qid, q) in enumerate(questions.items(), 1):
        opts = options(q)
        lines = "".join(f"{LETTERS[i]}) {label}: {desc}\n" for i, (label, desc) in enumerate(opts))
        ids += enc(f"\nQuestion {n} ({KIND[q['type']]}): {q['instructions']}\n{lines}Answer:")
        slots[qid] = (len(ids) - 1, [label for label, _ in opts])  # the next token here is the answer letter
        ids += enc(" ?\n")
    return ids + enc("<|im_end|>\n"), slots

tok = AutoTokenizer.from_pretrained(MODEL)
model = AutoModelForCausalLM.from_pretrained(MODEL)
state = "My card was charged twice for one order. Please refund the extra charge today."
questions = {
    "refund": {"type": "noul", "instructions": "The customer wants a refund.", "criteria": {"true": "Yes.", "false": "No."}},
    "team": {"type": "choice", "instructions": "Which team should handle this?",
             "criteria": {"billing": "Payments and refunds.", "tech_support": "Bugs and setup.", "sales": "New orders."}},
}
ids, slots = build_prompt(state, questions, tok)
letters = [tok.encode(" " + L, add_special_tokens=False)[0] for L in LETTERS]
with torch.no_grad():
    logits = model(torch.tensor([ids])).logits[0]  # one forward pass, nothing generated
for qid, (pos, labels) in slots.items():
    p = (logits[pos, letters[: len(labels)]].float() / TEMPERATURE).softmax(-1)
    print(qid, dict(zip(labels, p.tolist())))

Three rules keep it working:

  • Encode the prompt piece by piece, as above. Encoding it as one string can merge tokens across an answer slot.
  • Yes/no options are always true then false. Score levels are 0 to n-1, in order.
  • Use at most 26 options per question.

For a laptop or a phone, the 8-bit GGUF file in samadpls/onepass-qwen3-1.7b-GGUF is smaller and gives the same answers.

How it works

  1. One slot per question. The prompt lists the state, then each question with its options as letters (A, B, C ...), each followed by Answer:. The model's scores for the option letters at that position become the answer probabilities.
  2. No answer leaks into the next question. A fixed placeholder follows every slot, so each answer depends only on the state and the questions so far.
  3. Trained on probabilities. Where a dataset has several human raters, the training target is the share of raters who chose each answer.

How it was trained

  • Data. 40,000 texts from 16 human-labelled datasets (BoolQ, MultiNLI, Banking77, GoEmotions and others), plus three open typed-question datasets: n4ze3m/typed-decisions-synth (MIT), decisionmodels/sn92-specialists (CC BY 4.0) and tasksource/procedural-typed-decisions (Apache-2.0). The full list and build commands are in the GitHub README.
  • LoRA on every linear layer. Rank 32, alpha 64, on the attention and feed-forward layers of all 28 blocks. The Qwen weights stay frozen.
  • Loss only at the answer slots, against the target probabilities.
  • One pass over the data: 6,455 steps of 4,096 tokens, learning rate 2e-4 with a cosine schedule, on two free Kaggle T4 GPUs in 8.8 hours.
  • Calibration: one temperature (1.05), fitted on our own validation set, never on the benchmark.

Limitations

  • On the benchmark it picks the wrong top answer about 1 time in 3. Use the probabilities, not only the top label.
  • Accuracy on the held-out sets is mixed.
  • It was trained on English text only.
  • The prompt layout must match the training layout token for token.

Credit

Built by Abdul Samad (samadpls.com, abdulsamadsid1@gmail.com). Base model by the Qwen team. Training data from the datasets listed above; thanks to their authors. Licensed under Apache-2.0.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей