Gen rubbish when set -ctk q8 and -ctv q8

#3
by tientitmu - opened

I'm run the model using latest version of llama.cpp (b9859)
My setup: 4 x H100
When I run with -ctk f16 -ctv f16 --ctx-size 262144 --parallel 1. It goes with 70GB each card. It's seem weird when I go in 3 card and still 70GB each card!
But the most of weird is when I run -ctk q8_0 and -ctv q8_0 to fit more ctx size, it totally generates rubbish tokens.
I'm very confuse about this circumstance.

This seems like a limitation of current llama.cpp implementation of DS4 as there have been other similar reports.

Instead of quantizing cache, you can try applying this patch which enables the ds4 lightning indexer: https://huggingface.co/sokann/DeepSeek-V4-Flash-GGUF/blob/main/lcpp-dsv4-lid-combo.diff

With the patch applied, 256k context only seems to use 3GB of RAM

This seems like a limitation of current llama.cpp implementation of DS4 as there have been other similar reports.

Instead of quantizing cache, you can try applying this patch which enables the ds4 lightning indexer: https://huggingface.co/sokann/DeepSeek-V4-Flash-GGUF/blob/main/lcpp-dsv4-lid-combo.diff

With the patch applied, 256k context only seems to use 3GB of RAM

Yeah, thank you. Which exactly version can I apply diff. Just apply for latest version, right?

Sign up or log in to comment