Skip to content

Studio: fall back to the legacy --swa-checkpoints spelling - #9416

Merged
danielhanchen merged 3 commits into
mainfrom
studio-ctx-checkpoints-legacy-flag
Aug 21, 2026
Merged

danielhanchen merged 3 commits into
mainfrom
studio-ctx-checkpoints-legacy-flag

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #9410.

The capability probe looked for --ctx-checkpoints only. --swa-checkpoints is the older spelling of the same option, and a build carries either one or both, so on a build that ships only the old name the probe reported no support and the Checkpoints control silently did nothing. The probe now records which of the two names the build has, the same way the draft cache pair already did, and the launch emits that name. The Windows full-offload path that forces the value to 0 uses the recorded name too.

Verification

  • studio/backend/tests/test_server_tuning_flags.py: 41 passed, including the new test_the_checkpoint_flag_falls_back_to_the_legacy_spelling.
  • Cross-platform staging CI green on ubuntu-latest, macos-14 and windows-latest, plus the live Studio Playwright pass.

Rebased onto main. The two test fixes this branch also carried, the auto-load harness stubs and the seed-count contract, have since landed on main independently, so they are no longer part of this diff.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 8a9c29ea63

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

danielhanchen added a commit to Datta0/unsloth-staging-3 that referenced this pull request Aug 20, 2026
@danielhanchen danielhanchen changed the title Studio: fall back to the legacy --swa-checkpoints spelling Studio: two follow-ups to the Run settings tuning controls Aug 20, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: c339f33903

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 93fb245a6d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

danielhanchen and others added 3 commits August 21, 2026 06:46
The capability probe checked only --ctx-checkpoints, so on a build older than
the upstream rename, which carries just --swa-checkpoints, a value picked in the
Checkpoints control was silently dropped. Probe both spellings and record which
one the build has, then emit that name, the same alias handling the draft KV
cache flags already use. The Windows full-offload tuning path follows it too, so
its --ctx-checkpoints 0 lands on those builds as well.
@danielhanchen
danielhanchen force-pushed the studio-ctx-checkpoints-legacy-flag branch from 93fb245 to 2ec4274 Compare August 21, 2026 06:47
@danielhanchen danielhanchen changed the title Studio: two follow-ups to the Run settings tuning controls Studio: fall back to the legacy --swa-checkpoints spelling Aug 21, 2026
@danielhanchen
danielhanchen merged commit 88942e6 into main Aug 21, 2026
42 of 44 checks passed
@danielhanchen
danielhanchen deleted the studio-ctx-checkpoints-legacy-flag branch August 21, 2026 06:48
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.

1 participant