Skip to content

KV cache quantization fails with GGML_ASSERT #1335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ddh0 opened this issue Apr 8, 2024 · 1 comment
Open

KV cache quantization fails with GGML_ASSERT #1335

ddh0 opened this issue Apr 8, 2024 · 1 comment
Labels
bug Something isn't working upstream

Comments

@ddh0
Copy link
Contributor

ddh0 commented Apr 8, 2024

Hi! :)

I'm using llama-cpp-python==0.2.60, installed using this command CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python.

I'm able to load a model using type_k=8 and type_v=8 (for q8_0 cache). However, as soon as I try to generate something with the model, it fails like this:

GGML_ASSERT: /private/var/folders/vy/88dklssj0zj64m3xdkv2j0wc0000gn/T/pip-install-ptov4y0g/llama-cpp-python_556e2fb52bea42419cf695448fc31a0c/vendor/llama.cpp/ggml.c:7615: false
GGML_ASSERT: /private/var/folders/vy/88dklssj0zj64m3xdkv2j0wc0000gn/T/pip-install-ptov4y0g/llama-cpp-python_556e2fb52bea42419cf695448fc31a0c/vendor/llama.cpp/ggml.c:7615: false
GGML_ASSERT: /private/var/folders/vy/88dklssj0zj64m3xdkv2j0wc0000gn/T/pip-install-ptov4y0g/llama-cpp-python_556e2fb52bea42419cf695448fc31a0c/vendor/llama.cpp/ggml.c:7615: false
GGML_ASSERT: /private/var/folders/vy/88dklssj0zj64m3xdkv2j0wc0000gn/T/pip-install-ptov4y0g/llama-cpp-python_556e2fb52bea42419cf695448fc31a0c/vendor/llama.cpp/ggml.c:7615: false
zsh: abort      python

Basically, I am able to load a model with 8-bit cache, but I can't actually inference with the model.

uname -a: Darwin MacBook-Air.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:19:22 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8112 arm64

@CISC
Copy link
Contributor

CISC commented Apr 8, 2024

Changing type_v is not yet supported by llama.cpp, see this issue.

@abetlen abetlen added bug Something isn't working upstream labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

3 participants