Qwen3-4B, gpnp thought generator, re-RL best val (step 1376)
This is the second round of prestar RL ("re-RL") for the Qwen3-4B note ("thought") generator. It is the best validation step of the run.
The first round produced the step-960 generator. A new rewarder was then continued-pretrained on notes written by that generator. This model is the step-960 generator trained further with RL against the new rewarder.
The task is the same as in round one. Each RL prompt is a document prefix. The model writes a general-paragraph note about what comes next, with thinking off. The note is scored by a frozen suffix conditional: the per-token log-probability of the true continuation (the next 8-token chunk), given the note and the prefix.
Summary
- Init: JackHsieh/TRIP.round-1.thinker.Qwen3-4B.40M.statML-arxiv (weights only; fresh optimizer).
- Rewarder: JackHsieh/TRIP.round-1-non-terminal.predictor.Qwen3-4B-Base.40M.statML-arxiv.
- This is Qwen3-4B-Base CPT'd on statML-arxiv iid
train[:9472], with notes from the step-960 generator prepended (.kv-tags-thought). - The rewarder sees
<|note|>\nKEY:{key}\nTHOUGHT:The text{completion}\n<|/note|>followed by the document prefix (prestar/kv-tags-thought.jinja).
- This is Qwen3-4B-Base CPT'd on statML-arxiv iid
- RL data: the 256 documents the rewarder never trained on (
JackHsieh/statML-arxiv-iid-160M-20Mtrain[9472:9728]), using every stride-1 thoughtful chunk (k = 8). - Validation: the full iid 20M test stride-32 grid, 1 sample per prompt. The metric is the mean per-token suffix log-probability (
val-core/statml-iid20M-test.stride32/reward/mean@1).- Step-960 init under this rewarder (step 0): −1.21983.
- This checkpoint (step 1376): −1.21897. Before the length penalty it is −1.2189726 (
val-aux/reward/reward-unpenalized-mean, inglobal_step_1376/best.json). - Validation noise: the same weights validated twice scored −1.21927 and −1.21940. Differences of about 1e-4 between checkpoints are therefore within noise.
- Algorithm: the same recipe as round one.
- Sampling: RLOO with 8 samples per prompt, 64 prompts per step, T = 1, top_p = 1, EOS stop, 2560-token cap.
- Reward: the per-token reward minus a linear length penalty on the raw completion, from 0 at 2048 tokens to 0.1 at 2560.
- Loss: CISPO (clip 0.2), 1 PPO epoch, mini-batch 64.
- Optimizer: constant lr, no KL (no KL loss, no KL in the reward).
- Hardware: FSDP on 8 GPUs.
Lineage
| Steps | W&B run | What | lr |
|---|---|---|---|
| 0–1024 | ffumoeb3 | Re-RL arm A from the step-960 init; val every 64 steps | 7e-7 |
| 1024–1455 | bi4gbtqu | Full-state resume of ffumoeb3's step-1024 checkpoint (optimizer, scheduler and dataloader kept), with lr lowered; val every 32 steps. global_step_1376 comes from this run. | 3e-7 |
The resume ran until step 1455, when its compute project shut down. It had not degraded: the last vals were −1.21924 at step 1408 and −1.21918 at step 1440.
Related runs:
eybwj5ra:ffumoeb3's own continuation at lr 7e-7. It declined steadily after 1024, reaching −1.22000 at 1408 and −1.21993 at 1536.4h571my4: a sibling resume ofbi4gbtqu's step-1056 checkpoint at lr 1.5e-7. Its best was −1.21904 at step 1344: JackHsieh/Qwen3-4B.gpnp-rl.re-rl.rerl-resume.ffu1056.lr1.5e-7.best-val.- Re-runs of the same arm-A recipe diverged early.
- The same-seed relaunch (
jclwxai8) and seed 1 (mrf1f7sv) drifted toward abstract, meta-summary notes by steps 64–192. The relaunch's notes also got shorter. - Neither rose above its step-0 val, whereas arm A's notes stayed concrete and got longer.
- Their best-val checkpoints are in
JackHsieh/Qwen3-4B.gpnp-rl.re-rl.init-step960.lr7e-7.{relaunch,seed1,seed2}.best-val. Seed 2 was not analyzed.
- The same-seed relaunch (
Validation trajectory (val-core, higher is better)
| step | lineage | run | lr 7e-7 cont. (eybwj5ra) | lr 1.5e-7 sibling (4h571my4) |
|---|---|---|---|---|
| 0 | −1.21983 | ffumoeb3 | ||
| 64 | −1.21951 | ffumoeb3 | ||
| 128 | −1.21948 | ffumoeb3 | ||
| 192 | −1.21927 | ffumoeb3 | ||
| 256 | −1.21953 | ffumoeb3 | ||
| 320 | −1.21918 | ffumoeb3 | ||
| 384 | −1.21940 | ffumoeb3 | ||
| 448 | −1.21949 | ffumoeb3 | ||
| 512 | −1.21963 | ffumoeb3 | ||
| 576 | −1.21952 | ffumoeb3 | ||
| 640 | −1.21947 | ffumoeb3 | ||
| 704 | −1.21944 | ffumoeb3 | ||
| 768 | −1.21974 | ffumoeb3 | ||
| 832 | −1.21904 | ffumoeb3 | ||
| 896 | −1.21958 | ffumoeb3 | ||
| 960 | −1.21911 | ffumoeb3 | ||
| 1024 | −1.21932 / −1.21937 | ffumoeb3 / bi4gbtqu (re-val) | −1.21937 | |
| 1056 | −1.21927 | bi4gbtqu | −1.21940 (re-val) | |
| 1088 | −1.21936 | bi4gbtqu | −1.21939 | −1.21927 |
| 1120 | −1.21933 | bi4gbtqu | −1.21920 | |
| 1152 | −1.21944 | bi4gbtqu | −1.21948 | −1.21924 |
| 1184 | −1.21935 | bi4gbtqu | −1.21922 | |
| 1216 | −1.21929 | bi4gbtqu | −1.21977 | −1.21920 |
| 1248 | −1.21946 | bi4gbtqu | −1.21916 | |
| 1280 | −1.21914 | bi4gbtqu | −1.21979 | −1.21909 |
| 1312 | −1.21928 | bi4gbtqu | −1.21914 | |
| 1344 | −1.21929 | bi4gbtqu | −1.21966 | −1.21904 |
| 1376 | −1.21897 | bi4gbtqu | −1.21924 | |
| 1408 | −1.21924 | bi4gbtqu | −1.22000 | |
| 1440 | −1.21918 | bi4gbtqu |
The full per-step W&B histories (training and val, every logged metric) for all of these runs are in val_history/, together with the upstream round-one RL runs. val_history/README.md describes them.
Pregenerating notes
The merged weights at the repo root load with AutoModelForCausalLM.from_pretrained("JackHsieh/TRIP.round-2.thinker.Qwen3-4B.40M.statML-arxiv"). They are fp32, exactly as trained. vLLM can serve them in bf16.
The repo-root chat_template.jinja is stock Qwen3. Generate with the template the model was trained on instead: prestar/general-paragraph-nothink-prefill.jinja (identical to the step-960 repo's).
- It turns thinking off.
- It prefills the answer with
The text. - So a completion continues that prefix, and a stored note is
"The text" + completion.
RL sampled at T = 1 and top_p = 1, with at most 2560 new tokens. prestar/kv-tags-thought.jinja is how the rewarder wraps a note.
Files
- Repo root: the merged HF model. It is a lossless fp32 merge of
global_step_1376/actor: the FSDP shards concatenated along dim 0.- Every tensor is bit-identical to the shards.
- Cast to bf16, every tensor also equals the output of
python -m verl.model_merger merge --backend fsdp, which always casts to bf16. lm_head.weightis stored explicitly, but it is identical tomodel.embed_tokens.weight(tie_word_embeddings: true).
global_step_1376/actor/: the original verl FSDP1 actor model shards (world size 8,model_world_size_8_rank_{0..7}.pt) and the HF tokenizer and config.global_step_1376/best.json: the step and metric.val_history/: validation and training histories, described above.prestar/: the generation and rewarder-wrapper templates.
Resuming training
This repo holds no optimizer, scheduler or dataloader state. The full resumable checkpoint existed only in cloud storage that is no longer available. To continue training from here, start a new run initialized from these weights, which resets the optimizer.
Use the prestar fork of verl (recipe jepo_frozen_rewarder) with the hyperparameters above. The lr was 3e-7 at this step.