Scenario

A resumed run that started from step 0 in silence

L2WorkingIncident20 minDebuggingDesign review

RolesInference EngineeringAI Evaluation and Reliability

Engine
Miles main 08752a12 with its own SGLang 0.5.22 build
Model
Qwen/Qwen3-0.6B
Hardware
one GB10 with 128 GB of unified memory

Situation

A long GRPO run saves a checkpoint every 20 steps into a host folder that is mounted into the container. One night the run dies. The on-call engineer starts the same command again at once. To be safe, she points --load at the newest iter_ folder inside the checkpoint folder, and she keeps the same > runs/plain.log redirect, because the dashboard reads that file.

In the morning the reward curve of the new run begins where the first run began days ago. The first step line in the new log reads step 0. The team splits: one side says the checkpoints are corrupt, the other says the resume feature does not work on this trainer. Nobody can say why the first run died, because the old log is gone.

Questions

  1. The new log starts at step 0. Which lines must appear above it when a resume works, and what does their absence prove?
  2. How loudly does Miles complain when the folder it loads from holds no checkpoint? What does that mean for the runbook?
  3. The flag named the newest iter_ folder. Why is that the wrong path, and which file does Miles read to find the last step?
  4. The restart also destroyed something that the team now misses. What, and how do you restart so that it survives?
  5. Write the test that every long run passes before it starts, with the step numbers you expect to see.
  6. The team wants to serve the model from a saved step. Which tool does that, and what does it need besides the checkpoint?

Commit to a cause after each listing. Write it down before you read the next one.

Evidence

1/7

the two runs of the restart check

The first run saves at step 2 on an empty folder. The second run starts with the same flags and runs 4 steps.

evidence/check-setup.txt
# Live check 2026-10-23, Qwen3-0.6B. ckpt-a: 2 steps with --save /ckpt/run-a --save-interval 20 --load /ckpt/run-a on an empty folder. ckpt-a-resume: same flags, 4 steps.

Source: manuals/miles-101/capture/gpu/out-gb10/resume-check.txt, lines 1-1

2/7

the first run: its save line, and its silence about the empty folder

Read the count of lines that mention a missing tracker or folder.

evidence/first-run-saved.txt
## ckpt-a
[FSDP] Saved checkpoint to /ckpt/run-a/iter_0000002
lines mentioning a missing tracker or folder: 0

Source: manuals/miles-101/capture/gpu/out-gb10/resume-check.txt, lines 2-4

3/7

the second run: what a real resume prints

Three Loaded lines, then the first step line of the run.

evidence/resume-lines.txt
## ckpt-a-resume
[FSDP] Loaded model from /ckpt/run-a/iter_0000002/model
[FSDP] Loaded optimizer from /ckpt/run-a/iter_0000002/optimizer
[FSDP] Loaded LR scheduler from /ckpt/run-a/iter_0000002/lr_scheduler
[FSDP] Saved checkpoint to /ckpt/run-a/iter_0000004
step 2:
step 3:

Source: manuals/miles-101/capture/gpu/out-gb10/resume-check.txt, lines 5-11

4/7

what the checkpoint folder holds after both runs

One tracker file sits next to the iter folders.

evidence/folder.txt
## folder
iter_0000002
iter_0000004
latest_checkpointed_iteration.txt
rollout

Source: manuals/miles-101/capture/gpu/out-gb10/resume-check.txt, lines 12-16

5/7

the manual's rule for the load flag and the log file

Read what --load must name and what the redirect does to the old log.

