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
- Open Task Manager (
Strg+Umschalt+Esc) → “Performance” → “Memory” and watch how full the RAM gets while loading or computing. - Close other programs that use a lot of RAM (browser, second AI program), and restart the process.
- Reduce memory usage: smaller batch size, lower resolution, or less data at once.
- Use a smaller or more heavily compressed model variant (for example fp8 or GGUF instead of fp16) so less RAM is needed when loading.
- 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.
- 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:
- 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
- No matching distribution found for torch (wrong Python version)
- RuntimeError: CUDA error: an illegal memory access was encountered – the graphics card accessed invalid memory
- UserWarning: Torch was not compiled with flash attention – usually harmless on Windows
- 'python' is not recognized or opens the Microsoft Store
- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate – Python does not trust the certificate (often a company proxy or antivirus)
Sources
- https://discuss.pytorch.org/t/cpuallocator-cpp-76-data-defaultcpuallocator-not-enough-memory/140234
- https://discuss.pytorch.org/t/result-torch-c-nn-leaky-relu-input-negative-slope-runtimeerror-enforce-fail-at-c10-core-cpuallocator-cpp-79-data-defaultcpuallocator-not-enough-memory-you-tried-to-allocate-754974720-bytes/125286
- https://huggingface.co/THUDM/chatglm2-6b/discussions/82
- https://runaihome.com/blog/comfyui-paging-file-too-small-os-error-1455-fix-2026/
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.