Qwen 2.6 Thinking (1.5B)
Qwen 2.6 Thinking is a 1.5B-parameter reasoning model fine-tuned from the raw Qwen/Qwen2.5-1.5B base checkpoint to think step by step inside <think>...</think> tags before delivering a final answer.
Credits & Attribution
- Base Model:
Qwen/Qwen2.5-1.5Bby Alibaba Cloud (Qwen Team) - Reasoning Traces / Teacher Data:
a-m-team/AM-DeepSeek-R1-0528-Distilled(distilled from DeepSeek-R1) - Fine-Tuning & Publishing: VoidOSS
Training Summary
Trained remotely on a single NVIDIA GeForce RTX 4060 Ti (8 GB VRAM) using 4-bit QLoRA (r=16, lora_alpha=32, BF16 compute, paged_adamw_8bit) and merged back into BF16 weights:
- Stage 1 โ Reasoning Distillation: 800 English
<think>...</think>reasoning traces fromAM-DeepSeek-R1-0528-Distilled(2 epochs, ChatML format). - Stage 2 โ Identity & Conversational Thinking: Multi-step first-person
<think>reasoning for greetings, identity, and general Q&A with<|im_end|>EOS alignment. - Stage 3 โ Anti-Hallucination Polish: Targeted factual grounding (letter counting, decimal comparison, trick questions, and honest uncertainty).
Usage
Use ChatML formatting (<|im_start|>user ... <|im_end|>) and stop on <|im_end|> / <|endoftext|>:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "VoidOSS/Qwen-2.6-Thinking-1.5B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
prompt = "<|im_start|>user\nIf 5 machines take 5 minutes to make 5 widgets, how long will 100 machines take to make 100 widgets?<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(
**inputs,
max_new_tokens=384,
temperature=0.6,
top_p=0.95,
eos_token_id=[tokenizer.convert_tokens_to_ids("<|im_end|>"), tokenizer.eos_token_id],
)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Benchmark vs. Base Model (Reasoning & Execution Gauntlet)
Evaluated head-to-head on gpupc (RTX 4060 Ti 8 GB, greedy decoding do_sample=False) using ChatML prompting (max_new_tokens=1024 for Python code suite on Qwen-2.6-Thinking so <think> completes before code output):
| Benchmark Suite | Qwen/Qwen2.5-1.5B (Raw Base) |
VoidOSS/Qwen-2.6-Thinking-1.5B |
Delta |
|---|---|---|---|
GSM8K (test[:50]) |
12.0% (6 / 50) |
58.0% (29 / 50) |
+46.0 pts (4.83ร) |
Logic & Cognitive Traps (10) |
30.0% (3 / 10) |
60.0% (6 / 10) |
+30.0 pts (2.0ร) |
Python Code Execution (8 unit tests) |
62.5% (5 / 8) |
87.5% (7 / 8) |
+25.0 pts |
<think> Reasoning Compliance |
0.0% | 95.6% | +95.6 pts |
| Clean Native EOS Stopping | 44.1% | 67.6% | +23.5 pts |
Intended Use & Deployment
Qwen 2.6 Thinking (1.5B) is built as a fast, lightweight reasoning model for edge/on-device deployment, low-VRAM servers (8 GB GPUs), coding & math helpers, and reasoning-augmented assistants where structured <think>...</think> step-by-step verification is desired without large-model latency.
Notes
- At 1.5B parameters, occasional factual slips can occur on edge cases; for production serving, configure
eos_token_id/stop_stringson<|im_end|>and<|endoftext|>.
- Downloads last month
- 165
Model tree for VoidOSS/Qwen-2.6-Thinking-1.5B
Base model
Qwen/Qwen2.5-1.5B