Downloads · 30 days
7
14% of all-time downloads
RockToken/qwen3_30b_a3b_to_4b_onpolicy_science_5k
qwen3_30b_a3b_to_4b_onpolicy_science_5k is a text generation model from RockToken. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
On-policy KD for a Qwen3-4B student toward the Qwen3-30B-A3B teacher, on 5,000 science prompts from OpenThoughts-3.
Downloads · 30 days
7
14% of all-time downloads
All-time downloads
50
Public
Parameters
4B
17.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors17.6 GB · 100%
From the Hugging Face model README
On-policy KD for a Qwen3-4B student toward the Qwen3-30B-A3B teacher, on 5,000 science prompts from OpenThoughts-3.
Domain-transfer companion to the math-domain checkpoints in this organisation: same student starting point and recipe as the onpolicy_5k_src* chain, but the on-policy prompts come from the science slice instead of math. Training exposure of this checkpoint:
qwen3_30b_a3b_to_4b_offpolicy_20k| Role | Model |
|---|---|
| Student | RockToken/qwen3_30b_a3b_to_4b_offpolicy_20k |
| Teacher | Qwen/Qwen3-30B-A3B-Instruct-2507 (MoE) |
enable_thinking=False throughout.
open-thoughts/OpenThoughts3-1.2M, domain == "science" sliceprompt_max_len=1280 were filtered, leaving 4,931Framework: KDFlow — FSDP2 + SGLang rollout, Ray-orchestrated GPU co-location with sleep/wakeup. Same pipeline revision as the math-domain onpolicy_5k_src* runs.
Hardware: 1× node, 4× H100 (94 GB), 24 h 02 min wall-clock (~96 GPU-hours).
| Group | Value |
|---|---|
| Backend | fsdp2, bf16, gradient ckpt on |
| Epochs | 1 (2,465 rollout iterations) |
| Train batch | 4 (micro 1) |
| Learning rate | 2e-6, cosine, warmup 5% |
| KD ratio | 1.0 |
| KD loss | reverse KL (rkl) |
| KD algorithm | vanilla_kd |
| Rollout engine | SGLang, TP=2, 1 engine |
| Rollout batch | 2 prompts × 4 samples/prompt |
generate_max_len | 8000 |
prompt_max_len | 1280 (total max_len 9536) |
| Sampling | temperature 1.0, top-p 1.0 |
| Teacher | TP=4, sleep/wakeup enabled |
prompt_max_len is 1280 instead of the math runs' 800: science prompts run longer (p99 ≈ 1,182 tokens).
Note on the LR schedule: as in the earlier runs of this series, the scheduler's horizon is sized to 4× the actual number of updates, so the cosine decay is only partially traversed — the LR moves from 2.00e-6 to 1.79e-6 over the run rather than reaching zero. Kept as is for comparability within the series.
Means over 500-step blocks (per-step values are noisy at batch 4):
| steps | loss (reverse KL) | mean gen length |
|---|---|---|
| 1–500 | 0.273 | 3,250 |
| 501–1000 | 0.256 | 3,417 |
| 1001–1500 | 0.253 | 3,456 |
| 1501–2000 | 0.248 | 3,390 |
| 2001–2465 | 0.242 | 3,321 |
The loss starts near 0.27 rather than the ~3 seen when distilling from a raw instruct model — the student has already been through off-policy KD against the same teacher, so on-policy training starts close and grinds out the remaining distribution gap.
Generation lengths: p50 = 3,267, p95 = 6,456, max = 8,000 against the 8,000 cap. A small tail of responses hits the cap; the bulk is untruncated.
Research on distillation dynamics, in particular whether on-policy KD gains transfer across domains (math-trained off-policy base → science on-policy round). Domain: science (OpenThoughts-3 science split).
enable_thinking=False — this student does not emit thinking traces.