Skip to content

[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

Closed

Description

@asmith26

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."

Image Image

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: Both
  3. Number GPUs used, use nvidia-smi: Colab
  4. Which notebook? Please link! https://colab.research.google.com/github/unslothai/unsloth/blob/main/studio/Unsloth_Studio_Colab.ipynb
  5. Which Unsloth version, TRL version, transformers version, PyTorch version?: Colab
  6. Which trainer? SFTTrainer, GRPOTrainer etc: N/A

Activity

  1. jacoballen55 commented on Jun 4, 2026

    @jacoballen55

    do you have any model in downloading...i had the same error when i had model downloading and its bloody slow after the update

  2. Imagineer99 commented on Jun 4, 2026

    @Imagineer99
    Member
    Image

    Which GPU are you using in colab? Seems to work for me with T4.

  3. asmith26 commented on Jun 4, 2026

    @asmith26
    Author

    Many thanks @Imagineer99 can confirm this now works since I last tried

  4. JamesHutchison commented on Jun 5, 2026

    @JamesHutchison

    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."

  5. azerberakanat commented on Jun 5, 2026

    @azerberakanat

    Same error on local with Nvdia RTX 5070TI 16GB VRAM

    Yes I updated it

  6. G4l4ctik commented on Jun 5, 2026

    @G4l4ctik

    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

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

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