RAM – explained simply
RAM is the normal memory in your PC; it holds models while they load and steps in when the VRAM isn’t enough.
Also: RAM, System memory, Main memory
Before a model lands on the graphics card, it is usually loaded from the hard drive into RAM first. If it doesn’t fit completely in VRAM, part of it stays in RAM and is processed there by the CPU or in chunks by the GPU.
RAM is connected much more slowly than VRAM, but it’s much cheaper and easier to upgrade. Large image models consist of several parts: for example, the diffusers documentation lists about 50 GB of RAM and VRAM combined for FLUX when all components are loaded without compression. With quantization and offloading, it works with much less.
You notice too little RAM when Windows falls back to the paging file: the PC gets sluggish, and loading a model takes forever or fails.
What does that mean for you? For local AI, 32 GB of RAM is a comfortable amount; 16 GB works for a lot, but things get tight quickly with large models.
Related terms
Errors where that matters
- DefaultCPUAllocator: not enough memory: you tried to allocate (RAM full)
- HostBuffer.read_file_slice failed (crash caused by the new Dynamic VRAM memory management)
- LM Studio: This message contains no content. The AI has nothing to say. (Reply remains empty)
- Ollama: digest mismatch, file must be downloaded again (downloaded model file does not match the checksum)
- Ollama: llama runner process has terminated: exit status 0xc0000409 (model process crashed)
- Open WebUI: Ollama: 500, message='Internal Server Error' (Ollama reached, but model cannot respond)
- OSError: [WinError 1455] The paging file is too small for this operation to complete (Windows paging file is too small)