Repository navigation
Studio: always show loaded GGUF weight placement - #17449
Merged
danielhanchen merged 4 commits intoNov 11, 2026
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This was referenced Nov 10, 2026
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 11, 2026
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 11, 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.
Related to #16055.
Problem
Studio knows where a loaded GGUF's weights are, but the only lasting readout is the "Weight placement" row in Run settings (#14909), and it sits behind a switch that is off by default. In a Reddit thread about slow generation, people could not tell whether the model had spilled to the CPU. They tried to read it from the memory estimate, which is a forecast.
Fix
There are no backend changes, and which loads get a warning is otherwise the same.
Before and after
Main (
011129b355) vs this PR (7e9fd96cc5), with the same real load on both sides.A model that is fully on the GPU:
14 of 37 layers on the GPU:
A MoE model with the expert weights of 24 layers in RAM:
Testing
typecheck,i18n:check:strictand the frontend andtests/studiotests that cover these files pass.Before and after, separate installs
Merge base
011129b355vs this PRdbd790c8ed, each built from its own tree, "Detailed speed info" left at its default (off).Run settings with gemma-3-270m GGUF loaded on an NVIDIA L4. Main shows no placement; this PR shows all 19 layers on the GPU and the weight split:
Run settings with Qwen3-0.6B GGUF loaded on a CPU-only Linux machine. This PR says all 29 layers are on the CPU, with 0.5 GiB in RAM: