You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Studio: diffusion GGUF + unsupported gpu_ids/memory_mode is rejected only after Phase 1 teardown #7205
Follow-up from #7188 (which adds GGUF gpu_ids + memory_mode selection and rejects both for the single-GPU DiffusionGemma runner).
Limitation
LlamaCppBackend.load_model rejects the unsupported diffusion + gpu_ids / gguf_memory_mode combinations only after it has already run Phase 1 (_kill_process()), and the route may also unload an active model before calling in. Because _is_diffusion is derived from the GGUF header, which is read after the download phase (which itself is after Phase 1), the rejection cannot fire before the teardown:
/validate does not catch the diffusion + gpu_ids/memory_mode combination, and there is no pre-load diffusion signal at the route (llama_backend.is_diffusion reflects the currently loaded model, not the target).
Net effect: a request that ends in a 400 for an unsupported option can still tear down the currently serving model/session. No data is lost (the prior model can be reloaded), but the session is interrupted.
Moving the validation ahead of the teardown means either (a) reading GGUF metadata at the route before load (duplicating the in-load header read, and unavailable for -hf loads until download), or (b) delaying _kill_process() until after the metadata read, which keeps the old server alive across the download phase and reorders the lock/cancel semantics that Phase 1 currently relies on. Both are broader refactors than the targeted correctness fixes in #7188 and carry their own resource/locking risk, so they are tracked here rather than bundled into #7188.
Repro sketch
Load a normal chat model (llama-server or Unsloth) so a session is active.
/load a DiffusionGemma GGUF with gpu_ids=[0] (or gguf_memory_mode=resident).
Observe: the active model is torn down, then the request returns 400 for the unsupported option.
Activity
Merge main and fix header-dependent teardown + flag-alias gaps for PR u…
fix(studio): reject Vulkan diffusion gpu_ids before Phase 1 teardown (#…