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
[Bug] Loading gemma-4-12B yields "Failed to load model: llama-server failed to start. Check that the GGUF file is valid and you have enough memory." #5981
I'm trying to load unsloth/gemma-4-12b-it-GGUF UD-Q4_K_XL within Unsloth Studio (Google Colab), unforuntately I'm getting "Failed to load model: llama-server failed to start. Check that the GGUF file is valid and you have enough memory."
Note: Please do not remove the questions. Answer beside them.
Did you update? pip install --upgrade unsloth unsloth_zoo: yes
I can't get it to load after updates, trying smaller sizes, and restarting the computer. All get the same error. Tried lmstudio version as well
load_model: [mtmd] failed to get memory usage of mmproj\n0.00.295.413 I common_init_result: fitting params to device memory ...\n0.00.295.418 I common_init_result: (for bugs during this step try to reproduce them with -fit off, or provide --verbose logs if the bug only occurs with -fit on)\n0.05.183.711 W load: control-looking token: 50 '<|tool_response>' was not control-type; this is probably a bug in the model. its type will be overridden\n0.05.184.204 W load: control-looking tok"}
{"timestamp": "2026-06-05T00:26:35.490525Z", "level": "error", "event": "Error loading model: llama-server failed to start. Check that the GGUF file is valid and you have enough memory."
I have the same issue, it seems to be related to how unsloth starts llama.cpp server:
Unsloth starts llama with these arguments, and fails. If I try to start it myself with the same arguments, same error :
llama-server.exe -m gemma-4-E2B-it-UD-Q4_K_XL.gguf --port 52070 -c 131072 --parallel 1 --flash-attn on --no-context-shift -ngl -1 --threads -1 --jinja --spec-default --chat-template-kwargs {"enable_thinking": true} --mmproj mmproj-F16.gguf
If i try directly with these parameters, it starts (so basically removing --mmproj and replace enable thinking with --reasoning on)
lama-server.exe -m gemma-4-12b-it-UD-Q4_K_XL.gguf --port 8080 -c 131072 --parallel 1 --flash-attn on --no-context-shift -ngl -1 --threads -1 --jinja --spec-default --reasoning on
Activity
jacoballen55 commentedon Jun 4, 2026
do you have any model in downloading...i had the same error when i had model downloading and its bloody slow after the update
Imagineer99 commentedon Jun 4, 2026
Which GPU are you using in colab? Seems to work for me with T4.
asmith26 commentedon Jun 4, 2026
Many thanks @Imagineer99 can confirm this now works since I last tried
JamesHutchison commentedon Jun 5, 2026
I can't get it to load after updates, trying smaller sizes, and restarting the computer. All get the same error. Tried lmstudio version as well
load_model: [mtmd] failed to get memory usage of mmproj\n0.00.295.413 I common_init_result: fitting params to device memory ...\n0.00.295.418 I common_init_result: (for bugs during this step try to reproduce them with -fit off, or provide --verbose logs if the bug only occurs with -fit on)\n0.05.183.711 W load: control-looking token: 50 '<|tool_response>' was not control-type; this is probably a bug in the model. its type will be overridden\n0.05.184.204 W load: control-looking tok"}
{"timestamp": "2026-06-05T00:26:35.490525Z", "level": "error", "event": "Error loading model: llama-server failed to start. Check that the GGUF file is valid and you have enough memory."
azerberakanat commentedon Jun 5, 2026
Same error on local with Nvdia RTX 5070TI 16GB VRAM
Yes I updated it
G4l4ctik commentedon Jun 5, 2026
I have the same issue, it seems to be related to how unsloth starts llama.cpp server:
Unsloth starts llama with these arguments, and fails. If I try to start it myself with the same arguments, same error :
llama-server.exe -m gemma-4-E2B-it-UD-Q4_K_XL.gguf --port 52070 -c 131072 --parallel 1 --flash-attn on --no-context-shift -ngl -1 --threads -1 --jinja --spec-default --chat-template-kwargs {"enable_thinking": true} --mmproj mmproj-F16.gguf
If i try directly with these parameters, it starts (so basically removing --mmproj and replace enable thinking with --reasoning on)
lama-server.exe -m gemma-4-12b-it-UD-Q4_K_XL.gguf --port 8080 -c 131072 --parallel 1 --flash-attn on --no-context-shift -ngl -1 --threads -1 --jinja --spec-default --reasoning on