Views
No views yet
use_mem_rope=false) — attention without positional encoding| Quant | Size | BPW | PPL (WikiText-2) | Prompt tok/s | Gen tok/s | Hardware |
|---|---|---|---|---|---|---|
| Q4_0 | 2.1 GB | 4.56 | 17.53 | 280.9 | 26.6 | RTX 4090 |
| Q8_0 | 3.9 GB | 8.51 | 16.94 | 278.3 | 26.0 | RTX 4090 |
| Config | Description | PPL |
|---|---|---|
| A | Q4_0 weights + F16 KV | 17.53 |
| D | Q8_0 weights + F16 KV | 16.94 |
| E | F32 weights + F16 KV | ~16.8 (pending) |
| B/C | Q4/Q8 KV cache | Requires FA (head_dim=160) |
head_dim=160, which is not a multiple of 64. This prevents the Hadamard rotation used by llama.cpp's standard KV quantization. Quantized KV cache requires Flash Attention, which is not yet wired for Zamba2.use_mem_rope=false in its HuggingFace config, meaning it does not use rotary position embeddings in attention. The original converter applied RoPE unconditionally, corrupting all attention computations. This was the ONLY Zamba2 size affected (1.2B and 7B both have use_mem_rope=true).Q: What is the capital of France?A: The capital of France is Paris.
1# Build llama.cpp with Zamba2 support
2git clone https://github.com/echo313unfolding/llama.cpp -b zamba2-support
3cd llama.cpp && cmake -B build -DGGML_CUDA=ON && cmake --build build -j
4
5# Run
6./build/bin/llama-cli -m zamba2-2.7b-instruct-v2-q8_0.gguf \
7 -p "<|im_start|>user\nWhat is quantum computing?<|im_end|>\n<|im_start|>assistant\n" \
8 -n 256 -ngl 999 -e --no-conversationn_head_kv array (0 for Mamba layers, 32 for attention layers)rope_dimension_count=0 for use_mem_rope=false models (disables RoPE in attention)llama-quantize