onepass-qwen3-1.7b-lora
adapter for structured decision making
2 min readupdated
The model turns a base LLM into an open tool for decision making. You pass text and questions with options (for example, "yes/no" or level selection), and the model returns probabilities for each option in a single pass. Answers are read directly from the model's scores, so it generates nothing and text never breaks. The adapter is built on Qwen/Qwen3-1.7B by author Abdul Samad during a hackathon and will be useful for developers of automation, support, and analytics systems.
Key features
- Single pass: answers are read from model scores, eliminating incorrect or broken output.
- Calibrated: training used fractions of real human evaluations rather than a single label.
- Fair evaluation: the model was not trained on benchmarks, being tested on independent datasets.
- Efficiency: LoRA (a small add-on over the base model) is applied to all linear layers of the 1.7B parameter model.
What you can do
- Support automation: classify customer tickets and refund requests in support bots.
- Invoice analysis: extract structured verdicts and parameters from financial documents.
- Security monitoring: evaluate security incidents using precise probability scales.
- Agent integration: use the model for logical decision making inside AI agent chains.
Example
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")
Read more
DetailsBenchmarks: 0.646 accuracy on typed-decisions (vs. 0.278 for the base model).
Requirements: Qwen3-1.7B base plus a 140 MB LoRA adapter.
Limitations: works with English only, prompt structure must strictly match the training format.
Training: 68k texts, LoRA with rank 32 and alpha 64 on all 28 blocks.










Comments