Repository navigation
Enable two-node Miles v0.2.0 captures and validate Qwen27B - #348
Merged
Merged
Conversation
Fred Robinson (frrad)
force-pushed
the
reference-dapo-multinode
branch
from
November 17, 2026 23:06
924d653 to
c2d5b7d
Compare
Fred Robinson (frrad)
changed the base branch from
main
to
fix/restore-frozen-miles-image-names
November 17, 2026 23:19
Fred Robinson (frrad)
force-pushed
the
reference-dapo-multinode
branch
from
November 17, 2026 23:22
c2d5b7d to
47141f0
Compare
Base automatically changed from
fix/restore-frozen-miles-image-names
to
main
November 17, 2026 23:44
Fred Robinson (frrad)
marked this pull request as ready for review
November 18, 2026 01:57
Fred Robinson (frrad)
requested review from
Kailash Ranganathan (kailash109) and
Micah Yong (micahtyong)
as code owners
November 18, 2026 01:57
Collaborator
|
Could we split this into two PRs based on main? The runtime change ships to users and the reference-run tooling doesn't, so they'd be easier to review and validate separately.
|
Fred Robinson (frrad)
changed the base branch from
main
to
reference-run-tooling
November 18, 2026 03:41
Fred Robinson (frrad)
force-pushed
the
reference-dapo-multinode
branch
2 times, most recently
from
November 18, 2026 04:06
6a3479d to
3996abc
Compare
Contributor
Author
|
Good call. I extracted the reference run machinery into #372 and stacked this PR onto that one. The 0.2.0 validation run is still in-flight but otherwise both this PR and that one are ready for another look. |
Micah Yong (micahtyong)
approved these changes
Nov 18, 2026
Fred Robinson (frrad)
force-pushed
the
reference-dapo-multinode
branch
from
November 18, 2026 05:44
19c32a6 to
67f1d07
Compare
Micah Yong (micahtyong)
added a commit
that referenced
this pull request
Nov 18, 2026
Merge reference-dapo-multinode (#348) and keep only the Kimi K3 changes on top of it: the recipe on the miles-v0.2.0-e814245 trainer image and the default sglang-v0.5.23-c4182b2 sampler image, which both contain the K3 fork changes. The Beam and old-runtime changes from the previous base are dropped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Replay a zero-gradient Adam step from a saved probe checkpoint to isolate optimizer restoration from backward numerical variation. A nonzero warmup creates momentum, and the script returns to the measured state afterward. Record the completed 20-update Qwen27B recovery with frozen server provenance and the exact state checks. Preserve missing timing intervals as plot gaps.
…ed corruption A fresh-worker check on c8eb9e7 with shared compiler caches failed while importing a generated Inductor module. The inspected file contained 2342 null bytes. Keep the shared checkpoint Volume, but use local Triton and Inductor caches for this recipe, matching the completed measurement.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enable Miles v0.2.0 trainers to save checkpoints and publish adapters across nodes. Its capture APIs bypass the cross-node checkpoint writer used by v0.1.1. Spindle now commits every node's capture writes and reloads the coordinator's Volume before materializing the adapter. Volume-backed captures, persistence and publication share the checkpoint I/O lock; local captures retain their existing concurrency. The generic capture changes were extracted from #252 with its author's agreement.
Move
qwen38-27b-lora-256ktomiles-v0.2.0-8c5de26and add one short Qwen3.8-27B DAPO-Math reference definition. Existing checkpoints need their original trainer image. This targets main after #372 merged; generic launcher/indexing/tokenizer changes belong to that merged PR.The shared DAPO script now validates restoration after its final measured checkpoint. It creates nonzero Adam momentum, saves, applies a zero-gradient momentum step, restores and repeats that step, then restores the measured checkpoint and publishes/samples again. These probe updates stay outside the measured learning curve. Plotting leaves missing timing intervals as gaps.
Validation
Both measurements completed 20 accepted updates, evaluations at 0/5/10/15/20 and checkpoints at 0/10/20 using stock Tinker SDK 0.26.0. Layout: two eight-H200 trainers, TP2/CP8, two four-H200 sampler replicas, one client. Responses are capped at 2,048 tokens; this does not validate 256K sequences.
Baseline metrics · v0.2.0 metrics. Both completed datasets and their observed provenance are indexed. No partial JSONLs are committed.
The full measurements ran on frozen server commits
8970cb1f69675e917db9baee9ad4b0abfbecdf61(v0.1.1, imagemiles-v0.1.1-52a7a99) and2b5cf4f13a6834bf680fbdaa3aa48329d961405b(v0.2.0, imagemiles-v0.2.0-8c5de26), both reporting server version 0.1.7. They did not run on the final PR head.Interruption provenance: the v0.2.0 client disappeared after 12 updates; its termination cause is unknown. Fresh workers restored checkpoint 10 and completed updates 11–20. The committed trajectory uses original updates 1–10 and resumed updates 11–20, with no timing interval across the interruption. An initial recovery attempt stopped before any updates because of a local logging error. The corrected recovery client passed its offline loop smoke check before relaunch.
An earlier attempt encountered a generated TorchInductor module containing null bytes at its first backward pass. The downloaded committed file was valid, so the cause remains unconfirmed. The measured retry used local compiler caches, which are now also configured by the bundled recipe. Worker regions also differed across segments. These single-seed results are not a controlled speed or learning-parity comparison.
Restore evidence: checkpoint 10 loaded on fresh workers and resaved with all 1,249 state entries, including 833 optimizer entries, bitwise identical. Training then continued through update 20. The momentum replay also produced bitwise identical full checkpoints, exact restored/replayed scores, a nonzero score change (maximum 7.0116), and successful sampler publication/generation. A strict nonzero-gradient replay diverged despite exact restoration: backward results differed slightly and BF16 scores amplified those differences. The permanent probe isolates optimizer restoration with zero gradients rather than weakening score tolerances.
Shared-cache check: fresh workers on
c8eb9e7257451b38c2eb9420b631c040f51f5be2restored checkpoint 20 and published/sampled, then failed at the first forward operation while importing an Inductor module from the shared cache. Inspection found all 2,342 bytes of the generated file were null bytes. The recipe now uses local Triton/Inductor caches, matching the completed measurement. The shipped restore helper passed on merged headc345c473c1a8aaa65660c4ceeaef304a37035acdwith local caches. Restored, replayed and final measured scores all matched exactly; the momentum step changed scores by up to 0.7491, and final sampling returned 16 tokens. Direct checkpoint comparisons found all 1,249 state entries, including 833 optimizer entries, bitwise identical both between expected/replayed momentum steps and between the original measured checkpoint 20 and its final-head resave. The helper probe took 280.4 s, excluding startup. Both fresh trainer nodes matched six checked runtime source files to this commit; all 16 rank processes had the intended local compiler-cache settings. The full measurements above used older frozen source.Main is merged through
d34e6c94. Local checks on exact headc345c473c1a8aaa65660c4ceeaef304a37035acd: Python 3.12uv sync --locked --python 3.12, full pre-commit (including ty), and full CPU pytest: 1,607 passed, 10 skipped in 121.89 s. All three GitHub SDK jobs passed on this head (CI). Tests cover capture gathering/failure, checkpoint I/O serialization, failed optimizer restoration, nonfinite probe scores and reproducible timing gaps. The full GPU measurements remain on the frozen commits above; the final-head limited restore/replay and sampler probe passed. This is not a second full 20-update measurement on the final head.Validation apps and worker pools are stopped; zero owned containers remain. Checkpoint Volumes are retained.
Comparison
The timing gap at update 11 excludes restart downtime. Scheduled evaluations/checkpoints contribute to interval spikes.