Skip to content

Pin frozen, commit-named images in every bundled config - #313

Merged
Micah Yong (micahtyong) merged 3 commits into
mainfrom
bb/draft-the-first-pr-for-the-proposal-thr_d6x2fxh8rk
Nov 17, 2026
Merged

Micah Yong (micahtyong) merged 3 commits into
mainfrom
bb/draft-the-first-pr-for-the-proposal-thr_d6x2fxh8rk

Conversation

@frrad

@frrad Fred Robinson (frrad) commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Most bundled configs leave trainer_image and inference_image empty, 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.

  • Every bundled config pins its images. Each config file sets trainer_image and inference_image itself, 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.
  • Names include the fork commit. A name is the upstream release followed by the short commit of the Spindle fork that the image installs. The names are miles-v0.1.1-fdd808c, miles-v0.1.2-f2f8447, miles-v0.2.0-15afe21, megatron-2d1fa8d and sglang-v0.5.23-c4182b2. The DeepSeek-V4.1 and GLM-5.3 Flash images were module:attribute paths and now have names too: sglang-v0.5.21-a3e0e17, sglang-v0.5.23-c4182b2-glm53 and miles-v0.1.2-464efc9-glm53. A suffix such as -glm53 marks extra model-specific build steps. Like trainer_image, inference_image now accepts a built-in name. module:attribute paths remain for images defined outside Spindle.
  • Named images are frozen. A new section in 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 in deployment_apps.py and the spindle-dev skill both point to this section.
  • No image changes. Each config resolves to the same image as before.
  • User configs. Configs that leave the fields empty still get the defaults. The docs say that these defaults can change between releases.

Breaking: miles-v0.1.2 and miles-v0.2.0 shipped 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 deploy after 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:

  1. This PR: pin every config to the images it runs today, so new images can land without touching other configs.
  2. Follow-up: upgrade a few configs to the newest images every weeknight, on a rolling basis. Each upgrade adds a reference run under 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-files passes.
  • uv run --no-sync pytest -q with CPU torch, as in CI: 1377 passed. Three tests fail locally because the spindle_router Rust 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.
  • Not run end to end. No deploy or GPU run, since every config resolves to the same image it used before.

🤖 Generated with Claude Code

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]>
@frrad Fred Robinson (frrad) changed the title Pin trainer and sampler images in every bundled config Pin frozen, commit-named images in every bundled config Nov 17, 2026
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]>
@micahtyong
Micah Yong (micahtyong) merged commit 0260b5c into main Nov 17, 2026
3 checks passed
@micahtyong
Micah Yong (micahtyong) deleted the bb/draft-the-first-pr-for-the-proposal-thr_d6x2fxh8rk branch November 17, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants