Studio: save a model's run settings without loading it by danielhanchen · Pull Request #214 · danielhanchen/unsloth-staging-review · GitHub
Skip to content

Studio: save a model's run settings without loading it - #214

Closed
danielhanchen wants to merge 1 commit into
mainfrom
mirror-pr-10216
Closed

danielhanchen wants to merge 1 commit into
mainfrom
mirror-pr-10216

Conversation

@danielhanchen

Copy link
Copy Markdown
Owner

Fixes #10168.

The run settings panel only let you save settings as part of loading the model. If you wanted to set up a model ahead of time, you had to load it every time.

This adds a Save settings button next to Load model. It stores the settings for that model, including the copy the API uses for its own loads, and leaves the model unloaded. The footer now wraps in the picker so the "Remember for this model" label is not cut off.

Tested in the browser against a fresh install of main and this branch. On main the button does not exist and nothing is saved. On this branch clicking it shows "Settings saved.", the server has the new settings, and the model stays unloaded.

Before / after

Run settings for an unloaded on-device GGUF (gemma-3-270m-it-GGUF UD-Q4_K_XL), merge base 7617fc398 vs head 332ed632e. Before, the footer only offers Load model and Reset. After, Save settings sits between them; clicking it shows "Settings saved.", stores the config, and no model is loaded.

Run settings footer before and after


Mirror of unslothai/unsloth#10216 by @NilayYadav, opened for review only.
Do not merge here. Fixes agreed on this mirror must be applied to the source PR.
Source description digest at mirror time: bad119a97e93

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Repository owner deleted a comment from chatgpt-codex-connector Bot Sep 29, 2026
@danielhanchen

Copy link
Copy Markdown
Owner Author

@codex security review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3d6dcfc8a9

ℹ️ 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".

Repository owner deleted a comment from chatgpt-codex-connector Bot Sep 29, 2026
@danielhanchen

Copy link
Copy Markdown
Owner Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a58dc343f

ℹ️ 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".

// settings the load path strips or has already captured. Forget stores nothing, so
// broken saved arguments must not lock it.
disabled={
stagedMetadataPending ||

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Wait for GGUF classification before saving

The Save gate does not actually wait for classification in all cases: stagedMetadataPending is false while metadata is unresolved unless the draft has manual GPU placement, selected GPUs, or batch settings. If a user changes another diffusion-unsupported field such as Reasoning Budget, Tensor Parallelism, or Vision while a slow GGUF metadata request is pending, Save remains enabled; commitDraft consequently treats the model as non-diffusion and persists that field locally and to the API override instead of applying withoutUnsupportedDiffusionSettings. Gate Save on unresolved classifiedIsDiffusion itself, rather than this narrower metadata predicate.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not changing this here: Load on main has the same stagedMetadataPending gate and runs the same persistConfig path, so an unclassified draft is already persisted by Load today; Save matches it. Gating on an unresolved classification instead would leave Save disabled for good when the metadata fetch never resolves.

@chatgpt-codex-connector

Copy link
Copy Markdown

Repository owner deleted a comment from chatgpt-codex-connector Bot Sep 29, 2026
Repository owner deleted a comment from danielhanchen Sep 29, 2026
Repository owner deleted a comment from danielhanchen Sep 29, 2026
Repository owner deleted a comment from danielhanchen Sep 29, 2026
Repository owner deleted a comment from danielhanchen Sep 29, 2026
@danielhanchen
danielhanchen deleted the mirror-pr-10216 branch September 29, 2026 19:22
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