llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Eval bug: Unknown error is always treated as out of memory

Open karambaso opened this issue 1 week ago • 0 comments

Name and Version

b12608

Operating systems

Linux

GGML backends

CUDA

Hardware

Tesla V100

Models

Qwen3_8_Flash_Next_think_GSQ_RCO_IQ3_S

Problem description & steps to reproduce

When running the Qwen3_8_Flash_Next_think_GSQ_RCO_IQ3_S on more than one GPU with parallel queries the out of memory error happens regularly. More parallel jobs lead to quicker failure. The nvidia-smi log of available memory shows that the free memory is always present. Even when the context limit is decreased (it increases the free memory) the error still manifests itself. The free memory size (the largest tried) was about 770 Mb when the out of memory error happened, with smaller reserves always happens the same. At the moment the error happened with one particular GPU. There was a hypothesis about problematic GPU memory, to exclude it the order of GPUs was changed, as a result another GPU now fails with the same error. The difference is the only layer's content in the memory and the way it is processed. However, when more reserve memory is available the error happens later. Because of the large free memory reserve and identical behavior on different GPUs it seems that another problem is treated as out of memory. There are many memory problems possible (like ECC errors, etc), may be it worth to handle them more specifically instead of the general failure with incorrect description. Another possibility is a programmatic error that is hidden behind a single way of handling many types of errors. Then still the specificity is needed, but it sees that it is missing.

First Bad Commit

No response

Relevant log output

Logs
Error: CUDA error: out of memory
Error:   current device: 1, in function alloc at llama.cpp-b12608/ggml/src/ggml-cuda/ggml-cuda.cu:729
Error:   cuMemCreate(&handle, reserve_size, &prop, 0)
llama.cpp-b12608/ggml/src/ggml-cuda/ggml-cuda.cu:119: CUDA error

karambaso avatar Nov 21 '26 14:11 karambaso