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
| Clue | Likely cause | Fix |
|---|---|---|
| Small models load, big ones or long contexts don't | Not enough VRAM or RAM for the model at those settings; reporters in #297 got loads working by lowering GPU offload | Lower GPU offload and context length (next section) |
unknown model architecture | The model is newer than your llama.cpp runtime | LM 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 install | Cmd+Shift+R, click Fix, wait, load again (an LM Studio maintainer's advice in #1223) |
Logs show CUDA error: no kernel image is available | The GPU runtime doesn't support that card | In 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: 18446744073709515000 | Open issue #412 | A 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 loaded | Reported in #1606 | Eject 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
- Ollama: CUDA error: out of memory
- Ollama: context deadline exceeded / pull model manifest
- ollama: command not found
Sources
Read 30 Nov 2026. These tools change often: if a step no longer matches, the linked page wins.
- LM Studio docs: System requirements: lmstudio.ai/docs/app/system-requirements
- LM Studio docs: About LM Studio (runtimes shortcut): lmstudio.ai/docs/app
- LM Studio docs: Per-model default load settings: lmstudio.ai/docs/app/advanced/per-model
- LM Studio docs: lms load: lmstudio.ai/docs/cli/local-models/load
- lmstudio-ai/lmstudio-bug-tracker issue #297 (Error loading model, maintainer replies): github.com/lmstudio-ai/lmstudio-bug-tracker/issues/297
- lmstudio-ai/lmstudio-bug-tracker issue #412 (exit code 18446744073709515000, AMD Vulkan): github.com/lmstudio-ai/lmstudio-bug-tracker/issues/412
- lmstudio-ai/lmstudio-bug-tracker issue #1223 (Exit code 6 after macOS update): github.com/lmstudio-ai/lmstudio-bug-tracker/issues/1223
- lmstudio-ai/lmstudio-bug-tracker issue #1606 (unknown model architecture): github.com/lmstudio-ai/lmstudio-bug-tracker/issues/1606
- LLM API cost checker: find LLM calls with no limits or retries capped
- reviewready CLI: one command that checks an AI app repo before it ships
- MCP config checker: scan your mcp.json for hard-coded tokens, unpinned servers and risky access