Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Error fixes / LM Studio error loading model
Fix · LM Studio

LM Studio: Error loading model

Fix: open the model's load settings, turn GPU offload down (or off) and lower the context length, then load it again. If every model fails, press Ctrl+Shift+R (Cmd+Shift+R on a Mac) to open LM Runtimes and update or change the runtime. The exit code alone tells you little; the logs name the real failure.

What you see

Failed to load the model

Error loading model.

(Exit code: 18446744072635812000). Unknown error. Try a different model and/or config.

Two other forms reported in LM Studio's official bug tracker:

error loading model: error loading model architecture: unknown model architecture: 'qwen35'

Error loading model.
(Exit code: 6). Please check settings and try loading the model again.

Check the basics first

  • Mac: Apple Silicon (M1 to M4) only, macOS 13.4 or newer, and macOS 14.0 or newer for MLX models. Intel Macs are not supported. On 8 GB Macs, LM Studio's docs advise smaller models and modest context sizes.
  • Windows: x64 CPUs need AVX2; ARM (Snapdragon X Elite) is supported. At least 16 GB of RAM is recommended.
  • Linux: the AppImage needs Ubuntu 20.04 or newer, x64 only.

Causes and fixes

ClueLikely causeFix
Small models load, big ones or long contexts don'tNot enough VRAM or RAM for the model at those settings; reporters in #297 got loads working by lowering GPU offloadLower GPU offload and context length (next section)
unknown model architectureThe model is newer than your llama.cpp runtimeLM Runtimes → update the runtimes (worked for the reporter in #1606)
Every model fails right after a macOS or app update (Exit code: 6)Broken runtime installCmd+Shift+R, click Fix, wait, load again (an LM Studio maintainer's advice in #1223)
Logs show CUDA error: no kernel image is availableThe GPU runtime doesn't support that cardIn LM Runtimes pick the CPU llama.cpp runtime (maintainer advice in #297); it loads, but runs on the CPU
AMD GPU with Vulkan, Exit code: 18446744073709515000Open issue #412A maintainer asked reporters to try a newer llama runtime from the Beta channel in LM Runtimes; reporters say CPU still works
Fails only while another model is loadedReported in #1606Eject the loaded model in the Chat tab first (user report in #1606)

Lower GPU offload and context length

In the app, you can change the load settings in the load dialog before the model loads, and save them as that model's defaults: GPU offload, context size and Flash Attention. From the command line:

lms ls                                            # find the model key
lms load <model_key> --gpu off                    # CPU only
lms load <model_key> --gpu 0.5 --context-length 4096

--gpu takes a fraction from 0 to 1, off or max. Leave it out and LM Studio decides how much to offload.

Read the real error

An LM Studio maintainer gave these steps in issue #297 (January 2025, so menu names may have moved since): turn on verbose logging under Developer → server settings, press Ctrl+Shift+J to open the logs, then load the model again. The lines just before the failure usually name it: a CUDA or Vulkan error, an unknown architecture, or a memory allocation.

Still failing?

  • Take the error's own advice: try another quantization or a smaller model of the same family. If that loads, the first one was too large for your settings.
  • Try a different runtime in LM Runtimes (CPU, CUDA or Vulkan on Windows and Linux). If only CPU works, the GPU path is the problem.
  • Open an issue at github.com/lmstudio-ai/lmstudio-bug-tracker with your LM Studio version, OS, runtime version and the log lines around the failure.

Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review

FAQ

What does 'Exit code: 18446744072635812000' mean in LM Studio?

LM Studio's docs don't explain individual exit codes. Treat it as 'the model process crashed' and read the logs, which show the actual error.

How do I open LM Runtimes?

Press Ctrl+Shift+R on Windows and Linux, or Cmd+Shift+R on a Mac.

Does LM Studio run on Intel Macs?

No. LM Studio's system requirements list Apple Silicon only, with macOS 13.4 or newer.

How do I load an LM Studio model with less GPU memory?

Lower GPU offload and context length in the load settings, or use lms load <model_key> --gpu 0.5 --context-length 4096, or --gpu off for CPU only.

Related errors

Sources

Read 30 Nov 2026. These tools change often: if a step no longer matches, the linked page wins.

Related free tools