Description
When running Apex quantized models with llama-server and mmap enabled, the model tends to output repetitive artifacts like "00000000" or "@@@@@@@" after modifying the prompt and invalidating the KV Cache.
Environment
- Inference Engine:
llama-server, router mode, mmap = true
- Quantization: APEX (I-Balanced)
- Affected Models:
Qwen3.6-35B-A3B-APEX-MTP-I-Balanced.gguf (26GB)
Qwen3.6-35B-A3B-uncensored-heretic-APEX-GGUF
Qwen3-Coder-Next-APEX-I-Balanced.gguf (58GB)
- Control Model (Working):
Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive-Q8_K_P.gguf (43GB)
- Hardware/OS: MacOS 15.7.7, 16GB RAM+RX 580 (8GB)
- llama.cpp version: b9305 vulkan build
Reproduction Steps
- Load Apex quantized model via
llama-server.
- Send a long context prompt; model responds normally.
- Modify Context (Key Step): Delete the model's response and edit a previous message (e.g., fix a typo) to invalidate the KV Cache.
- Regenerate: Request the model to regenerate the response.
- Observe: The model tends to outputs "00000000" after regeneration.
- (Note): In rare cases, the error appears later in the conversation as context grows.
Observations
- Cache Invalidation Trigger: The error is highly reproducible when the prompt is modified, forcing the model to re-compute layers.
- Randomness: It is probabilistic, not deterministic every single time.
- Long Context Accumulation: In rare cases, the error manifests later in the conversation as the context length increases.
- Comparison: The Q8_K_P model runs stably under the same
mmap settings.
Additional Notes
I've ruled out parameter or hardware issues since Q8 works looks like fine.
The issue seems specific to Apex quantization combined with mmap re-computation.
Thanks for the great quantization work!
Description
When running Apex quantized models with
llama-serverandmmapenabled, the model tends to output repetitive artifacts like "00000000" or "@@@@@@@" after modifying the prompt and invalidating the KV Cache.Environment
llama-server,routermode,mmap = trueQwen3.6-35B-A3B-APEX-MTP-I-Balanced.gguf(26GB)Qwen3.6-35B-A3B-uncensored-heretic-APEX-GGUFQwen3-Coder-Next-APEX-I-Balanced.gguf(58GB)Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive-Q8_K_P.gguf(43GB)Reproduction Steps
llama-server.Observations
mmapsettings.Additional Notes
I've ruled out parameter or hardware issues since Q8 works looks like fine.
The issue seems specific to Apex quantization combined with
mmapre-computation.Thanks for the great quantization work!