Repository navigation
Closed
Labels
Description
- Did you update?
pip install --upgrade unsloth unsloth_zoo| Yes, and uninstall + restart + reinstall using ps1 ColaborKaggle| local- Number GPUs used, use
nvidia-smi| 1 - (5090) - Which notebook? Please link! | N/A
- Which Unsloth version, TRL version, transformers version, PyTorch version? | App v0.1.42-beta (2026.5.8), Transformers 5.3.0 pre-installed, cu130 (Windows 10), llama-server (version: 9371 (f12cc6d0f) | built with Clang 19.1.5 for Windows x86_64)
- Which trainer?
SFTTrainer,GRPOTrainer| N/A
Unsloth no longer loads models into GPU memory.
Previous update from around less than 1 week ago was working properly on windows, Updated today to the latest version and Unsloth will only load models into system memory rather than GPU memory which previously worked.
Tested with both my standard model and a smaller one, both failed to load into GPU.
Note: Manually running ".unsloth\llama.cpp\build\bin\Release\llama-server.exe" results in "device_info:" only CPU showing up, with CUDA0 missing.
Log:
INFO: Started server process [33460]
INFO: Waiting for application startup.
Hardware detected: CUDA -- NVIDIA GeForce RTX 5090
INFO: Application startup complete.
INFO: Unsloth Studio running on http://127.0.0.1:8888
...
TRIMMED
...
{"timestamp": "2026-05-28T01:04:11.273778Z", "level": "info", "event": "Detected remote GGUF repo 'unsloth/Qwen3.6-27B-MTP-GGUF', variant=UD-Q4_K_XL, vision=True"}
{"timestamp": "2026-05-28T01:04:11.285051Z", "level": "info", "event": "Loaded default model defaults from C:\\Users\\TRIMMED\\.unsloth\\studio\\unsloth_studio\\Lib\\site-packages\\studio\\backend\\assets\\configs\\model_defaults\\default.yaml"}{"timestamp": "2026-05-28T01:04:11.296554Z", "level": "info", "event": "request_completed", "method": "POST", "path": "/api/inference/validate", "status_code": 200, "process_time_ms": 140.19}
{"timestamp": "2026-05-28T01:04:11.455257Z", "level": "info", "event": "Detected remote GGUF repo 'unsloth/Qwen3.6-27B-MTP-GGUF', variant=UD-Q4_K_XL, vision=True"}
{"timestamp": "2026-05-28T01:04:11.678043Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/load-progress", "status_code": 200, "process_time_ms": 2.28}
{"timestamp": "2026-05-28T01:04:11.899469Z", "level": "info", "event": "Resolving GGUF: unsloth/Qwen3.6-27B-MTP-GGUF/Qwen3.6-27B-UD-Q4_K_XL.gguf"}
{"timestamp": "2026-05-28T01:04:11.955640Z", "level": "info", "event": "GGUF resolved from cache: C:\\Users\\TRIMMED\\.cache\\huggingface\\hub\\models--unsloth--Qwen3.6-27B-MTP-GGUF\\snapshots\\5cb35eb3dcbf52dbce5f87dbc64df6aaffadcace\\Qwen3.6-27B-UD-Q4_K_XL.gguf"}
{"timestamp": "2026-05-28T01:04:12.006341Z", "level": "info", "event": "Downloading mmproj: unsloth/Qwen3.6-27B-MTP-GGUF/mmproj-F16.gguf"}
{"timestamp": "2026-05-28T01:04:12.191459Z", "level": "info", "event": "GGUF metadata: context_length=262144"}
{"timestamp": "2026-05-28T01:04:12.191748Z", "level": "info", "event": "GGUF metadata: chat_template=8057 chars"}
{"timestamp": "2026-05-28T01:04:12.193004Z", "level": "info", "event": "GGUF metadata: model supports reasoning (enable_thinking)"}
{"timestamp": "2026-05-28T01:04:12.193496Z", "level": "info", "event": "GGUF metadata: model supports preserve_thinking"}
{"timestamp": "2026-05-28T01:04:12.194744Z", "level": "info", "event": "GGUF metadata: model supports tool calling"}
{"timestamp": "2026-05-28T01:04:12.255572Z", "level": "info", "event": "Context auto-reduced: 262144 -> 73472 (model: 16.7 GB, est. KV cache: 4.8 GB)"}
{"timestamp": "2026-05-28T01:04:12.255802Z", "level": "info", "event": "GGUF size: 16.7 GB, est. KV cache: 4.8 GB, context: 73472, GPUs free: [(0, 25849)], selected: [0], fit: False"}
{"timestamp": "2026-05-28T01:04:12.259883Z", "level": "info", "event": "Spec decoding: draft-mtp (MTP-only)"}
{"timestamp": "2026-05-28T01:04:12.260050Z", "level": "info", "event": "Reasoning model: {'enable_thinking': True} by default"}
{"timestamp": "2026-05-28T01:04:12.260592Z", "level": "info", "event": "Using mmproj for vision: C:\\Users\\TRIMMED\\.cache\\huggingface\\hub\\models--unsloth--Qwen3.6-27B-MTP-GGUF\\snapshots\\5cb35eb3dcbf52dbce5f87dbc64df6aaffadcace\\mmproj-F16.gguf"}
{"timestamp": "2026-05-28T01:04:12.261073Z", "level": "info", "event": "Starting llama-server: C:\\Users\\TRIMMED\\.unsloth\\llama.cpp\\build\\bin\\Release\\llama-server.exe -m C:\\Users\\TRIMMED\\.cache\\huggingface\\hub\\models--unsloth--Qwen3.6-27B-MTP-GGUF\\snapshots\\5cb35eb3dcbf52dbce5f87dbc64df6aaffadcace\\Qwen3.6-27B-UD-Q4_K_XL.gguf --port 1552 -c 73472 --parallel 1 --flash-attn on --no-context-shift -ngl -1 --threads -1 --jinja --spec-type draft-mtp --spec-draft-n-max 2 --chat-template-kwargs {\"enable_thinking\": true} --mmproj C:\\Users\\TRIMMED\\.cache\\huggingface\\hub\\models--unsloth--Qwen3.6-27B-MTP-GGUF\\snapshots\\5cb35eb3dcbf52dbce5f87dbc64df6aaffadcace\\mmproj-F16.gguf"}
...
TRIMMED
...
{"timestamp": "2026-05-28T01:09:20.818071Z", "level": "info", "event": "Detected remote GGUF repo 'unsloth/gemma-4-E2B-it-GGUF', variant=UD-Q4_K_XL, vision=True"}
{"timestamp": "2026-05-28T01:09:20.822577Z", "level": "info", "event": "Loaded default model defaults from C:\\Users\\TRIMMED\\.unsloth\\studio\\unsloth_studio\\Lib\\site-packages\\studio\\backend\\assets\\configs\\model_defaults\\default.yaml"}
{"timestamp": "2026-05-28T01:09:20.826764Z", "level": "info", "event": "request_completed", "method": "POST", "path": "/api/inference/validate", "status_code": 200, "process_time_ms": 134.76}
{"timestamp": "2026-05-28T01:09:20.988077Z", "level": "info", "event": "Detected remote GGUF repo 'unsloth/gemma-4-E2B-it-GGUF', variant=UD-Q4_K_XL, vision=True"}
{"timestamp": "2026-05-28T01:09:21.199856Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/inference/load-progress", "status_code": 200, "process_time_ms": 1.74}
{"timestamp": "2026-05-28T01:09:21.446047Z", "level": "info", "event": "Resolving GGUF: unsloth/gemma-4-E2B-it-GGUF/gemma-4-E2B-it-UD-Q4_K_XL.gguf"}
{"timestamp": "2026-05-28T01:09:21.487972Z", "level": "info", "event": "GGUF resolved from cache: C:\\Users\\TRIMMED\\.cache\\huggingface\\hub\\models--unsloth--gemma-4-E2B-it-GGUF\\snapshots\\90f9618340396838ee7ff5b0ba2da27da62953d3\\gemma-4-E2B-it-UD-Q4_K_XL.gguf"}
{"timestamp": "2026-05-28T01:09:30.142689Z", "level": "info", "event": "GGUF metadata: context_length=131072"}
{"timestamp": "2026-05-28T01:09:30.142908Z", "level": "info", "event": "GGUF metadata: chat_template=16804 chars"}
{"timestamp": "2026-05-28T01:09:30.144369Z", "level": "info", "event": "GGUF metadata: model supports reasoning (enable_thinking)"}
{"timestamp": "2026-05-28T01:09:30.145115Z", "level": "info", "event": "GGUF metadata: model supports tool calling"}
{"timestamp": "2026-05-28T01:09:30.200535Z", "level": "info", "event": "GGUF size: 3.0 GB, est. KV cache: 0.8 GB, context: 131072, GPUs free: [(0, 26561)], selected: [0], fit: False"}
{"timestamp": "2026-05-28T01:09:30.201061Z", "level": "info", "event": "Reasoning model: {'enable_thinking': True} by default"}
{"timestamp": "2026-05-28T01:09:30.202085Z", "level": "info", "event": "Using mmproj for vision: C:\\Users\\TRIMMED\\.cache\\huggingface\\hub\\models--unsloth--gemma-4-E2B-it-GGUF\\snapshots\\90f9618340396838ee7ff5b0ba2da27da62953d3\\mmproj-F16.gguf"}
{"timestamp": "2026-05-28T01:09:30.202582Z", "level": "info", "event": "Starting llama-server: C:\\Users\\TRIMMED\\.unsloth\\llama.cpp\\build\\bin\\Release\\llama-server.exe -m C:\\Users\\TRIMMED\\.cache\\huggingface\\hub\\models--unsloth--gemma-4-E2B-it-GGUF\\snapshots\\90f9618340396838ee7ff5b0ba2da27da62953d3\\gemma-4-E2B-it-UD-Q4_K_XL.gguf --port 2037 -c 131072 --parallel 1 --flash-attn on --no-context-shift -ngl -1 --threads -1 --jinja --spec-default --chat-template-kwargs {\"enable_thinking\": true} --mmproj C:\\Users\\TRIMMED\\.cache\\huggingface\\hub\\models--unsloth--gemma-4-E2B-it-GGUF\\snapshots\\90f9618340396838ee7ff5b0ba2da27da62953d3\\mmproj-F16.gguf"}
Activity
nand2 commentedon May 28, 2026
I confirm the following bug (windows - rtx 5090 - cuda 13.2)
Seems like we got the CPU-only version of llama-server.
mmathew23 commentedon May 28, 2026
@nand2 @windotsu
Could you try saving this script to a ps1 file and running to help debug?
This script inspects your GPU and checks which llama.cpp bundle the installer would pick, but it doesn't download, install, or change anything. It writes a redacted log that's safe to paste here.
To run it:
Save the attached unsloth-llama-resolve-debug.ps1 somewhere easy to find, like your Downloads folder. (If your browser saved it as .txt, rename it so it ends in .ps1.)
Open PowerShell — press Win + X and pick Windows PowerShell or Terminal.
Run it, pointing at wherever you saved it:
When it finishes it prints a path ending in .redacted.txt. Open that file, give it a quick skim, and attach it here.
noahterbest commentedon May 28, 2026
Confirmed this issue as well using 4090, windows 11. Cuda 13.2
The llamacpp build that is packaged with this update doesn't support CUDA. it's a CPU only build.
Rebuilding manually with a CUDA version fixed the issue for me.
mmathew23 commentedon May 28, 2026
@noahterbest would be great if you could run the diagnostic script above to help us resolve the issue so future updates are seamless on the gpu.
noahterbest commentedon May 28, 2026
Sure thing, here's my redacted output.
windotsu commentedon May 30, 2026
@mmathew23 unsloth-llama-resolve log
Studio: validate real GPU offload and stop silently shipping CPU-only…
Studio: warn when a GPU model silently loaded on CPU
Studio: warn when a GPU model silently loaded on CPU (#6339)
danielhanchen commentedon Jun 18, 2026
This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via
curl -fsSL https://unsloth.ai/install.sh | shfor Linux, Mac, WSL orirm https://unsloth.ai/install.ps1 | iexfor Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!