|
Total noob here, so please be patient. I'm trying to run a model. Llama comes back with "ggml_vulkan: Memory allocation of size 49152 failed." Does this mean I just don't have enough RAM? Is there something I can do to get things working? I am running off a laptop, but it has 32GB of RAM. If anyone who is patient enough to help me out needs more info, just ask (and be prepared to tell me how to get it). Thanks in advance! Edit 1: I was told that the name of the model and the exact error are important information. The model is c4ai-command-a-03-2025-Q3_K_L, a quantized GGUF version of Cohere's Command A. The exact error is |
Replies: 1 comment 1 reply
|
48 KiB is a very small allocation. Your 32 GB of system RAM is not the limit. The Vulkan backend allocates on the GPU, and the memory of the GPU is already full. Try this first Run on the CPU only: Or give the GPU fewer layers:
Look at your device Add For the exact cause The backend writes a second line directly after the line that you sent: The second line names the cause, for example |
48 KiB is a very small allocation. Your 32 GB of system RAM is not the limit. The Vulkan backend allocates on the GPU, and the memory of the GPU is already full.
Try this first
Run on the CPU only:
Or give the GPU fewer layers:
-nglhas the default valueauto. Thus llama.cpp tries to put as many layers as possible on the GPU. On a laptop GPU this attempt is often too large.Look at your device
Add
--list-devicesto your command. It prints each device and the free memory of that device. Compare that value with the size of your model file. The model must be smaller than the free memory.For the exact cause
The backend writes a second line directly after the line that you…