Repository navigation
fix(studio): reject standalone GGUF adapters before model teardown - #15421
Conversation
|
Reached Codex review convergence at oobabooga#423. |
|
Thanks @Aafimalek. This fixes the adapter failure behind Error 1 in #15412. Studio offers I ran the first 30 MB of 234 GGUFs from 229 Hugging Face repos through the preflight on main and on this branch. All 96 adapters (15 architectures) are now refused, where main refused none, and none of the 137 full models are, including 112 with "lora" or "adapter" in the name. One adapter, CI is clear at oobabooga#423 at Errors 2 and 3 in #15412 are separate, and hiding adapters from the variant list can be a follow-up. |
A GGUF LoRA adapter can declare a chat architecture while containing only weight deltas. Studio's existing non-chat preflight currently accepts it, so a standalone load can download the adapter and tear down the resident model before llama-server reports missing model metadata.
Record
general.typein the existing header read and reject adapters through the existing preflight. The error explains that a matching base model is required. Reset the type between reads, and keep complete merged LoRA models loadable regardless of their filenames. No new networking, dependency or filename heuristic is introduced.Related to #15412, specifically the
DeepSeek-V4.1-Flash-1017-Uncensored-LoRA.gguffailure in Error 1. The publisher identifies this file as an adapter. This PR does not claim to resolve every error in that report. Approach coordinated before implementation.Validation on Windows, Python 3.12.5:
general.type=adapter, no context length, and no refusal before the fix. The same header now receives the base-model explanation.load_modelcoverage proving neither teardown nor weight download occurs for a rejected adapter./usr/bin/trueload test fails identically on the exact unchanged base because that executable is unavailable on Windows. The other failure was a 0.55-second timing bound under parallel load; serial replay passes on both base and branch. Each replay gives 1 passed and the same executable-related failure. Skips concern optionaldiffusersand unavailable filesystem permission behavior.The parser, guard and load method are real; tests isolate existing network/process boundaries. No GPU inference, applying the adapter to its base model or large-model hardware compatibility is claimed.