/ Модель

Характеристики

Контекст
32 768 токенов
Параметры
7,1 млрд
Лицензия
Apache 2.0
Архитектура
mistral · dense
Базовая модель
nano-mistral-o1-sft
Библиотека
transformers
Опубликована
20 окт 2026

nano-mistral-o1-grpo-stageb-step48

Генерация текстаТекст → текст3 профессии
359скачиваний за 30 дней0лайковвеса обновлены4 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Промежуточный чекпойнт Mistral-7B, обученный GRPO для исследования пошагового решения математических задач.

nano-mistral-o1-grpo-stageb-step48 — это промежуточный чекпойнт исследовательского проекта nano-mistral-o1, созданный командой viai957. Модель представляет собой плотную MistralForCausalLM на 7,1 млрд параметров: базовая Mistral-7B-v0.3 была дообучена на пошаговых математических решениях, затем веса прошли 48 шагов обучения GRPO с проверкой ответов математическим верификатором. Это незавершённый экспериментальный чекпойнт, а не готовая модель для применения.

Модель предназначена для изучения динамики обучения с подкреплением на проверяемых математических задачах, анализа влияния длины и формата ответа, а также продолжения того же эксперимента. Она генерирует пошаговые решения на английском языке и рассчитана на специальный шаблон запроса из карточки; длина контекста составляет 32 768 токенов. Для этого чекпойнта точность на контрольной выборке из 100 задач GSM8K составила 17%; полная оценка GSM8K не проводилась.

Чекпойнт не предназначен для обучения, производственного использования или задач, требующих правильных математических ответов. Ответы могут быть уверенно неверными, а верификатор создаёт шум в обучающих сигналах; модель также может достигать ограничения в 768 токенов. Обучение безопасности и отказам не проводилось. Репозиторий распространяется по лицензии Apache-2.0.

Сценарии применения

  • изучение влияния GRPO на точность математических ответов
  • анализ того, как обучение с подкреплением меняет длину и формат решений
  • продолжение эксперимента nano-mistral-o1 с чекпойнта шага 48
  • сравнение поведения RL-чекпойнта с его SFT-базой
  • исследование ошибок в пошаговых решениях задач GSM8K

Ограничения

Промежуточный чекпойнт незавершённого обучения; на контрольной выборке из 100 задач GSM8K точность составила около 17%, а полная оценка GSM8K не проводилась. Модель обучалась только на одном английском шаблоне запроса, может выдавать неверные ответы и не проходила настройку безопасности.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

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

FieldValue
What it isMistral-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.
MethodDr.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
Rewardverifier accuracy (0/1) + 0.1 × format score + soft-overlong penalty in [-1, 0]
RL dataBig-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 checkpoint48 steps × 32 prompts × 16 samples = 24,576 rollouts (1,536 prompts)
Compute4 × 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 resultGSM8K-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 measuredGSM8K-full (n = 1,319, the pre-registered primary contrast), MATH-500, pass@8 / maj@8, per-band accuracy
Weightsbf16 model.safetensors (14.5 GB). fp16 is not supported.
LicenceApache-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

SourceLicenceRevisionRoleSize used
SynthLabsAI/Big-Math-RL-VerifiedApache-2.0c75d2f1stage-B RL prompts + gold answers251,122 rows materialised → 102,275 kept (solve-rate keep band [0.3, 0.95)) → band 0: 50,898
tasksource/PRM800KMIT547b195SFT substrate data (ancestor only)12,397 rows (11,739 train / 658 held)
openai/gsm8k testMIT740312acanary evaluation only, never trained onfirst 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

GroupSettingValue
Rolloutprompts / step × G32 × 16 = 512 completions
max response length / temperature768 tokens / 1.0
soft-overlong buffer128 tokens
enginevLLM 0.26.0, bf16, TP 1, gpu_memory_utilization 0.85, FLASH_ATTN (FA2)
Objectiveloss / advantageDAPO clip-higher / centred (Dr.GRPO)
clip (ε_low, ε_high)(0.2, 0.272)
KL β / reference model0.0 / not loaded
ρ correctionon, clamp upper 2.0, no masking
loss denominator393,216 (constant)
dead-group filteron (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)
Optimiseroptimiseradamw8bit (bitsandbytes)
lr / schedule1e-6, 3% linear warmup (15 steps), cosine over 500 steps (schedule not re-baked after the cut to 108)
grad clipmax norm 1.0
grad accumulation / micro-batch85 micros per rank per step, 3 ranks
ParallelismtrainerFSDP2, 32 per-block units + root, bf16 params, fp32 reduce, activation checkpointing on 32 blocks, SDPA attention
Checkpointingsave / weight-sync cadenceevery 1,020 micros = 12 optimizer steps; keep 2
Seed41
Canarycadence / setevery 25 steps / GSM8K-test[:100], greedy, 768-token cap
Tripwiresgrad-norm HALTabsolute 500 or 10× trailing median
collapseentropy < 0.2× baseline or length < 0.4× baseline (latched)
canary HALTpass@1 < 0.10 at two consecutive canaries

