LM Studio: Model loading was stopped due to insufficient system resources
LM Studio stops loading because it estimates that the model needs more memory with the current settings than is free.
The message
Model loading was stopped due to insufficient system resources. Under the current settings, this model requires approximately 22.92 GB of memory …
Affects: LM Studio
Why is this happening?
LM Studio has a safety feature (Model loading guardrails) that prevents a model that is too large from freezing the PC. The estimate depends heavily on the set context length and GPU offload. Sometimes the estimate is also too cautious.
How to fix it
- Choose a smaller quantization or model size. LM Studio shows when downloading whether a variant is likely to fit in your memory.
- When loading, open the model’s loading settings and lower the Context Length, for example to 8192. This often saves several gigabytes.
- Check the GPU Offload in the same settings and enable Flash Attention if offered.
- If you’re sure there is enough memory free, you can choose “Load anyway” in the error message or relax the protection level in the settings under “Model loading guardrails”. Then expect the PC to hang if the estimate was correct after all.
- Update LM Studio to the latest version, because older versions had incorrect memory estimates for some models.
Better not: Do not turn off the guardrails permanently just to force a much too large model: that usually ends with a frozen PC or snail’s pace.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- LM Studio: Your First Local Chat
Install LM Studio on Windows, load a suitable language model, and chat offline, even with your own documents. - VRAM explained: why it decides everything
How much VRAM does local AI need? Rule of thumb, quantization (Q4, Q8, fp8), context, image and video models, offloading, and which card si…
Terms for this
Similar errors
- llama.cpp: CUDA error: out of memory
- Very slow responses because the model does not fit in VRAM
- LM Studio: Error loading model. (Exit code: …) Unknown error (model won’t load)
- LM Studio: This message contains no content. The AI has nothing to say. (Reply remains empty)
- LM Studio: Trying to keep the first … tokens when context the overflows (Input is longer than the configured context length)
Sources
- https://github.com/lmstudio-ai/lms/issues/499
- https://github.com/lmstudio-ai/lmstudio-bug-tracker/issues/1038
- https://lmstudio.ai/docs/app/advanced/per-model
- https://lmstudio.ai/docs/app/system-requirements
Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.