feat(models): local checkpoints, Models & Storage panel, no-download switch, Magenta SETUP pill#16
Merged
Merged
Conversation
…switch, Magenta SETUP pill Models stay under the user's control end to end: - stable_audio_3: from_pretrained now accepts a local folder or .safetensors file (resolve_local_checkpoint pairs the checkpoint with its config JSON; ambiguous folders are refused rather than guessed). - backend/modules/storage (new, /api/storage): location map with sizes (HF cache, SA3 local folders, generations, RAG index, torch hub, and the Magenta WSL assets/venv probed through wsl.exe with stdin scripts because wsl re-joins argv without quoting and text-mode stdin CRLF- breaks bash), per-repo HF cache breakdown, open-in-Explorer gated to known roots, a registry of user-added checkpoints persisted in data/local_checkpoints.json (gitignored), and a persistent local-only switch wired to SA3_LOCAL_ONLY. - server: local:<id> models resolve through the registry into the same load/park/wake lifecycle; available_models reports them. - MAKE: registered checkpoints appear under LOCAL CHECKPOINTS in the Model dropdown with ARC/RF-aware sampler defaults. - Settings -> Models & Storage: catalog source chips (local/cached/ download), add/remove checkpoints (files never touched), local-only toggle, location browser with sizes + Open, HF cache table. - Magenta: engine/start refuses with 412 setup_required when the WSL venv or model checkpoint is missing (probed + cached); the dropdown pill shows SETUP with a tooltip pointing at Setup-MRT2.bat instead of a bare ERROR; engine/status carries the probe. - Docs: USER_GUIDE 21.1 (resolution order, panel, endpoints), 27 pill states; README models paragraph.
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.
Summary
from_pretrainedaccepts a local folder or .safetensors file; ambiguous folders are refused rather than guessed/api/storage): location map with sizes (incl. Magenta WSL assets/venv via wsl.exe), HF cache per-repo breakdown, open-in-Explorer gated to known roots, local-checkpoint registry, persistent local-only switch (SA3_LOCAL_ONLY)local:<id>setup_requiredwhen the WSL side is missing; the dropdown pill shows SETUP pointing at Setup-MRT2.bat instead of a bare ERRORValidation