nano-mistral-o1-grpo-stageb-step48
This is an intermediate checkpoint of a paused RL run. It is the stage-B GRPO policy of the
nano-mistral-o1 project at optimizer step 48. The run was pre-registered for 500 steps, the
horizon was later cut to 108 by a dated entry, and the run was paused at step 57. The last
checkpoint written before the pause is the one in this repo. The repo also contains resume.pt
(optimizer and data-stream state), so the same experiment can continue from here.
Short version: in-distribution reward went up over 48 steps, mostly because responses got shorter and fewer were penalised for length. Held-out GSM8K accuracy on the 100-problem canary went from 0.22 (SFT weights) to 0.17 (these weights). The difference is not significant (paired exact McNemar p = 0.27). The pre-registered GSM8K-full evaluation of this checkpoint has not been run.
1. TL;DR product sheet
| Field | Value |
|---|---|
| What it is | Mistral-7B-v0.3 full-parameter policy after 48 GRPO optimizer steps with a rule-verifier math reward. Intermediate checkpoint, not a final model. |
| Base (weight ancestor) | micro_00002250, the nano-mistral-o1 SFT checkpoint (viai957/nano-mistral-o1-sft). Its own base is mistralai/Mistral-7B-v0.3. |
| Method | Dr.GRPO centred advantages, DAPO clip-higher objective (ε_low 0.2, ε_high 0.272), constant loss denominator 393,216, KL β = 0 with no reference model, vLLM→trainer importance correction ρ (clamped at 2.0), dead-group dropping, DAPO soft-overlong penalty |
| Reward | verifier accuracy (0/1) + 0.1 × format score + soft-overlong penalty in [-1, 0] |
| RL data | Big-Math-RL-Verified band 0 (50,898 prompts, Llama-8B solve rate in [0.7, 0.95)), zero GSM8K-test / MATH-500 overlap |
| Data consumed to this checkpoint | 48 steps × 32 prompts × 16 samples = 24,576 rollouts (1,536 prompts) |
| Compute | 4 × NVIDIA A10G 23 GB (SM86): 3 FSDP2 training ranks plus 1 vLLM 0.26.0 rollout GPU. About 42 min per optimizer step. About 35 h wall-clock from launch to the canary that ran on these weights. |
| Headline result | GSM8K-test[:100] greedy pass@1 = 0.17 [0.109, 0.256] vs 0.22 [0.150, 0.311] at step 0 (same instrument). Paired: 9 lost, 4 gained, exact McNemar p = 0.267, not significant. |
| Training-batch signal (steps 0–9 → 38–47) | verifier accuracy on trained rows 0.045 → 0.090; total reward −0.114 → +0.113; mean response length 445 → 320 tokens; share of length-penalised micros 0.29 → 0.09 |
| Not measured | GSM8K-full (n = 1,319, the pre-registered primary contrast), MATH-500, pass@8 / maj@8, per-band accuracy |
| Weights | bf16 model.safetensors (14.5 GB). fp16 is not supported. |
| Licence | Apache-2.0 (inherits from Mistral-7B-v0.3) |
2. Model details and mechanism
- Architecture: unchanged
MistralForCausalLM(Mistral-7B-v0.3: 32 layers, GQA 32/8 heads, 32,768-token vocabulary). All parameters were trained; no adapters. - Lineage:
Mistral-7B-v0.3→ SFT on 11,739 PRM800K-derived step-formatted solutions (1 epoch, lr 1e-5) → stage-B GRPO (this repo). The DPO arms of phase 1 are not ancestors of these weights. The pre-registration excludes them as substrates. - Prompt format (needed at inference; it is the only format the model was trained on):
[INST] Solve the following math problem. Reason one step at a time, writing each step as its own paragraph separated by a blank line. When you reach the result, write "# Answer" followed by a blank line and the answer alone.
{problem} [/INST]
The answer is the text after the last # Answer marker, with </s> stripped.
Training system (one optimizer step)
flowchart LR
D[("Big-Math band 0<br/>50,898 prompts")] -->|32 prompts / step| R
subgraph GPU3["GPU 3: vLLM 0.26.0 engine"]
R["sample G=16 per prompt<br/>T=1.0, max 768 tok<br/>returns tokens + logprobs"]
end
R -->|512 completions| V["rule verifier<br/>(math_verify, hardened)<br/>+ format instrument<br/>+ soft-overlong"]
V --> A["group reward r_i<br/>Dr.GRPO advantage r_i - mean(r)<br/>drop groups with std(r)=0"]
A -->|"surviving rows sliced<br/>3 ranks x 85 micros"| T
subgraph GPU02["GPUs 0-2: FSDP2 trainer (bf16 params, fp32 reduce)"]
T["recompute old logprobs (no-grad)<br/>rho = pi_train_old / pi_vLLM_old<br/>DAPO clipped PG loss / 393,216<br/>adamw8bit, clip-norm 1.0"]
end
T -->|"checkpoint every 12 steps<br/>(= weight sync)"| R
T -.->|"every 25 steps"| C["canary: GSM8K-test[:100]<br/>greedy via engine"]
The engine reloads weights only when a new checkpoint exists, so rollouts for steps 12k … 12k+11 come from the checkpoint written at step 12k, so rollouts can be up to 11 steps stale. The trainer recomputes the "old" logprobs with its current weights, so the PPO ratio is exactly 1 (see §7). ρ = π_trainer/π_vLLM therefore absorbs both the kernel mismatch and the engine staleness.
3. Training data
| Source | Licence | Revision | Role | Size used |
|---|---|---|---|---|
| SynthLabsAI/Big-Math-RL-Verified | Apache-2.0 | c75d2f1 | stage-B RL prompts + gold answers | 251,122 rows materialised → 102,275 kept (solve-rate keep band [0.3, 0.95)) → band 0: 50,898 |
| tasksource/PRM800K | MIT | 547b195 | SFT substrate data (ancestor only) | 12,397 rows (11,739 train / 658 held) |
| openai/gsm8k test | MIT | 740312a | canary evaluation only, never trained on | first 100 of 1,319 |
Banding. Difficulty is defined as 1 − llama8b_solve_rate, which is the pass rate of a different
model and so only a proxy. The band edges in difficulty are 0.3 and 0.5, which makes band 0 the
solve-rate interval [0.7, 0.95). Measured percentiles of the solve rate over the 251,118 parseable
rows: p25 0.078, p50 0.422, p75 0.859. The pre-registered rule advances to band 1 when the
all-solved group fraction exceeds 0.5 over 20 trailing steps. The rule never fired, so all
48 steps used band 0.
Decontamination. Exact overlap against GSM8K-test and MATH-500 was checked, not assumed. 0 rows
were excluded because 0 overlaps were found (data/stageb/manifest.json).
Example band-0 row:
{"problem": "Determine the interval of decrease for the function $y=(x^2 - 3)e^x$.", "answer": "(-3, 1)", "difficulty": 0.28125, "band": 0, "source": "cn_k12"}
Reward-path ceiling. Before launch, a perfect policy (gold answers fed through the full extractor-and-verifier path) scored 1.0000 on GSM8K, MATH-500 and DeepMath (launch banner). This gate exists because a predecessor project once scored a perfect policy at 0/100.
4. Training procedure
Objective
For prompt $q$, the engine samples $G=16$ completions $o_1,\dots,o_G \sim \pi_{\text{vLLM}}(\cdot\mid q)$. Each completion gets
$$ r_i = \underbrace{\mathbb{1}[\text{verify}(o_i)=\text{gold}]}{\text{accuracy}} + 0.1\cdot\underbrace{\big(0.5,\text{answered}i + 0.5,\text{stepped}i\big)}{\text{format}} + R{\text{len}}(|o_i|), \qquad R{\text{len}}(\ell)=\begin{cases}0 & \ell \le 640\ \frac{640-\ell}{128} & 640<\ell\le 768\ -1 & \ell>768\end{cases} $$
The advantage is the Dr.GRPO centred group advantage, with no division by the standard deviation. Groups whose rewards have zero variance are dropped whole:
$$ \hat A_i = r_i - \frac{1}{G}\sum_{j=1}^{G} r_j . $$
With token ratio $\rho^{\pi}{i,t}=\pi\theta(o_{i,t}\mid q,o_{i,<t})/\pi_{\theta_{\text{old}}}(o_{i,t}\mid\cdot)$ and train/inference correction $w_{i,t}=\min!\big(\pi_{\theta_{\text{old}}}/\pi_{\text{vLLM}},,2\big)$, the loss minimised is the DAPO clip-higher objective. It is divided by a constant denominator (Dr.GRPO), not by the token count:
$$ \mathcal{L}(\theta)=\frac{1}{D}\sum_{i}\sum_{t=1}^{|o_i|} w_{i,t},\max!\Big(-\hat A_i,\rho^{\pi}{i,t},;-\hat A_i,\mathrm{clip}\big(\rho^{\pi}{i,t},,1-0.2,,1+0.272\big)\Big), \qquad D = 32\times16\times768 = 393{,}216 . $$
There is no KL term ($\beta=0$, and the reference forward pass is skipped). The loss is vendored from
allenai/open-instruct@8759c91 (compute_grpo_loss, compute_rho_correction). The reward
composition, including the soft-overlong term, is new code in nmo/rl/rewards.py. A launch gate
(assert_a3_conformant) refuses to start if any of the locked objective fields differ.
Hyperparameters
| Group | Setting | Value |
|---|---|---|
| Rollout | prompts / step × G | 32 × 16 = 512 completions |
| max response length / temperature | 768 tokens / 1.0 | |
| soft-overlong buffer | 128 tokens | |
| engine | vLLM 0.26.0, bf16, TP 1, gpu_memory_utilization 0.85, FLASH_ATTN (FA2) | |
| Objective | loss / advantage | DAPO clip-higher / centred (Dr.GRPO) |
| clip (ε_low, ε_high) | (0.2, 0.272) | |
| KL β / reference model | 0.0 / not loaded | |
| ρ correction | on, clamp upper 2.0, no masking | |
| loss denominator | 393,216 (constant) | |
| dead-group filter | on (groups with zero std of total reward dropped; up to 5 rollout attempts, i.e. 4 resamples, if every group is dead, then the step raises; worker.log shows 58 rollouts for 58 steps, so no resample happened) | |
| Optimiser | optimiser | adamw8bit (bitsandbytes) |
| lr / schedule | 1e-6, 3% linear warmup (15 steps), cosine over 500 steps (schedule not re-baked after the cut to 108) | |
| grad clip | max norm 1.0 | |
| grad accumulation / micro-batch | 85 micros per rank per step, 3 ranks | |
| Parallelism | trainer | FSDP2, 32 per-block units + root, bf16 params, fp32 reduce, activation checkpointing on 32 blocks, SDPA attention |
| Checkpointing | save / weight-sync cadence | every 1,020 micros = 12 optimizer steps; keep 2 |
| Seed | 41 | |
| Canary | cadence / set | every 25 steps / GSM8K-test[:100], greedy, 768-token cap |
| Tripwires | grad-norm HALT | absolute 500 or 10× trailing median |
| collapse | entropy < 0.2× baseline or length < 0.4× baseline (latched) | |
| canary HALT | pass@1 < 0.10 at two consecutive canaries |
Compute and time
| Item | Value | Source |
|---|---|---|
| Hardware | 4 × A10G 23 GB (SM86); GPUs 0–2 train, GPU 3 serves rollouts | launch log |
| Software | torch 2.11.0+cu128, vLLM 0.26.0 (isolated venv) | launch log, worker log |
| Launch | 2026-09-06 06:14 IST from the SFT substrate | runs/grpo_stageb.log |
| Pace | 42.0 min / optimizer step (measured over 47.7 steps) | docs/RESULTS.md 2026-09-07 entry |
| Rollout generation | median 102.8 s per 512 completions (min 78.7 s, max 170.7 s, 58 rollouts) | worker.log |
| Pre-launch pilot | 1,398.7 output tok/s on one A10G at the stage-B shape | outputs/eval/rollout_pilot.json |
| To this checkpoint | about 35 h wall-clock (launch to the step-50 canary at 2026-09-07 17:15 IST, the first use of these weights), about 140 GPU-h | log timestamps |
| Whole paused run | 0–57 steps, about 40.2 h (paused 2026-09-07 22:27 IST) | docs/RESULTS.md |
5. Training curves
All curves come from receipts/history.jsonl in this repo, which is byte-identical (sha256 prefix
a3c8018a96cc712a) to the run's local runs/grpo_stageb/history.jsonl. That file has 14,670
rows: one row per (rank, micro-batch), 255 rows per complete optimizer step, covering steps 0–57.
Each point is the mean over the rows tagged with that optimizer_step. The dashed line marks the
step-48 checkpoint. Grey shading marks steps 48–57, which were trained after these weights and
are not part of this checkpoint. Metrics are computed over trained rows only: dead groups and
remainder rows are excluded (§7).
Figure 1. Reward terms per step (reward/accuracy, reward/format, reward/overlong, reward/total). Most of the rise in total reward is the overlong penalty moving towards 0. Accuracy on trained rows roughly doubles from a very low starting level. Source: receipts/history.jsonl.
Figure 2. Mean response length (lengths/response_mean) and the fraction of micro-batches with a negative overlong term. Steps 0 and 11 had 2-row micro-batches (§7), which inflates the per-micro penalised fraction at those steps. Source: receipts/history.jsonl.
Figure 3. Mean token entropy on trained rows (entropy). It drifts down slowly, and the collapse tripwire (0.2× baseline) is far away. Source: receipts/history.jsonl.
Figure 4. Gradient norm, logged once per rank per optimizer step (171 non-NaN rows). Median 0.0345 and max 0.0676 over steps 1–47. Both are far below the clip threshold of 1.0, so clipping never engaged. Source: receipts/history.jsonl (grad_norm).
Figure 5. Learning rate as logged (lr): 6.67e-8 at step 0, peak 1e-6 after the 15-step warmup, 9.89e-7 at step 47. The cosine is laid out over 500 steps, so the decay is negligible in this window. Source: receipts/history.jsonl.
Figure 6. grpo/pg_loss and the reduced loss. With centred advantages and ratio ≡ 1, the PG loss is a zero-mean advantage-weighted token count, not a quantity that should decrease. It is plotted only for completeness. Source: receipts/history.jsonl.
Figure 7. Stability diagnostics. grpo/kl = 0 (β = 0). grpo/clipfrac = 0 and grpo/ratio = 1.0 at every step. Per-step mean val/rho_weight lies in [0.99996, 1.00062] (individual per-rank, per-micro rows range 0.9948–1.0106). Per-step mean ρ clip fraction is ≤ 2.7e-5 (per-micro max 0.0051). Source: receipts/history.jsonl.
6. Evaluation
In-training canary (the only evaluation of these weights)
The canary is 100 fixed GSM8K-test problems, decoded greedily through the rollout engine with
the 768-token cap and scored by the production verifier. It runs every 25 steps on whichever
checkpoint the engine has loaded. The step-50 canary ran on micro_00004080, which is exactly
these weights (weights_dir field of spool/results/canary-50-*.json).
| Canary step | Weights | pass@1 (n=100) | Wilson 95% CI | answer extracted | mean completion tokens | hit 768 cap |
|---|---|---|---|---|---|---|
| 0 | SFT substrate micro_00002250 | 0.22 | [0.150, 0.311] | 0.93 | 284.8 | 0.07 |
| 25 | micro_00002040 (step 24) | 0.16 | [0.101, 0.244] | 0.92 | 246.3 | 0.08 |
| 50 | micro_00004080 (step 48, this repo) | 0.17 | [0.109, 0.256] | 0.93 | 233.6 | 0.07 |
Paired comparison, step 0 vs step 50, same 100 problems. This was computed post hoc for this card and is descriptive, not pre-registered: 9 problems lost, 4 gained, exact binomial McNemar p = 0.267.
Figure 8. Canary pass@1 with Wilson 95% intervals, the HALT tripwire, and the SFT substrate's GSM8K-full interval. Source: receipts/canary.jsonl. Per-problem correctness was re-scored from runs/grpo_stageb/spool/results/canary-{0,25,50}-3778532.json with the project verifier and reproduces the logged 0.22 / 0.16 / 0.17 exactly.
Instrument check. On the same 100 problem IDs, the SFT checkpoint's offline GSM8K-full
evaluation (HF generation, outputs/eval/sft-final.json) scores 0.23 and agrees with the vLLM
step-0 canary on 99 of 100 problems. The canary therefore measures the same thing as the
offline harness.
Pre-registered benchmarks: status
| Benchmark | Protocol | This checkpoint |
|---|---|---|
| GSM8K-full, n = 1,319 (primary contrast vs SFT, exact McNemar, α = 0.05) | greedy, 768 tokens | not measured. The contrast is defined on the final GRPO checkpoint, and the run is paused |
| MATH-500 transfer | greedy | not measured |
| pass@8 vs maj@8 (reranking vs capability) | sampled | not measured |
| per-band accuracy | — | not measured (only band 0 was used) |
Project lineage on GSM8K-full (n = 1,319, Wilson 95%)
| Checkpoint | GSM8K pass@1 | 95% CI | format compliance | truncation | receipt |
|---|---|---|---|---|---|
| Mistral-7B-v0.3 base (same protocol) | 0.05 | — | — | 0.715 | docs/audits/phase1_postmortem.md |
SFT micro_00002250 (substrate of this model) | 0.2047 | [0.1838, 0.2273] | 0.9356 | 0.0644 | outputs/eval/sft-final.json |
| DPO arm B, sigmoid (post-hoc diagnostic) | 0.2108 | [0.1896, 0.2336] | 0.9075 | 0.0933 | outputs/eval/arm-b-primary-posthoc.json |
| DPO arm B, recorded result (dpop + NLL rerun) | 0.0091 | [0.0052, 0.0158] | 0.4466 | 0.5413 | outputs/eval/arm-b-final.json |
| GRPO stage-B step 48 (this) | not measured | — | — | — | — |
Figure 9. Hill-climb view of the project on the pre-registered benchmark. Stage-B has no GSM8K-full point yet. The n = 100 canary is shown only as a note because it cannot be compared with n = 1,319 bars. Sources: the receipts in the table above.
7. Results discussion and lessons
What moved. Over steps 0–9 vs 38–47 on trained rows: mean response length 445 → 320 tokens; share of micro-batches hit by the overlong penalty 0.29 → 0.09; overlong term −0.248 → −0.074; format term 0.089 → 0.097; verifier accuracy 0.045 → 0.090; entropy 0.557 → 0.503. Most of the gain in total reward (−0.114 → +0.113) comes from the policy learning to finish within the 640-token soft budget.
What did not move (yet). Held-out GSM8K canary accuracy fell 0.22 → 0.16 → 0.17. Within n = 100 this is consistent with no change (p = 0.267). The pre-registered prediction for the final checkpoint was +0 to +5 pp on GSM8K-full, and a null result was stated in advance as a live possibility. Step 48 neither supports nor rejects that prediction.
Band 0 was not "easy" for this policy. Band 0 was chosen as solve rate 0.70–0.95 for Llama-8B. On trained rows, verifier accuracy at the start was about 4.5%. Groups whose total reward (accuracy + format + overlong) has zero variance are dropped before training. That removes some all-wrong and some all-right groups, so trained-row accuracy is a biased estimate of the policy's band-0 solve rate, and the direction of the bias was not measured. Even so, the static proxy difficulty clearly does not transfer across models. The band-advance rule (all-solved fraction
0.5 over 20 trailing steps) did not fire. With 4.5–9% trained-row accuracy, all-solved groups should be rare, but the all-solved fraction itself was not logged.
Observations from the logs about the run's mechanics:
- The PPO clip was inactive by construction.
grpo/ratio= 1.0 andgrpo/clipfrac= 0 at every step. Each rollout batch gets exactly one gradient pass, and the trainer recomputes the old logprobs with the same weights. The DAPO clip-higher setting (ε_high 0.272) was therefore never exercised. The off-policy gap that does exist is engine staleness of up to 11 steps (weight sync = checkpoint cadence). Only the ρ weight sees it (item 4). - Gradient clipping never engaged. grad_norm stayed between 0.019 and 0.068 against a limit
of 1.0. The run before the fix (2026-08-25) had shown median 0.000 and max 0.001: an 85×
suppression from double normalisation of gradient accumulation. That bug was caught at step 16,
fixed in commit
4a97357, and pinned with an accumulation-invariance test. - Remainder-row dropping halves the trained batch on most steps. The rows that survive are
sliced into 3 ranks × 85 micros as
B // 255rows per micro. When every group is alive, B ≥ 510 and each micro holds 2 rows. If even one group is dead, each micro holds 1 row, so only 255 completions are trained and the rest are counted as dropped remainder. From then_tokens = 2 × lengths/response_meansignature, only 2 of 58 logged steps (0 and 11) had 2-row micros. Because the loss denominator stays fixed at 393,216, the effective step size on the other 56 steps is roughly halved. This is a design interaction worth fixing before any new run, for example with a variable micro count or by keeping all survivors. Changing it would be a new dated pre-registration entry, not a change to this experiment. - The importance correction is close to inert. Per-step mean ρ weights stayed within 6.2e-4 of 1, and individual per-micro means stayed within about 1.1e-2. At lr ≤ 1e-6, neither the kernel mismatch (vLLM FA2 vs trainer SDPA) nor an 11-step weight staleness moves token probabilities by much.
- Pace was the binding constraint. At 42 min/step, 500 steps would have taken about 14.8 days. The horizon was cut to 108 steps (save-aligned) by a dated entry. Generation accounts for about 1.7 min of each step and the 85 training micros for the rest.
Earlier project-level lessons that shaped this run. These are recorded in docs/RESULTS.md. In
phase 1, a tripwire with no power to discriminate (it fires on shuffled data as often as on real
data) triggered an objective swap. A completion-mask bug then made DPO arm B look destructive
(0.0091). A post-hoc audit showed vanilla step-DPO was in fact null (0.2108 vs 0.2047, p = 0.63).
Stage-B therefore runs with gradient clipping, a grad-norm halt, a live task-accuracy canary,
checkpoint pinning on the first alarm, and a reward-path ceiling test. All of these were active
for this checkpoint.
8. Intended use, limitations, risks
Intended use: research on early-phase RLVR dynamics (length/format shaping vs accuracy), resuming the frozen stage-B experiment from step 48, and as a contrast point for interpretability work against the SFT substrate.
Not intended for: production use, tutoring, or any setting that needs correct mathematics. Measured held-out accuracy is about 17% on grade-school word problems.
Limitations.
- This is an intermediate checkpoint of an unfinished run, and its only evaluation is 100 problems.
- English only. Trained on one prompt template (above). Other formats are untested.
- Responses can still hit the 768-token cap (7% on the canary).
- No safety tuning or refusal training was done. The base model is a non-instruct Mistral-7B-v0.3.
- The rule verifier mislabels some answers. In the SFT corpus audit, about 45% of "divergent" flags were answers a human would accept. Reward noise of this kind applies here.
Risks: confidently wrong mathematical answers; the usual risks of an untuned 7B LM.
9. Reproducibility
Code. The local nano-mistral-o1 git repository, which is not published.
| Commit | Meaning |
|---|---|
fa11f9843baa2751531ff86b9a295b31ef8d434c | stage-B pre-registration frozen; launch config of record |
512e0eb50770ec6b70be082402c9d69276b16500 | last change to configs/grpo_stageb.yaml (2-row micros, grad_accum 85) |
4a973571a19ad978f8817754a48c0c14f71c741f | accumulation double-normalisation fix |
5ad845f4fb69c3cddc0c6634c242462a6da3976d | code state of the 2026-09-06 launch that produced this checkpoint |
edbd2f1c375748d350fcc5e75413c19efe338cc8 | stage-B prompt sets built (Big-Math 102,275 kept, zero eval overlap) |
open-instruct 8759c91 | upstream source of the vendored GRPO loss and ρ correction |
Launch (3 training ranks; vLLM worker on GPU 3 via NMO_ROLLOUT_GPU, default 3):
CUDA_VISIBLE_DEVICES=0,1,2 torchrun --nproc_per_node=3 scripts/grpo.py configs/grpo_stageb.yaml
Restore and resume (from the upload receipt runs/grpo_stageb/checkpoints/micro_00004080.hf.json):
hf download viai957/nano-mistral-o1-grpo-stageb-step48 --revision 37fed3d1a7c537fb8902cf856485d5b8d3735681 \
--local-dir runs/grpo_stageb/checkpoints/micro_00004080 --exclude 'receipts/*' README.md
Inference:
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "viai957/nano-mistral-o1-grpo-stageb-step48"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="bfloat16", device_map="auto")
prompt = ('[INST] Solve the following math problem. Reason one step at a time, writing each step as its own '
'paragraph separated by a blank line. When you reach the result, write "# Answer" followed by a '
'blank line and the answer alone.\n\nWhat is 12 * 7 + 5? [/INST]')
ids = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**ids, max_new_tokens=768, do_sample=False)
print(tok.decode(out[0][ids["input_ids"].shape[1]:], skip_special_tokens=False))
Files in this repo.
| File | Content |
|---|---|
model.safetensors | bf16 weights, sha256 9f5bdd3d…aab94 |
resume.pt | optimizer + data-stream state, sha256 5a5b38fe…2b9f |
config.json, tokenizer.*, special_tokens_map.json | Mistral-7B-v0.3 config and tokenizer |
receipts/history.jsonl | per-(rank, micro) training log, steps 0–57 |
receipts/canary.jsonl | canary readings at steps 0, 25, 50 |
receipts/worker.log | vLLM rollout worker log |
figures/*.png | the figures on this card |
10. Related repos, licence, citation
nano-mistral-o1 family:
- viai957/nano-mistral-o1-sft: SFT substrate (weight parent of this model)
- viai957/nano-mistral-o1-dpo-arm-a and viai957/nano-mistral-o1-dpo-arm-a-halfepoch-salvage: DPO arm A (argilla math preference pairs)
- viai957/nano-mistral-o1-dpo-arm-b: DPO arm B, sigmoid primary (GSM8K 0.2108)
- viai957/nano-mistral-o1-dpo-arm-b-response: DPO arm B recorded dpop+NLL rerun (GSM8K 0.0091)
- Predecessor project: viai957/mistral-7b-v0.3-prm800k-prm-ppo-math
Licence. Apache-2.0. Weights derive from mistralai/Mistral-7B-v0.3 (Apache-2.0). Training
data: Big-Math-RL-Verified (Apache-2.0), PRM800K (MIT, via the SFT parent). GSM8K (MIT) was used
for evaluation only.
Attribution. GRPO loss and ρ correction vendored from allenai/open-instruct. Objective components follow DAPO (arXiv:2503.14476) and Dr.GRPO (arXiv:2503.20783). Big-Math by SynthLabsAI (arXiv:2502.17387). Hardware is recorded as A10G (SM86) in the September 2026 launch logs. A later host note (2026-10-25) reports L4 GPUs on the same machine, which is not the hardware of this run.
@misc{nano_mistral_o1_grpo_stageb_step48,
title = {nano-mistral-o1 stage-B GRPO, optimizer step 48 (intermediate checkpoint)},
author = {{nano-mistral-o1 contributors}},
year = {2026},
howpublished = {\url{https://huggingface.co/viai957/nano-mistral-o1-grpo-stageb-step48}},
note = {Revision 37fed3d1a7c537fb8902cf856485d5b8d3735681}
}