Downloads · 30 days
9
2% of all-time downloads
NhatCuong22/Qwen3-8B-OpusReasoning
Qwen3-8B-OpusReasoning is a text generation model from NhatCuong22. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
A reasoning-enhanced version of Qwen3-8B, fine-tuned via supervised knowledge distillation from Claude Opus 4.6 reasoning traces.
Downloads · 30 days
9
2% of all-time downloads
All-time downloads
496
Public
Parameters
8.2B
16.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
A reasoning-enhanced version of Qwen3-8B, fine-tuned via supervised knowledge distillation from Claude Opus 4.6 reasoning traces.
The goal is not token-level imitation of Opus output, but transfer of its reasoning structure and problem-solving style into a compact 8B model that can run locally. The model outputs structured chain-of-thought inside <think>...</think> tags before generating the final answer, following the Qwen3 thinking-mode convention.
| Dataset | Samples | Role |
|---|---|---|
| Crownelius/Opus-4.6-Reasoning-3300x | 3,300 | Main distillation — Claude Opus 4.6 reasoning traces |
| Jackrong/Qwen3.5-reasoning-700x | 700 | Auxiliary — supporting reasoning diversity |
| Total | 4,000 |
<think>...</think>)| Parameter | Value |
|---|---|
| Rank (r) | 64 |
| Alpha | 128 |
| Dropout | 0.05 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Parameter | Value |
|---|---|
| Effective batch size | 1 × 16 = 16 |
| Learning rate | 5e-5 |
| LR scheduler | Cosine |
| Epochs | 3 |
| Max sequence length | 16,384 |
| Optimizer | AdamW 8-bit |
| Warmup ratio | 0.03 |
| Weight decay | 0.01 |
| Packing | Enabled |
| Gradient checkpointing | Unsloth |
We distill reasoning structure, not surface tokens. Specifically, the model is encouraged to acquire:
<think> scratch work from the final user-facing answerThis follows the "Claude Opus style" of reasoning — deliberative, self-critical, and structurally transparent.
After fine-tuning, the model tends to produce reasoning traces with this shape:
In practice, the gain is not a dramatic capability jump over the base Qwen3-8B, but rather:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "NhatCuong22/Qwen3-8B-OpusReasoning"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="bfloat16",
device_map="auto",
)
messages = [
{"role": "user", "content": "If a train travels 120km in 2 hours, stops for 30 minutes, then travels 90km in 1.5 hours, what is the average speed for the entire journey?"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
text += "<think>\n" # Activate thinking mode
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=2048,
temperature=0.6,
top_p=0.95,
do_sample=True,
)
response = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=False)
print(response)
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
"NhatCuong22/Qwen3-8B-OpusReasoning",
max_seq_length=16384,
dtype="bfloat16",
)
FastLanguageModel.for_inference(model)
| Parameter | Reasoning tasks | Creative tasks |
|---|---|---|
| temperature | 0.6 | 0.8 |
| top_p | 0.95 | 0.95 |
| max_new_tokens | 2048-4096 | 1024-2048 |
| repetition_penalty | 1.0 | 1.05 |
| Parameter | Value |
|---|---|
| Parameters | ~8B |
| Hidden size | 4,096 |
| Layers | 36 |
| Attention heads | 32 (8 KV heads, GQA) |
| Intermediate size | 12,288 |
| Max position embeddings | 40,960 |
| Vocabulary size | 151,936 |
| Precision | bfloat16 |
Evaluated with lm-evaluation-harness (5-shot, bf16, A100-80GB).
| Benchmark | Metric | Qwen3-8B-OpusReasoning | Base Qwen3-8B | Δ |
|---|---|---|---|---|
| MMLU | accuracy | 75.40% | 72.93% | +2.47 ✅ |
| ARC-Challenge | acc_norm | 65.87% | 56.74% | +9.13 ✅✅ |
| ARC-Challenge | accuracy | 64.42% | — | — |
| HellaSwag | acc_norm | 76.98% | 74.91% | +2.07 ✅ |
| HellaSwag | accuracy | 58.32% | — | — |
| GSM8K | exact_match (strict) | 86.20% | 88.60% | -2.40 |
| GSM8K | exact_match (flexible) | 86.66% | — | — |
<think> traces being occasionally truncated by the default max_gen_toks — the model is still at ~87% on grade-school math.More rigorous reasoning benchmarks (MMLU-Pro, MATH-Hard, AIME, IFEval, MuSR) are being evaluated and will be added here.
@misc{qwen3-8b-opusreasoning,
title = {Qwen3-8B-OpusReasoning},
author = {Vo Nhat Cuong},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/NhatCuong22/Qwen3-8B-OpusReasoning}}
}
Apache 2.0 (inherits from Qwen3-8B upstream).