Repository navigation
Support per-adapter seeds in the v0.2.0 LoRA slot API - #44
Merged
frrad merged 1 commit intoNov 17, 2026
Merged
Conversation
Let callers seed the existing adapter initializer before optimizer creation. Checkpoint restoration takes precedence over initialization. Keep omitted seeds unchanged and rely on the adapter backend to preserve all topology-specific RNG streams.
frrad
marked this pull request as ready for review
November 17, 2026 20:04
frrad
added a commit
to modal-labs/spindle
that referenced
this pull request
Nov 17, 2026
The fork PRs for seeded LoRA initialization were squash-merged, so the commits Spindle pinned are not on the spindle-miles* branches. Pin the merged commits instead: - miles-v0.1.1-52a7a99 (modal-projects/miles#42; same tree as ce494f0) - miles-v0.1.2-99e1ebe-glm53 (modal-projects/miles#43; same tree as 612703a) - miles-v0.2.0-8c5de26 (modal-projects/miles#44, after Beam LoRA support #37) The DeepSeek-V4.1 seed commit fde5e9e was never merged. Its seed patch is identical to the one #43 merged onto spindle-miles-v0.1.2, so the plain v0.1.2 image uses that branch head, 99e1ebe, as miles-v0.1.2-99e1ebe. The GLM-5.3 changes between f2f8447 and 99e1ebe only take effect in the glm53 build. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
Allow callers of
MilesBackend.load_slotto supply a per-adapter seed. Pass it through the trainer controller and actor to the existing adapter initializer, before constructing optimizer state. The adapter backend owns topology-specific RNG initialization and restoration, including replicated MLA projections.Checkpoint restoration ignores the initialization seed. Omitted seeds preserve the existing behavior. This exposes the slot API; it does not change validation in Miles' own Tinker gateway.
Used by modal-labs/spindle#324.
Testing
pytest --noconftest -q -o addopts='' tests/fast/backends/megatron_utils/test_lora_slot_seed.py).