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

Error / Memory

DefaultCPUAllocator: not enough memory: you tried to allocate (RAM full)

PyTorch wanted to allocate a chunk of regular RAM and couldn’t get any more.

The message

RuntimeError: [enforce fail at ..\c10\core\impl\alloc_cpu.cpp:72] data. DefaultCPUAllocator: not enough memory: you tried to allocate 754974720 bytes.

Affects: Python, TextGen (text-generation-webui)

Why is this happening?

The error affects the PC’s RAM, not the VRAM — there is a separate message for that, “CUDA out of memory”. It occurs when a model runs on the CPU or is first loaded completely into RAM or converted while loading. The number at the end shows how many bytes were requested last (754974720 bytes is about 720 MB); even a small block like that fails if the RAM was almost full before.

How to fix it

  1. Open Task Manager (Strg+Umschalt+Esc) → “Performance” → “Memory” and watch how full the RAM gets while loading or computing.
  2. Close other programs that use a lot of RAM (browser, second AI program), and restart the process.
  3. Reduce memory usage: smaller batch size, lower resolution, or less data at once.
  4. Use a smaller or more heavily compressed model variant (for example fp8 or GGUF instead of fp16) so less RAM is needed when loading.
  5. As a workaround, you can increase the paging file (see the “WinError 1455” entry). That can prevent the crash, but it makes everything much slower.
  6. In the long run, only more RAM or a model that fits your memory will help.

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 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.