Compute and time

ItemValueSource
Hardware4 × A10G 23 GB (SM86); GPUs 0–2 train, GPU 3 serves rolloutslaunch log
Softwaretorch 2.11.0+cu128, vLLM 0.26.0 (isolated venv)launch log, worker log
Launch2026-09-06 06:14 IST from the SFT substrateruns/grpo_stageb.log
Pace42.0 min / optimizer step (measured over 47.7 steps)docs/RESULTS.md 2026-09-07 entry
Rollout generationmedian 102.8 s per 512 completions (min 78.7 s, max 170.7 s, 58 rollouts)worker.log
Pre-launch pilot1,398.7 output tok/s on one A10G at the stage-B shapeoutputs/eval/rollout_pilot.json
To this checkpointabout 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-hlog timestamps
Whole paused run0–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).

reward terms 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.

response length 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.

entropy 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.

grad norm 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).

learning rate 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.

loss 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.

stability 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 stepWeightspass@1 (n=100)Wilson 95% CIanswer extractedmean completion tokenshit 768 cap
0SFT substrate micro_000022500.22[0.150, 0.311]0.93284.80.07
25micro_00002040 (step 24)0.16[0.101, 0.244]0.92246.30.08
50micro_00004080 (step 48, this repo)0.17[0.109, 0.256]0.93233.60.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.

canary 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

BenchmarkProtocolThis checkpoint
GSM8K-full, n = 1,319 (primary contrast vs SFT, exact McNemar, α = 0.05)greedy, 768 tokensnot measured. The contrast is defined on the final GRPO checkpoint, and the run is paused
MATH-500 transfergreedynot measured
pass@8 vs maj@8 (reranking vs capability)samplednot measured
per-band accuracy—not measured (only band 0 was used)

Project lineage on GSM8K-full (n = 1,319, Wilson 95%)

CheckpointGSM8K pass@195% CIformat compliancetruncationreceipt
Mistral-7B-v0.3 base (same protocol)0.05——0.715docs/audits/phase1_postmortem.md
SFT micro_00002250 (substrate of this model)0.2047[0.1838, 0.2273]0.93560.0644outputs/eval/sft-final.json
DPO arm B, sigmoid (post-hoc diagnostic)0.2108[0.1896, 0.2336]0.90750.0933outputs/eval/arm-b-primary-posthoc.json
DPO arm B, recorded result (dpop + NLL rerun)0.0091[0.0052, 0.0158]0.44660.5413outputs/eval/arm-b-final.json
GRPO stage-B step 48 (this)not measured————

lineage 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:

  1. The PPO clip was inactive by construction. grpo/ratio = 1.0 and grpo/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).
  2. 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.
  3. Remainder-row dropping halves the trained batch on most steps. The rows that survive are sliced into 3 ranks × 85 micros as B // 255 rows 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 the n_tokens = 2 × lengths/response_mean signature, 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.
  4. 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.
  5. 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.

CommitMeaning
fa11f9843baa2751531ff86b9a295b31ef8d434cstage-B pre-registration frozen; launch config of record
512e0eb50770ec6b70be082402c9d69276b16500last change to configs/grpo_stageb.yaml (2-row micros, grad_accum 85)
4a973571a19ad978f8817754a48c0c14f71c741faccumulation double-normalisation fix
5ad845f4fb69c3cddc0c6634c242462a6da3976dcode state of the 2026-09-06 launch that produced this checkpoint
edbd2f1c375748d350fcc5e75413c19efe338cc8stage-B prompt sets built (Big-Math 102,275 kept, zero eval overlap)
open-instruct 8759c91upstream 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.

FileContent
model.safetensorsbf16 weights, sha256 9f5bdd3d…aab94
resume.ptoptimizer + data-stream state, sha256 5a5b38fe…2b9f
config.json, tokenizer.*, special_tokens_map.jsonMistral-7B-v0.3 config and tokenizer
receipts/history.jsonlper-(rank, micro) training log, steps 0–57
receipts/canary.jsonlcanary readings at steps 0, 25, 50
receipts/worker.logvLLM rollout worker log
figures/*.pngthe figures on this card

10. Related repos, licence, citation

nano-mistral-o1 family:

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}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
MistralForCausalLM
Ревизия весов
6c42aa8

0 моделей