Repository navigation
Unsloth Studio: show which models have saved run settings and reset them from the model menu - #12608
Conversation
…hem per field or from the model menu
…-saved-indicator-and-reset
…-saved-indicator-and-reset # Conflicts: # studio/frontend/src/features/model-picker/components/model-config-page.tsx
Main reverted the custom llama.cpp INI page, which took VisionRow with it, so the Vision reset button moves onto the inline Vision row. The row menu keeps both main's eject items and the run settings reset.
…d, and a loaded model's panel that sees a reset The per-field and row-menu reset use Undo02Icon instead of a hand-gesture glyph, and sit right after the label rather than past the hover-only hint. The header compares against the saved record, so a field put back reads as saved again. Resetting from the row menu clears the saved flags on a mounted editor's draft (the loaded model's editor stays mounted), and Undo sets them back. Auto speculative decoding counts as the default. The Undo toast stays 10 s.
…-saved-indicator-and-reset
|
Merged main ( |
…out resolving the global speculative mode A saved Auto (null) and the "auto" a loaded model's status writes still match, but an explicit mode no longer folds into Auto when it equals today's global, so the header says Unsaved changes.
… them Local GGUF and checkpoint rows, Hub search rows, NPU rows and fine-tuned rows opened run settings but never passed savedFor, so a model saved through them showed no dot and no menu reset.
…k savedFor matches the gear
…reset a non-GGUF context pin
…r tab survives a stale forget
|
Pushed Changes in this push (
Each fix has a test that fails before it and passes after. "Repo tests (CPU, studio)" fails 2 tests ( |
|
Review record for #12608, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#531. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|
…-saved-indicator-and-reset
…ows main's footer
…r-field reset Main's named Run presets (v0.1.911) landed in the same model-picker files. Main's saved-run-settings.ts and its test keep their paths; this PR's module moves to remembered-run-settings.ts. The panel is main's, with the header line now showing main's saveStatus and the footer button named Reset all. - Saved gears are plain gears now: no dot. They still stay visible and their tooltip still says the settings are saved. - Per-field reset is gone: setting-reset.ts, setting-reset-button.tsx, their test and the unsetIsAuto option only the old header used. - The row menu reset also puts a selected or pinned preset back on Default, as main's server forget does, and Undo restores both. - A stale server forget skips selections whose record was saved again. - Main's new loaded-model row gets savedFor and the row menu reset too.
|
Pushed |
Main moved the downloaded, sole-quant GGUF and local on-device rows into their own memo components; their gears and row menus now carry savedFor and runSettings like the rest. The gear guard counts actions.configure gears too.
A forget's cleanup in another tab that ran between the record write and the stamp write saw an identical record under the old stamp and deleted the re-save. The stamp now goes first and is put back if the record write fails.
Saves write the stamp first, so the baseline snapshot reads stamps first and the cleanup's re-read reads records first; an identical save landing between either pair of reads now shows as a change.
The cleanup compared a snapshot taken before it listed owners and deleted in a later read, so an identical save in between was lost. The check now runs against the map the delete itself writes back.
Main gives every GGUF quant a settings gear, downloaded or not, through one variantSelectMeta. The saved marker and Reset follow it onto every quant row.
A GGUF quant that is not on disk has no row menu, so settings saved from its gear had no Reset. SavedRunSettingsMenu shows one there once they are saved, and holds the menu slot otherwise.
|
Pushed Codex converged on the mirror (LeoBorcherding/unsloth#131): clean at |
|
Fork CI is clean on the mirror (LeoBorcherding/unsloth#131) at |




Why
Since #10216 you can save a model's run settings without loading it. Once you do that for a few models, they get hard to manage:
What's new
Nothing new becomes editable. Every gear here already opens on main. This PR shows what's saved and lets you take it back.
Not changed
This PR doesn't change what gets saved, the storage format, or what's sent when the model loads. Reset goes through the same path as the existing Forget settings. If a model was saved again after you reset it, a later reset that started from older data won't wipe that newer save.
Before / after
Two isolated Unsloth Studio installs on a MacBook Pro M5 (macOS 26): the merge base with main
4089c57a82(before) and this branch73c60cd98a(after). Same seeded cache, two small GGUFs. On both sides gemma-3-270m-it-GGUF UD-Q4_K_XL has KV cache q8_0 and Parallel Slots 2 saved through the panel's own Save. SmolLM2-135M has nothing saved.Model list, mouse away from every row. The saved model keeps its gear and ⋮ visible; the unsaved one doesn't. Its gear tooltip reads "Edit saved run settings".
Row ⋮ menu. "Reset run settings" appears only for a model with saved settings.
Run Settings panel. "Saved for this model" under the model name, and the footer button is now "Reset all".
After Reset run settings. The row's buttons go back to hover-only, and the toast keeps Undo for 10 seconds.
Tests
Measured at
73c60cd98a(main4089c57a82merged):remembered-run-settings, its legacy-snapshot test,override-forget-alias-orderandrecommended-curated-row-metadata. They cover the saved-settings lookup, reset + Undo (preset included), a newer save surviving a stale Undo, and forget ordering across aliases.test_model_picker_contracts.py: 201 pass. The 2 failures (test_remembered_slots_are_read_through_the_cached_repo_alias,test_a_standalone_gguf_has_one_settings_identity_in_the_picker) fail the same way on main.tscclean, startup bundle within budget. The contract and Playwright tests look for Reset all by its exact name.