Qwen3-8B-Base -- OpenThoughts3 math SFT, step 500
Intermediate checkpoint (step 500 of a planned 2000) from supervised fine-tuning of
Qwen/Qwen3-8B-Base on knowledge-distillation/openthoughts3_math. Not yet evaluated.
Training
| base | Qwen/Qwen3-8B-Base |
| data | knowledge-distillation/openthoughts3_math, 103,760 two-turn conversations |
| sequence length | 32768 (truncates nothing: token lengths are mean 13.8k, p99 16.8k, max 16.8k) |
| global batch | 255 |
| optimizer | AdamW, lr 5e-6, cosine schedule, 3% warmup, weight decay 0.01, grad clip 1.0 |
| steps | 500 of 2000 (~1.23 epochs) |
| precision | bf16, FSDP over 3 GPUs |
| framework | verl |
Thinking mode and the chat template
Every assistant message in the training data is a <think>...</think> reasoning trace ending in
\boxed{}, and the model is trained to reproduce that format.
It is trained under a plain ChatML template with no thinking logic -- the Qwen3-8B-Base
vocabulary with the Instruct-2507 template. Qwen3's own thinking template strips
<think>...</think> from every assistant turn but the last, which would have removed the reasoning
from the training targets; the plain template passes assistant content through verbatim, so the
<think> block is learned as ordinary text. No enable_thinking flag is needed or accepted.
A turn ends with <|im_end|> (151645), and both config.json and generation_config.json say so.
Note that Qwen3-8B-Base's stock generation_config.json lists eos 151643 (<|endoftext|>)
instead; a checkpoint shipped with that value never terminates under vLLM.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
name = "seomh/Qwen3-8B-Base-OpenThoughts3Math-SFT-step500-lr5e-6"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForCausalLM.from_pretrained(name, torch_dtype="bfloat16", device_map="auto")
msgs = [{"role": "user", "content": "Find the sum of all positive divisors of 360."}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=16384, temperature=0.6, top_p=0.95)
print(tok.decode(out[0][ids.shape[-1]:], skip_special_tokens=True))
Give it room: responses are reasoning traces, so max_new_tokens around 16384 is appropriate.