Repository navigation
Pin frozen, commit-named images in every bundled config - #313
Merged
Micah Yong (micahtyong) merged 3 commits intoNov 17, 2026
Merged
Micah Yong (micahtyong) merged 3 commits into
Micah Yong (micahtyong) merged 3 commits into
Conversation
Most bundled configs left trainer_image and inference_image empty and picked up the backend default, so moving the default SGLang or Miles pin moved almost every config at once. Each config file now sets both images itself, and a test rejects pins inherited from a parent config. That lets a config move to a newer SGLang or Miles fork without changing the others. The default images get names (miles-v0.1.1, megatron-2d1fa8d, sglang-v0.5.23), and inference_image now accepts built-in names like trainer_image does. Each config resolves to the same image as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Image names now end with the short commit of the Spindle fork they install, for example sglang-v0.5.23-c4182b2. A named image is never changed in place: a change gets a new name, configs move to it one at a time, and the old image is removed once nothing uses it. The rule is documented under "Changing an image" in docs/deployment-configs.md. miles-v0.1.2 and miles-v0.2.0 are renamed, so configs that set those names must be updated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
These configs pointed at Spindle's own images through module:attribute paths, which carry no release or commit. They now use built-in names in the same format as the other images: sglang-v0.5.21-a3e0e17, sglang-v0.5.23-c4182b2-glm53 and miles-v0.1.2-464efc9-glm53. The images are unchanged. module:attribute paths remain for images defined outside Spindle. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fred Robinson (frrad)
marked this pull request as ready for review
November 17, 2026 00:42
Fred Robinson (frrad)
requested review from
Kailash Ranganathan (kailash109) and
Micah Yong (micahtyong)
as code owners
November 17, 2026 00:42
Micah Yong (micahtyong)
approved these changes
Nov 17, 2026
Micah Yong (micahtyong)
deleted the
bb/draft-the-first-pr-for-the-proposal-thr_d6x2fxh8rk
branch
November 17, 2026 01:41
This was referenced Nov 17, 2026
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
Most bundled configs leave
trainer_imageandinference_imageempty, so they use the backend default: Miles v0.1.1, the Megatron image, or SGLang v0.5.23. Moving one of those defaults moves almost every config at once, and nobody tests all of them. This PR makes each config pin its own images, and it makes each named image fixed, so one config can move to a newer SGLang or Miles fork without changing the others.trainer_imageandinference_imageitself, including configs that subclass another config. A new parametrized test fails if a config inherits either pin from its parent. Inherited pins would move whenever the parent config is upgraded.miles-v0.1.1-fdd808c,miles-v0.1.2-f2f8447,miles-v0.2.0-15afe21,megatron-2d1fa8dandsglang-v0.5.23-c4182b2. The DeepSeek-V4.1 and GLM-5.3 Flash images weremodule:attributepaths and now have names too:sglang-v0.5.21-a3e0e17,sglang-v0.5.23-c4182b2-glm53andmiles-v0.1.2-464efc9-glm53. A suffix such as-glm53marks extra model-specific build steps. Liketrainer_image,inference_imagenow accepts a built-in name.module:attributepaths remain for images defined outside Spindle.docs/deployment-configs.md, "Changing an image", explains the process. Don't edit an image in place. Add a new name, move configs to it one at a time with a reference run for each, and remove the old image once nothing uses it. A comment indeployment_apps.pyand the spindle-dev skill both point to this section.Breaking:
miles-v0.1.2andmiles-v0.2.0shipped in 0.1.7 and are now renamed. Deploying a config that still uses an old name fails with an "unknown trainer image" error, and the error lists the valid names. The CHANGELOG lists the renames.The images don't change, but the image fields are part of each config's trainer and inference identity. The first
spindle deployafter this PR will redeploy the trainer and inference apps for every bundled config, once.Motivation
New model support often needs a newer SGLang or Miles fork. Today that means moving a pin that almost every config shares, without testing all of them. The plan is:
reference_runs/and a full-config regression check. The goal is to keep the window short during which configs run different image versions.Testing
On 94a2b52:
uv run pre-commit run --all-filespasses.uv run --no-sync pytest -qwith CPU torch, as in CI: 1377 passed. Three tests fail locally because thespindle_routerRust extension isn't built on this machine, and they don't touch image selection. I also checked that the new test fails when one config's pin is removed.🤖 Generated with Claude Code