onepass-qwen3-1.7b-lora
This repo has only the LoRA adapter, in PEFT format. For the full model, see
samadpls/onepass-qwen3-1.7b. GGUF files:samadpls/onepass-qwen3-1.7b-GGUF.
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.
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 model | Qwen/Qwen3-1.7B |
| Size | 1.7B parameters (35M trained with LoRA) |
| Training data | 68,061 texts with 138,928 questions from 19 open datasets |
| Calibration temperature | 1.05 |
| Language | English |
| License | Apache-2.0 |
| Other size | samadpls/onepass-qwen3-0.6b-lora |
| Code | samadpls/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.
| Model | Accuracy | KL from gold | Brier | ECE |
|---|---|---|---|---|
| Qwen3-1.7B, no fine-tuning | 0.278 | 1.914 | 0.812 | 0.611 |
| Label frequencies from the benchmark's train split (ignores the input) | 0.481 | 0.327 | 0.181 | 0.036 |
| onepass 1.7B | 0.646 | 0.236 | 0.129 | 0.076 |
| onepass 1.7B | |
|---|---|
| Yes/no | 0.755 |
| Choose one | 0.605 |
| Pick a level | 0.594 |
| Agent traces | 0.574 |
| Customer service | 0.686 |
| Invoices | 0.654 |
| Security incidents | 0.668 |
| Set | Always the most common answer | Accuracy before → after |
|---|---|---|
| CondaQA (negation, yes/no) | 0.483 | 0.495 → 0.476 |
| Cosmos QA (common sense, choose one) | 0.260 | 0.529 → 0.506 |
| SummEval (summary quality, pick a level) | 0.651 | 0.073 → 0.376 |
| RAGTruth (is the answer supported?, yes/no) | 0.768 | 0.476 → 0.760 |
Accuracy is mixed. The probabilities improve on every set: KL from gold falls on all four.
⚡ Use the adapter
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-1.7B")
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-1.7B")
model = PeftModel.from_pretrained(base, "samadpls/onepass-qwen3-1.7b-lora")
Then build the prompt and read the answer slots exactly as in the
samadpls/onepass-qwen3-1.7b example, with TEMPERATURE = 1.05.
| Rank / alpha | 32 / 64, no dropout |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj, all 28 blocks |
| Size | 140 MB (fp32) |
How it works
- 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. - 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.
- 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.