Scenario
An RL speedup that was not an effect
RolesAI Evaluation and ReliabilityInference Engineering
- 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, with a heat guard that pauses the run at 84 C
Situation
A teammate posts a result in the team channel: keeping the rollout engine loaded between phases makes the rollout 12 percent faster. The post shows two runs on the GB10, a baseline with a median rollout of 59.1 s and the new setting at 52.0 s, and proposes to make the new setting the default. The same post reports a reward gain of 0.01 from a second change, on one seed, with a loss curve that "looks better".
A reviewer asks for the run manifest. The two runs were four days apart. The memory fraction for the engine was not the same in the second run either. The medians cover different steps, because the heat guard put the container on hold whenever the GPU reached 84 C, 1,005 times that week. A third teammate, who wants the trainer and engine log probabilities to agree more closely, has switched the engine to FP16 and left the trainer in BF16.
Questions
- Two runs, two medians, 12 percent. List everything that differed between the runs before you believe the number.
- The same-day pair shows 60.7 s against 56.7 s over different clean steps. Why is even that not enough, and what comparison is?
- Three seeds of the baseline ended at 0.758, 0.736 and 0.766. What does a gain of 0.01 on one seed mean, and what would make it reportable?
- The heat guard paused the container 1,005 times. How does a pause enter a median, and which steps may you time?
- Predict from the dtype table what FP16 on the engine alone does to the gap.
- Write the manifest that every run records before it starts, and the rule for reporting a change.
Commit to a cause after each listing. Write it down before you read the next one.
Evidence
the rollout time per step of every run, over all steps and over clean steps
Compare the two median columns of each row, and read the count of clean steps.
Rollout time per step, all steps against steps whose rollout window overlaps no heat-guard pause.
Pauses in the heat-guard log: 1005. Source: summary/miles-gb10-lab.json, median_unpaused.
run steps all_median_s unpaused_median_s unpaused_steps
plain 12 57.2 57.2 12
plain-48 48 47.5 47.5 48
plain-48-s2 48 86.2 52.0 4
plain-48-s3 48 90.9 36.1 7
e6a-base 12 83.9 59.1 6
e6b-det-triton 12 84.5 82.0 8
e6c-det-flashinfer 12 87.3 77.3 7
e6d-det-triton-repeat 12 94.2 81.9 7
e11-topp-topk 12 74.5 66.8 7
e3b-offload-kv 12 97.5 57.8 5
e3c-no-offload-rollout 12 63.2 52.0 7
e3d-no-offload-train 12 81.2 59.8 6
e4-0.6b 4 12.4 12.3 3
e4-1.7b 4 30.0 30.0 4
e2-n4 24 32.5 32.5 14
e2-n16 24 188.2 - 0
e3e-base-frac025 12 102.0 60.7 4
e3f-no-offload-rollout-frac025 12 102.2 56.7 3
e2b-dapo-filter 12 340.7 - 0Source: manuals/miles-101/capture/gpu/out-gb10/unpaused-timing.txt
the same-day pair that changed only the engine offload
The two medians cover different clean steps.
| Setting | Clean rollout steps | Clean rollout median | Trainer offload, all steps | Trainer onload, all steps | Weight update, all steps |
|---|---|---|---|---|---|
| default offload | 4 of 12 | 60.7 s | 0.73 s | 0.76 s | 0.62 s |
| engine kept loaded | 3 of 12 | 56.7 s | 0.75 s | 0.82 s | 0.64 s |Source: manuals/miles-101/sections/2-2-choose-what-to-offload.md, lines 30-33
three seeds of the same 48-step run
Read the spread of the reward over the last 8 steps.
| Seed | Reward, first 8 steps | Reward, last 8 steps | Length, first 8 | Length, last 8 | Cut share, first 8 | Cut share, last 8 |
|---|---|---|---|---|---|---|
| default (1234) | 0.636 | 0.758 | 724 | 447 | 0.33 | 0.08 |
| 2 | 0.653 | 0.736 | 712 | 480 | 0.30 | 0.12 |
| 3 | 0.614 | 0.766 | 734 | 456 | 0.34 | 0.09 |Source: manuals/miles-101/sections/5-3-repeat-a-run.md, lines 15-19
the engine settings of five runs, read from their logs
Find the rows that differ in exactly one column.
run attention_backend enable_deterministic_inference sampling_backend --rollout-top-p --rollout-top-k
e6a-base flashinfer False flashinfer not set not set
e6b-det-triton triton True pytorch not set not set
e6c-det-flashinfer flashinfer True pytorch not set not set
e6d-det-triton-repeat triton True pytorch not set not set
e11-topp-topk flashinfer False flashinfer 0.95 64Source: manuals/miles-101/capture/gpu/out-gb10/engine-settings.txt, lines 4-9
the image digest, the commit and the engine version that every run used
Three commands, run before the first run and kept with the results.
$ docker image inspect --format "{{index .RepoDigests 0}} {{.Architecture}}" radixark/miles:latest
radixark/miles@sha256:c64fa344e3a86715f03c0a1b6a422c474e0035355591a2f6da87bf52a74c52da arm64
$ docker run --rm --entrypoint git radixark/miles:latest -C /root/miles log -1 --format="%h %cs %s"
08752a1283 2026-10-15 fix(ci): keep host networks out of the builder disk cleanup (#4130)
$ docker run --rm --entrypoint /opt/sglang/bin/python3 radixark/miles:latest -c "import sglang;print(sglang.__version__)"
0.5.22.dev46+g7b6993aSource: manuals/miles-101/capture/gpu/out-gb10/image-identity.txt
the log probability gap between the engine and a trainer forward pass, by dtype
Compare the rows that change the dtype on one side with the row that changes it on both.
engine trainer median p90 mean max
BF16 BF16 0.0073 0.087 0.027 0.355
BF16 FP16 0.0079 0.053 0.019 0.279
BF16 FP32 0.0076 0.053 0.019 0.280
FP16 BF16 0.0085 0.061 0.021 0.265
FP16 FP16 0.00094 0.010 0.0032 0.033
FP16 FP32 0.0010 0.0068 0.0024 0.023
FP16 on both sides cuts the median gap about 7.8x against BF16 on both sides, the mean about 8.4x, and the worst token about 10x.
FP16 on one side only does not help: 0.0079 and 0.0085.
The BF16 engine stays at about 0.0076 even against FP32, so the BF16 rounding of the engine sets that floor.Source: manuals/miles-101/capture/gpu/out-l4/logprob-gap-by-dtype.txt, lines 10-20
The answer
Show the walkthrough
Start with the timing table. Every row has two medians, one over all steps and one over the steps whose rollout overlapped no heat pause. For the baseline, e6a-base, they are 83.9 s and 59.1 s, from 6 clean steps of 12. For the two runs of the offload pair at a fraction of 0.25 they are 102.0 against 60.7 s and 102.2 against 56.7 s, from 4 and 3 clean steps. The 48-step run from before the heat guard existed, plain-48, has 47.5 s in both columns, because no pause could touch it. A 16-answer run has no clean step at all. So a median over all steps is a median over pauses, and the pause count differs between any two runs.
The same-day pair is the honest version of the claim. Only --no-offload-rollout differed, the fraction was 0.25 in both runs, and the clean medians were 60.7 s against 56.7 s. Even that is not a fair pair, because the two medians come from different steps. The rollout time follows the answer length, and answers get shorter as the model learns, from about 800 tokens in early steps to about 690 later. On the three steps that were clean in both runs the engine kept loaded saved 69.4 against 68.0 s, 58.5 against 56.7 s and 55.8 against 55.2 s. That is 0.6 to 1.8 s of a rollout of about a minute, 1 to 3 percent, on one seed. The original 12 percent came from a pair that changed the fraction as well and compared different steps.
The three seeds give the noise floor. Seeds 1234, 2 and 3 of the same 48-step recipe reached final rewards of 0.758, 0.736 and 0.766 over the last 8 steps, with answer lengths of 447, 480 and 456 tokens. All three learned, and the final reward still spread by 0.03 with nothing changed. One seed cannot see a gain of 0.01 inside that spread. A change of 0.05 on two seeds is worth a third run.
The engine settings table is what a manifest looks like after the fact. It was read from the server arguments line of each run log, and it shows which runs differ in one column only: the deterministic runs differ from the base in the flag, the sampler and sometimes the backend, and the top-p run differs in the two sampler flags alone. The identity listing is the other half, taken before the runs: the image digest, the commit inside the image and the version of the engine build. Without those three lines, a run from last week cannot be compared with one from today, because the latest tag moves.
The dtype table answers the third teammate before the run. With BF16 on both sides the median gap per token was 0.0073. With FP16 on the engine only it was 0.0085, and with FP16 on the trainer only 0.0079. Neither helped. With FP16 on both sides the median fell to 0.00094, about 7.8 times lower. The BF16 engine stayed near 0.0076 even against an FP32 trainer, so the rounding of the engine set that floor. A dtype change pays only when both sides make it.
Show the resolution
The 12 percent is withdrawn. The defensible statement is that keeping the engine loaded saved 0.6 to 1.8 s of a rollout of about a minute on the steps that were clean in both runs of a same-day pair, on one seed, which is inside the step-to-step noise of this machine under heat pauses. The default offload stays. The reward gain of 0.01 is not reportable until it appears on two seeds and falls outside the 0.736 to 0.766 spread of the baseline seeds.
Before it starts, every run now records the image digest, the commit, the engine version, the full command, the seeds and the names of its log files. During the run the trainer, the engine and the heat guard each write their own log, and at the end the run writes one exit code line. A change gets one run against a baseline from the same day with one setting different, two seeds, and a comparison on the same step numbers, from clean steps only. The dtype of the engine and the trainer move together or not at all, and deterministic inference is kept for repeating an experiment, because it made the engine repeat its step 0 exactly and left the gap at 0.01518 against 0.01526 while it cost 40 to 45 percent more rollout time.
Show the wrong turns
“Both runs had pauses, so the medians over all steps are fair.”
The pauses are not equal. The two runs of the pair had 4 and 3 clean steps, and their all-step medians of 102.0 and 102.2 s sit forty seconds above their clean medians.
“The run from before the heat guard is the clean baseline.”
Its 47.5 s covers 48 steps, with the late short answers inside. On the same 6 step numbers as the later run it took 60.9 s. Compare step numbers, not whole runs.
“A gain of 0.01 is small but the curve looks better.”
Three seeds of the same recipe spread by 0.03 at the end. One seed cannot see 0.01.
“Switch the engine to FP16 to lower the gap.”
On one side only the gap was 0.0085 and 0.0079, no better than 0.0073 with BF16 on both. Both sides or neither.
“Turn on deterministic inference so runs are comparable.”
It makes the engine repeat itself and costs 40 to 45 percent of the rollout time. The gap stayed between 0.01515 and 0.01526, and the trainer still drifted from step 1.
Show the general rule
A measured difference is a claim about everything that differed between two runs, so write down what differed before you write down the number. Hold the machine, the code and the data identity fixed, change one thing, pay for a second seed, and compare like with like down to the step. A result that survives that is small, and it is yours.
Taught in
The Miles manual gives the manifest in the comparable runs page, the seeds and the clean steps in the repeat page, the same-day pair in the offload page, the deterministic runs in the repeatable engine page and the clean-step rule in the lab notes.