Skip to content

[Bug] Loading gemma-4-12b-it-GGUF UD-Q4_K_XL throws "Failed to load model: llama-server failed to start. Check that the GGUF file is valid and you have enough memory. #6022

Closed

Description

@azerberakanat

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

  1. Did you update? pip install --upgrade unsloth unsloth_zoo -> yes
  2. Colab or Kaggle or local / cloud -> local
  3. Number GPUs used, use nvidia-smi -> 1 x Nvidia RTX 5070TI 16 GB
  4. Which notebook? Please link!
  5. Which Unsloth version, TRL version, transformers version, PyTorch version?
    Unsloth : 2026.6.1
    Transformers: 4.57.6
    TRL : 0.23.1
    PyTorch : 2.10.0+cu130
    CUDA : 13.0
  6. Which trainer? SFTTrainer, GRPOTrainer etc
Put Minimal code to reproduce error here ###Remove Hugging Face token###
###Please make sure to check formatting properly, edit if needed.###

🦥 You can also ask via our Reddit page: https://reddit.com/r/unsloth/

Activity

  1. changed the title [-][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."[/-] [+][Bug] Loading gemma-4-12b-it-GGUF UD-Q4_K_XL throws "Failed to load model: llama-server failed to start. Check that the GGUF file is valid and you have enough memory.[/+] on Jun 5, 2026
  2. TheSleepySlee commented on Jun 8, 2026

    @TheSleepySlee

    I have the same issue, with 5060TI 16GB. Using docker version, running on WSL/Windows.
    Is this a dup of #5981 ?

  3. lothus commented on Jun 9, 2026

    @lothus

    I can replicate on docker/podman on Arch Linux A4000 Gen 1 with 16GB of RAM .

  4. Imagineer99 commented on Jun 9, 2026

    @Imagineer99
    Member

    Having a difficult time trying to repro this one.

    Is it possible if you guys can share console logs via pastebin for before/after this error occurs? Would greatly appreciate it.

  5. Imagineer99 commented on Jun 9, 2026

    @Imagineer99
    Member

    Also what is the output you get when running.
    ~/.unsloth/llama.cpp/build/bin/Release/llama-server.exe --version

  6. azerberakanat commented on Jun 9, 2026

    @azerberakanat
    Author

    Also what is the output you get when running. ~/.unsloth/llama.cpp/build/bin/Release/llama-server.exe --version

    PS C:\Windows\system32> ~/.unsloth/llama.cpp/build/bin/Release/llama-server.exe --version
    version: 9360 (6b4e4bd58)
    built with Clang 19.1.5 for Windows x86_64

  7. azerberakanat commented on Jun 9, 2026

    @azerberakanat
    Author

    Having a difficult time trying to repro this one.

    Is it possible if you guys can share console logs via pastebin for before/after this error occurs? Would greatly appreciate it.

    Copy pasted all the logs, main error is at the bottom.

    https://pastebin.com/7WxEEpT1

    If it helps I can run 12b qat model on my PC via following these steps

    1. Downloaded latest llama.cpp with cuda 12.4
      https://github.com/ggml-org/llama.cpp/releases/latest/download/llama-b9574-bin-win-cuda-12.4-x64.zip"

    2. then downloaded BF16 version of the mmproj
      (because unsloth was pulling standart F16 and it wasn't working with the QAT version)
      https://huggingface.co/unsloth/gemma-4-12B-it-qat-GGUF/blob/main/mmproj-BF16.gguf

    and I launch llama-server using these arguments

    C:\Gemma4Server\llama-server.exe `
      -m C:\Users\azerb\.cache\huggingface\hub\models--unsloth--gemma-4-12B-it-qat-GGUF\snapshots\ceadd70e5c46c5a839a7fd622307dabe8fdea551\gemma-4-12B-it-qat-UD-Q4_K_XL.gguf `
      --mmproj C:\Users\azerb\.cache\huggingface\hub\models--unsloth--gemma-4-12B-it-qat-GGUF\snapshots\ceadd70e5c46c5a839a7fd622307dabe8fdea551\mmproj-BF16.gguf `
      --port 8888 `
      -c 131072 `
      -n 8192 `
      -ngl -1 `
      --flash-attn on
    
  8. self-assigned this
    on Jun 10, 2026
  9. VGerris commented on Jul 22, 2026

    @VGerris

    I believe this is caused by ( installer output ):

      [WARN] gfx1150 (Strix) detected -- routing to the AMD arch-specific index
      [WARN] torch 2.11+rocm7.13 has AMD's real gfx1150/gfx1151 fixes (the ROCm 7.1
      [WARN] _grouped_mm segfault, moe_utils.py:167, and later Strix kernel bugs),
      [WARN] and is more reliable than the rocm7.2 index or an offline Radeon repo.
    
                     existing install has torch 2.11.0+cu130 -- keeping it (set UNSLOTH_TORCH_UPGRADE=1 to get the newest release)
      gpu            AMD ROCm (gfx1150)
                     ROCm: /opt/rocm
                     hipconfig: 7.1.52801-9999
                     GPU: AMD Ryzen AI 9 HX 470 w/ Radeon 890M
                     wheels: https://repo.amd.com/rocm/whl/gfx1150/
                     installing PyTorch (https://repo.amd.com/rocm/whl/gfx1150/)...
                     installing bitsandbytes for AMD ROCm (pre-release, PR #1887)...
                     installing unsloth (this may take a few minutes)...
      unsloth        2026.7.4 installed
      setup          running unsloth studio update...
    

    Work arounds:

    I get about 23 tokens per second on the build of the binary that is enabled with a cuda card plugged on Qwen3.6 equivalent quant, which seems ok.

    ( a side issue seems to be that the 890M card does not show up as AMD card for training ).

    I hope this helps, looking forward to a fix, I love Unsloth Studio, thank you !

  10. danielhanchen commented on Sep 6, 2026

    @danielhanchen
    Member

    Fixed! If the projector fails we retry it on CPU, then fall back to text only, instead of failing the load. Getting vision back needs a newer llama.cpp: unsloth studio update, or in Docker docker exec <container> unsloth-llama-update.

    To update: the desktop app updates itself (Settings > General), otherwise unsloth studio update, or in Docker docker exec <container> unsloth-studio-update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions