zen-vcache-ai
Practical 3D V-Cache (AMD Ryzen X3D) acceleration, reproducible benchmarks, AVX-512 kernels, and llama.cpp MoE tuning for local AI on 8 GB VRAM GPUs.
Measured Results (Ryzen 7 7800X3D + RTX 3070 8 GB)
| Workload | Setup | Result |
|---|---|---|
| 35B MoE (Qwen3.8-35B-A3B) | vcache-run -c 2-7 + --moe-cache-mib 4608 + GGML_MOE_NTA=1 |
76.3 tok/s (+25.5% gen) |
| 26B MoE (Gemma 4 26B.A4B) | 6C (2-7) + --moe-cache-mib 3072 + q8_0 KV |
40.5 tok/s, 50% less KV VRAM |
| Code Editing (Qwen3.5-9B) | --spec-type ngram-map-k4v,ngram-mod (0 MiB extra VRAM) |
80.9–701.9 tok/s (1.19x–10.80x) |
| Local Vector RAG (1M vectors) | 8-thread AVX-512 VPOPCNTDQ (61 MiB in L3) |
162.8 µs (6,144 QPS, 366 GB/s) |
| 10M-Vector RAG (512-d) | Two-tier L3 RaBitQ (36.5 MiB) + THP VPDPBUSD (4.84 GiB DDR5-NTA) |
296.4 µs P50 / 358.0 µs P99 (3,313 QPS, 0.938 Recall@10) |
Quickstart
git clone https://github.com/simonezpx3/zen-vcache-ai.git
cd zen-vcache-ai
make -C kernels
GGML_MOE_NTA=1 ./bin/vcache-run --profile rag -- llama-server -m model.gguf -ngl 99 -cmoe --moe-cache-mib 4096 -t 6
./bin/vcache-run --profile rag -- python3 benchmarks/bench_l3_rabitq_10m.py --full-10m --json-out results/l3_rabitq_10m.json