You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ggml_new_tensor_impl: not enough space in the scratch memory pool (needed 546644800, available 536870912) Segmentation fault #356
This happens (so far) only with these models:
Wizard-Vicuna-30B-Uncensored.ggmlv3.q8_0.bin
WizardLM-30B-Uncensored.ggmlv3.q8_0.bin
based-30b.ggmlv3.q8_0.bin
Larger 65B models work fine. It could be something related to how these models are made, I will also reach out to @ehartford
I was running my usual code on the CPU and restarting it to tweak the results when this error came up. I made no code changes, only to context length, I reduced it as it was exceeding the 2048 token limit.
Update. The issue resolves on reboot so there is some memory leak in the code.
This error would likely resolve if I restart wsl2, but it is messy for me to do that due to needing to remount my ext4 partitions, and I do not think that particular data point is as significant.
Update. The issue resolves on reboot so there is some memory leak in the code.
This error would likely resolve if I restart wsl2, but it is messy for me to do that due to needing to remount my ext4 partitions, and I do not think that particular data point is as significant.
Hey but for a commercial application we can't afford to have it like this right ? This is happening with me on groovy 1.3 . Even that only on some OS like RHEL. It's really frustrating and difficult to deal with this
Hey but for a commercial application we can't afford to have it like this right ? This is happening with me on groovy 1.3 . Even that only on some OS like RHEL. It's really frustrating and difficult to deal with this
Facebook did not release their llama models for commercial application.
Did you pay for a license for any of the models or llama inference code you are using?
Hi @vmajor — drive-by triage note, not a maintainer.
The repro here uses .ggmlv3.q8_0.bin model files on llama-cpp-python 0.1.59. Both pieces are now obsolete:
llama.cpp dropped the GGML format in favor of GGUF in August 2023 (upstream PR GGUF ggml-org/llama.cpp#2398). The current llama_cpp/llama.py only loads GGUF model files (see the "loading the first file of a sharded GGUF loads all remaining shard files" block).
Current README only documents GGUF model paths and installs.
Your own comment in this thread already pointed at llama.cpp as the source ("It seems to be a llama.cpp issue.")
Since the scratch-pool error path was internal to the old GGML code, it can't be reproduced against a current build. If you (or anyone subscribed) still hit something analogous with a GGUF model on a recent release (0.3.x), a fresh issue with the new repro would be much easier to action than this one.
Otherwise this is probably safe to close as obsolete.
Disclosure: I'm Jean-Baptiste Braun (data engineer, GCP/Python). This comment was drafted with the help of an AI coding assistant (Claude), then reviewed and edited by me. Posting from a small open-source backlog-triage pass — not affiliated with the project. Happy to delete if unwelcome.
Activity
ehartford commentedon Jun 10, 2023
Standing by!
vmajor commentedon Jun 10, 2023
It seems to be a llama.cpp issue. I found it mentioned regarding starcoder models too. I think you can carry on :)
vmajor commentedon Jun 10, 2023
Update. The issue resolves on reboot so there is some memory leak in the code.
This error would likely resolve if I restart wsl2, but it is messy for me to do that due to needing to remount my ext4 partitions, and I do not think that particular data point is as significant.
eshaanagarwal commentedon Jun 13, 2023
Hey but for a commercial application we can't afford to have it like this right ? This is happening with me on groovy 1.3 . Even that only on some OS like RHEL. It's really frustrating and difficult to deal with this
ggml : introduce structs for the q4 data blocks (abetlen#356)
gjmulder commentedon Jun 13, 2023
eshaanagarwal commentedon Jun 13, 2023
Hi I am using gpt-4-all gpt-j 1.3 groovy which has Apache license.
vmajor commentedon Jun 15, 2023
Another update, my
guanaco-65B-GGML-q6_K.binmodel just failed with the same error. So it is not just 30B models that are affected.ibidani commentedon Jul 30, 2023
In hope to help isolate the bug I tried to reproduce the issue since version 0.1.55.
The first release that I experience the issue is 0.1.76(0.1.75 wasn't tested, isn't available on pypi) and didn't see it on 0.1.74
Could it be related to this change?
v0.1.74...v0.1.76#diff-9184e090a770a03ec97535fbef520d03252b635dafbed7fa99e59a5cca569fbcR200
Environment
python -V Python 3.10.12 uname -a Linux Idan-PC 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/LinuxModel:
nous-hermes-13b.ggmlv3.q4_0.binjbbqqf commentedon May 24, 2026
Hi @vmajor — drive-by triage note, not a maintainer.
The repro here uses
.ggmlv3.q8_0.binmodel files onllama-cpp-python 0.1.59. Both pieces are now obsolete:llama_cpp/llama.pyonly loads GGUF model files (see the"loading the first file of a sharded GGUF loads all remaining shard files"block).Since the scratch-pool error path was internal to the old GGML code, it can't be reproduced against a current build. If you (or anyone subscribed) still hit something analogous with a GGUF model on a recent release (0.3.x), a fresh issue with the new repro would be much easier to action than this one.
Otherwise this is probably safe to close as obsolete.
Disclosure: I'm Jean-Baptiste Braun (data engineer, GCP/Python). This comment was drafted with the help of an AI coding assistant (Claude), then reviewed and edited by me. Posting from a small open-source backlog-triage pass — not affiliated with the project. Happy to delete if unwelcome.