Free | No tracking | Every fact with a source|German and English

Error / Memory

Ollama: model requires more system memory

Ollama refuses to load the model because VRAM and RAM together are not enough.

The message

Error: model requires more system memory (42.8 GiB) than is available (12.9 GiB)

Affects: Ollama, Open WebUI

Why is this happening?

Before loading, Ollama estimates how much memory the model plus context buffer needs. The context buffer grows with the configured context length, so even a medium-sized model can fail if a program (for example, a frontend) requests a very large context. Other loaded models and open programs also use memory.

How to fix it

  1. Compare the two numbers in the message. If the required amount is far above the available memory, the model is simply too large: choose a smaller parameter size (for example, 8b instead of 70b) or stronger quantization.
  2. Lower the context length. In the terminal: in ollama run, enter the command /set parameter num_ctx 4096. In Open WebUI: Chat-Steuerung → Advanced Parameters → reduce num_ctx or leave it completely blank.
  3. Unload other models with ollama stop <modellname> and use ollama ps to check that nothing else is loaded anymore.
  4. Close memory-hungry programs (games, browsers with many tabs, image generators) and try again.
  5. Optional: Halve the context memory usage by setting the environment variable OLLAMA_KV_CACHE_TYPE to q8_0 and restarting Ollama. This only works if Flash Attention is enabled.

Better not: Making the Windows paging file huge hardly helps: even if the model loads then, it will be unusably slow.

Set up from scratch again

If it still doesn’t work after that, a fresh setup step by step often helps:

Terms for this

Similar errors

Sources

Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.