evidence/load-rule.txt
Start the same command again after a failure, with a new log file, such as `> runs/plain-resume.log`. The redirect of [section 1.1](#s-run-grpo-on-one-gpu) empties the old log, and you need it to find the cause of the failure. `--load` names the parent folder, never one `iter_` folder inside it. Miles reads its tracker file to find the last saved step. On the first run, the folder is empty, and Miles starts fresh.

Source: manuals/miles-101/sections/6-3-survive-failures.md, lines 25-25

6/7

the lines a resumed run must show, and the test before a long run

The second paragraph gives the two-step test.

evidence/resume-checklist.txt
The log of a resumed run should show `[FSDP] Loaded model from` and `[FSDP] Loaded optimizer from`, each with the folder of the step. If these lines are missing, the run started fresh. Our first run with an empty folder printed no message about the missing checkpoint. In our resume check, the first trainer line after the load was `step 2`.

Test a restart on a short run before the long run starts. Miles always saves after the last step, so run the command above with `MILES_NUM_ROLLOUT=2`. Then run it again with `MILES_NUM_ROLLOUT=4`. The first step line of the second run should be `step 2`, not `step 0`. We ran this test on our GB10 with Qwen3-0.6B, and it passed. We also ran the converter below on the step 2 checkpoint, and it wrote a model folder with the weights and the tokenizer files.

Source: manuals/miles-101/sections/6-3-survive-failures.md, lines 34-36

7/7

the files that the checkpoint converter wrote

The converter turned the step 2 checkpoint into a model folder that a serving engine can load.

evidence/converter.txt
## FSDP to Hugging Face (tools/convert_fsdp_to_hf.py, iter_0000002)
config.json generation_config.json LICENSE merges.txt model.safetensors README.md tokenizer_config.json tokenizer.json vocab.json 

Source: manuals/miles-101/capture/gpu/out-gb10/live-check-summary.txt, lines 5-6

The answer

Show the walkthrough
  1. Read the shape of the check. The manual ran two short runs with the same flags: --save /ckpt/run-a --save-interval 20 --load /ckpt/run-a. The first ran 2 steps on an empty folder. The second ran 4 steps on the folder the first one left. This is the smallest test of a resume, and it is what the team should have run before the long run.
  2. Read the first run. It wrote [FSDP] Saved checkpoint to /ckpt/run-a/iter_0000002, because Miles always saves after the last step. The count of lines that mention a missing tracker or a missing folder is 0. The load folder was empty and Miles said nothing about it. That silence is the whole incident: a run that finds nothing to load looks exactly like a run that was never asked to load.
  3. Read the second run. It printed three Loaded lines, for the model, the optimizer and the LR scheduler, each with the folder of the step. Its first step line is step 2, not step 0, and it saved iter_0000004 at its end. These three lines and that first step number are the proof of a resume. The team's log has none of them, so the new run started fresh.
  4. Read the folder. It holds iter_0000002, iter_0000004, a rollout folder and one file, latest_checkpointed_iteration.txt. That file is the tracker. It sits in the parent folder, not inside an iter_ folder.
  5. Apply the rule for the flag. --load names the parent folder, never one iter_ folder inside it, because Miles reads the tracker file there to find the last saved step. The engineer pointed the flag at a folder with no tracker, so Miles had no step to resume, which is the same case as an empty folder, and the manual's test shows that this case prints nothing.
  6. Apply the rule for the log. The manual asks for a new log file on a restart, such as > runs/plain-resume.log, because the redirect empties the old log and the old log is where the cause of the failure is. The team lost the cause of the night's crash with the same keystroke that lost the resume.
  7. Read the converter output. The FSDP trainer writes distributed checkpoints that other tools cannot load. The converter turned the step 2 checkpoint into a model folder with the weights, the configuration and the tokenizer files, given the base model folder for the configuration and the tokenizer.
Show the resolution

The checkpoints were fine. The resume did not happen because --load named an iter_ folder, which holds no tracker file, and Miles starts fresh without a message when it finds no step to load. Point --load at the parent folder, /ckpt/run-a, start again with a new log file, and read the three Loaded lines and the first step number before you walk away. The run then continues from the last saved step, as the check run did from step 2.

Make the check part of the runbook. Before a long run, run the command with MILES_NUM_ROLLOUT=2, then again with MILES_NUM_ROLLOUT=4, and require step 2 as the first step line of the second run. Choose --save-interval from the step time, so that a crash costs less than you accept: with a step of five minutes, an interval of 12 loses at most one hour. To serve a saved step, run the converter inside the container with the step folder, an output folder and the base model folder.

Show the wrong turns
  • “The checkpoints are corrupt.”

    The folder holds the step folders and the tracker file, and the manual's second run loaded the model, the optimizer and the LR scheduler from the same kind of folder. Nothing in the new log says that a load failed, because no load was attempted.

  • “The resume feature does not work on the FSDP trainer.”

    The check run resumed at step 2 on the FSDP trainer and saved iter_0000004. The feature needs the parent folder, and it got a step folder.

  • “Point the flag at the step folder to be sure it loads the right step.”

    The tracker file in the parent folder names the last step. A step folder has no tracker, so the flag loads nothing.

  • “Keep the same log file so the dashboard does not break.”

    The redirect empties the old log and destroys the only record of the crash. Use a new file for each restart and point the dashboard at a folder.

Show the general rule

A feature that fails silently must be verified by its positive signal, never by the absence of an error. For every resume, every cache load and every state restore, know the log lines that prove it happened and the first value that must differ from a cold start, and test the whole restart path on a short run before you rely on it. Never let a restart overwrite the evidence of the failure that caused it.

Taught in

The Miles manual gives the checkpoint flags, the resume lines, the two-step test and the converter in the failures page.