LM studio load failed

#19
by jiayu186 - opened
🥲 加载模型失败 model loading failed

Error loading model.

(Exit code: null). Please check settings and try loading the model again.  not sure what's happened?how to fix

Hey, sorry it's giving you trouble! 🥲 That "Error loading model (Exit code: null)" in LM Studio almost always means
the runtime is too old to load this architecture — these are Gemma 4 (gemma4_unified), which only loads on a recent
llama.cpp build.

Quick fix:

  1. Update LM Studio itself to the latest version.
  2. Open the Runtime / inference-engine settings and update the llama.cpp runtime to the newest one — older bundled
    runtimes simply don't recognize gemma4_unified.
  3. Reload the model.

That clears it up the vast majority of the time. If it still won't load after updating:

  • Try a smaller quant (or lower the context length / GPU-offload layers) — "exit code null" can also be an
    out-of-memory crash if the model's a bit big for your RAM/VRAM.
  • Re-download the GGUF in case the file came down incomplete.

If none of that does it, just tell me your LM Studio version, which quant you grabbed, your OS, and your RAM/VRAM, and
I'll help you pin it down. 🙏

Sign up or log in to comment