Views
No views yet
| Benchmark | Base Qwen3-0.6B | Qwen3-0.6B-Reasoning-Opus | Impact |
|---|---|---|---|
| GSM8K Accuracy (n=50) | 26.0% | 32.0% | +6.0% Absolute Gain |
| ARC-Challenge (Factual) | Baseline | Degraded | -24.31% Absolute Loss |
<think> block for complex queries, effectively decomposing multi-step arithmetic that the base model failed on.<think>...**Answer: B**) but frequently filled the reasoning traces with overconfident, factually incorrect statements.nohurry/Opus-4.6-Reasoning-3000x-filtered (100% split)1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "Shreyansh327/Qwen3-0.6B-Reasoning-Opus"
4model = AutoModelForCausalLM.from_pretrained(model_name)
5tokenizer = AutoTokenizer.from_pretrained(model_name)
6
7prompt = "If a train travels 60 mph for 2.5 hours, how far does it go?"
8messages = [
9 {"role": "system", "content": "You are a helpful AI assistant. Please reason through the problem inside <think> tags, and then output your final answer inside <answer> tags."},
10 {"role": "user", "content": prompt}
11]
12
13inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
14
15outputs = model.generate(
16 inputs,
17 max_new_tokens=1024,
18 temperature=0.6,
19 top_p=0.9,
20 repetition_penalty=1.15 # Required to prevent degenerate loops
21)
22print(tokenizer.decode(outputs, skip_special_tokens=True))