Skip to content

Studio: stop rejecting --mmproj-device CUDA1 when gpu_ids are saved - #12620

Merged
danielhanchen merged 15 commits into
mainfrom
reland/pr-12505
Oct 3, 2026
Merged

danielhanchen merged 15 commits into
mainfrom
reland/pr-12505

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Re-opens #12505 for review. It was merged before its review converged and was reverted in #12569.

The change is the original squash commit, cherry-picked unchanged (git cherry-pick -x a91ee3789), with authorship kept for @1fanwang. The full description and discussion are on #12505.
#12569 has merged, so this PR targets main and its diff shows only this change.

Etherll and others added 12 commits October 2, 2026 14:53
…and lighten both drag copies" (#12499)

This reverts commit 9838541. It was merged before Codex review converged; it will be re-opened for review.
…11187)" (#11361)

This reverts commit cd4d5c1. It was merged before Codex review converged; it will be re-opened for review.
… saved" (#12505)

This reverts commit a91ee37. It was merged before Codex review converged; it will be re-opened for review.
…advancing" (#12523)

This reverts commit d8740d3. It was merged before Codex review converged; it will be re-opened for review.
…row" (#12529)

This reverts commit 5b78baf. It was merged before Codex review converged; it will be re-opened for review.
…ersized request streams pinned groups" (#12526)

This reverts commit d883d2d. It was merged before Codex review converged; it will be re-opened for review.
…, Z-Image, Ideogram 4, Wan2.2 and HunyuanVideo-1.5" (#12516)

This reverts commit fd2522b. It was merged before Codex review converged; it will be re-opened for review.
…ndow" (#12514)

This reverts commit dae96ea. It was merged before Codex review converged; it will be re-opened for review.
…#12486)

This reverts commit ed6d0e8. It was merged before Codex review converged; it will be re-opened for review.
…names" (#12475)

This reverts commit 079dc91. It was merged before Codex review converged; it will be re-opened for review.
#12562 (make carried rows a faintly frosted, darker copy) landed after this
branch was cut and restyles the shared ghost rule that #12499 introduced: it
relies on --row-ghost-surface and .model-picker-row-ghost, and edits
model-picker-pinned-drag-preview.test.ts, all of which the #12499 revert
removes. Keeping it without #12499 leaves .sidebar-row-ghost reading an unset
variable, so the conflict is resolved by dropping #12562's two hunks as well.
It should be re-opened together with #12499. #12563, #12564 and #12597 are kept.
…12505)

* Studio: widen companion devices within explicit gpu_ids

An explicit gpu_ids selection turned off companion-device widening, so
when the fit pinned the model to one selected GPU, --mmproj-device CUDA1
still named a hidden card and llama-server rejected it. Widen onto cards
in gpu_ids and keep unselected cards out.

Fixes #12467

Signed-off-by: 1fanwang <[email protected]>

* Studio: record the widened explicit pin as the effective GPU pin

With gpu_ids saved and the fit choosing fewer GPUs, the mask now widens onto a
companion card inside gpu_ids, but the effective pin was recorded before that.
/status echoed the narrower pin, a request carrying it matched the loaded model
and became the stored intent, and a respawn or rollback replaying it reloaded
without the projector's GPU ("invalid device" again). Deselecting that GPU was
also treated as already loaded. Record the widened mask once it is applied.

---------

Signed-off-by: 1fanwang <[email protected]>
Co-authored-by: Etherll <[email protected]>
(cherry picked from commit a91ee37)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T11:34:11.399865Z f83e75c Manual request
🔒 Security Review ⚠️ Failed 2026-10-03T10:48:37.299524Z cb54419 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Base automatically changed from revert/unconverged-2026-10-02 to main October 3, 2026 10:51
danielhanchen and others added 3 commits October 3, 2026 03:51
…12505)

* Studio: widen companion devices within explicit gpu_ids

An explicit gpu_ids selection turned off companion-device widening, so
when the fit pinned the model to one selected GPU, --mmproj-device CUDA1
still named a hidden card and llama-server rejected it. Widen onto cards
in gpu_ids and keep unselected cards out.

Fixes #12467

Signed-off-by: 1fanwang <[email protected]>

* Studio: record the widened explicit pin as the effective GPU pin

With gpu_ids saved and the fit choosing fewer GPUs, the mask now widens onto a
companion card inside gpu_ids, but the effective pin was recorded before that.
/status echoed the narrower pin, a request carrying it matched the loaded model
and became the stored intent, and a respawn or rollback replaying it reloaded
without the projector's GPU ("invalid device" again). Deselecting that GPU was
also treated as already loaded. Record the widened mask once it is applied.

---------

Signed-off-by: 1fanwang <[email protected]>
Co-authored-by: Etherll <[email protected]>
(cherry picked from commit a91ee37)
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: f83e75cf30

ℹ️ 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 danielhanchen self-assigned this Oct 3, 2026
@danielhanchen
danielhanchen merged commit 6b4f70f into main Oct 3, 2026
@danielhanchen
danielhanchen deleted the reland/pr-12505 branch October 3, 2026 15:49
JoshuaL3000 pushed a commit to JoshuaL3000/unsloth that referenced this pull request Oct 4, 2026
…nslothai#12620)

Re-lands unslothai#12505 (reverted in unslothai#12569). Limits companion-device mask widening to the GPUs in gpu_ids instead of disabling it, and records the widened pin for /status and dedupe. Fixes unslothai#12467.

Co-authored-by: Stefan Wang <[email protected]>
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.

3 participants