Skip to content

[Bug] [Windows11] unsloth studio run: server did not become healthy within 30 seconds when loading large GGUF model #5635

Closed

Description

@Aeriius

When launching Unsloth Studio with a large GGUF model, it appears that Studio pre-caches a helper GGUF at startup, even when a different model is explicitly specified with --model. This may contribute to the server not becoming healthy within the 30-second window, especially when loading a large local model.

The issue I observe is:

Error: server did not become healthy within 30 seconds.

From the logs, it seems that Studio first pre-caches:

unsloth/gemma-4-E2B-it-GGUF/gemma-4-E2B-it-UD-Q4_K_XL.gguf

and only then continues with the requested model startup.

Steps to reproduce
Run the following command:

unsloth studio run --model unsloth/Qwen3.6-35B-A3B-MTP-GGUF --gguf-variant UD-Q4_K_XL -H 192.168.1.138 -p 8001

Observe the startup logs.

The following helper GGUF appears to be pre-cached during startup:

Pre-caching helper GGUF: unsloth/gemma-4-E2B-it-GGUF/gemma-4-E2B-it-UD-Q4_K_XL.gguf

The launch then fails with:

Error: server did not become healthy within 30 seconds.

Expected behavior
It seems reasonable that Studio should either:

avoid pre-caching an unrelated helper GGUF when a model is explicitly specified, or expose a configurable health-check timeout for large models that may take longer than 30 seconds to become ready.

Actual behavior
From what I can see, Studio pre-caches the helper GGUF on every startup, and deleting it locally does not prevent it from being fetched again. This may increase startup time enough to trigger the health-check timeout, especially when the target model is large.

Relevant logs
CLI startup

INFO: Started server process [14660] INFO: Waiting for application startup. Hardware detected: CUDA -- NVIDIA GeForce RTX 5070 Ti INFO: Application startup complete. INFO: Unsloth Studio running on [http://192.168.1.138:8001](http://192.168.1.138:8001) (To stop: press Ctrl+C -- on macOS, Control+C not Command+C) Starting Unsloth Studio... {"timestamp": "2026-05-19T21:52:38.894039Z", "level": "info", "event": "Pre-caching helper GGUF: unsloth/gemma-4-E2B-it-GGUF/gemma-4-E2B-it-UD-Q4_K_XL.gguf"} {"timestamp": "2026-05-19T21:52:39.033349Z", "level": "info", "event": "Helper GGUF cached: 1 file(s)"} Error: server did not become healthy within 30 seconds.

Model loading from the UI
When loading the model from the Studio interface, the backend appears to resolve the requested model from the local Hugging Face cache, downloads mmproj, and then starts llama-server:

{"timestamp": "2026-05-19T22:08:59.705918Z", "level": "info", "event": "request_completed", "method": "POST", "path": "/api/inference/validate", "status_code": 200, "process_time_ms": 355.87} {"timestamp": "2026-05-19T22:09:00.086473Z", "level": "info", "event": "Detected remote GGUF repo 'unsloth/Qwen3.6-35B-A3B-MTP-GGUF', variant=UD-Q4_K_XL, vision=True"} {"timestamp": "2026-05-19T22:09:00.086473Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/load-progress", "status_code": 200, "process_time_ms": 0.03} {"timestamp": "2026-05-19T22:09:00.681635Z", "level": "info", "event": "Resolving GGUF: unsloth/Qwen3.6-35B-A3B-MTP-GGUF/Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf"} {"timestamp": "2026-05-19T22:09:00.842013Z", "level": "info", "event": "GGUF resolved from cache: C:\\Users\\Chay\\.cache\\huggingface\\hub\\models--unsloth--Qwen3.6-35B-A3B-MTP-GGUF\\snapshots\\...\\Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf"} {"timestamp": "2026-05-19T22:09:00.992469Z", "level": "info", "event": "Downloading mmproj: unsloth/Qwen3.6-35B-A3B-MTP-GGUF/mmproj-F16.gguf"} {"timestamp": "2026-05-19T22:09:01.211201Z", "level": "info", "event": "GGUF metadata: context_length=262144"} {"timestamp": "2026-05-19T22:09:01.211201Z", "level": "info", "event": "GGUF metadata: chat_template=8057 chars"} {"timestamp": "2026-05-19T22:09:01.211201Z", "level": "info", "event": "GGUF metadata: model supports reasoning (enable_thinking)"} {"timestamp": "2026-05-19T22:09:01.211201Z", "level": "info", "event": "GGUF metadata: model supports preserve_thinking"} {"timestamp": "2026-05-19T22:09:01.211201Z", "level": "info", "event": "GGUF metadata: model supports tool calling"} {"timestamp": "2026-05-19T22:09:01.245983Z", "level": "info", "event": "Context auto-reduced: 262144 -> 4096 (model: 21.3 GB, est. KV cache: 0.1 GB)"} {"timestamp": "2026-05-19T22:09:01.245983Z", "level": "info", "event": "GGUF size: 21.3 GB, est. KV cache: 0.1 GB, context: 4096, GPUs free: [(0, 15362)], selected: None, fit: True"} {"timestamp": "2026-05-19T22:09:01.245983Z", "level": "info", "event": "Spec decoding: draft-mtp (MTP-only)"} {"timestamp": "2026-05-19T22:09:01.245983Z", "level": "info", "event": "Reasoning model: {'enable_thinking': False} by default"} {"timestamp": "2026-05-19T22:09:01.245983Z", "level": "info", "event": "Using mmproj for vision: C:\\Users\\Chay\\.cache\\huggingface\\hub\\models--unsloth--Qwen3.6-35B-A3B-MTP-GGUF\\snapshots\\...\\mmproj-F16.gguf"} {"timestamp": "2026-05-19T22:09:01.245983Z", "level": "info", "event": "Starting llama-server: C:\\Users\\Chay\\.unsloth\\llama.cpp\\build\\bin\\Release\\llama-server.exe -m ... --port 60300 --ctx-size 4096 --parallel 1 --flash-attn on --no-context-shift --jit on --threads -1 --jina --spec-type draft-mtp --spec-draft-n-max 2 --chat-template-kvargs ... --enable_thinking false --mmproj ..."}

From these logs, it looks like the requested model is found correctly, but the startup may still exceed the health-check window before the service is considered ready.

System information
Note: Please do not remove the questions. Answer beside them.

Did you update? pip install --upgrade unsloth unsloth_zoo
Yes

Colab or Kaggle or local / cloud
Local

Number GPUs used, use nvidia-smi
1x
NVIDIA-SMI 595.97 | Driver Version: 595.97 | CUDA Version: 13.2 | NVIDIA GeForce RTX 5070 Ti WDDM

Which notebook? Please link!
Ryzen 7 7800X3D | 64Go DDR5 | RTX 5070 Ti 16go

Which Unsloth version, TRL version, transformers version, PyTorch version?
Unsloth 2026.4.8

Which trainer? SFTTrainer, GRPOTrainer etc
No trainer, just loading a model

Additional note
I’m not certain whether the helper GGUF pre-caching is the root cause, but it seems to be part of the startup path and may be contributing to the timeout when loading large models.

Thanks for your awesome work

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions