Repository navigation
Releases
Releases · simonezpx3/zen-vcache-ai
v2.1.0: Practical 3D V-Cache Acceleration for Local AI
zen-vcache-ai v2.1.0
Practical 3D V-Cache (Ryzen X3D) acceleration, reproducible microarchitectural benchmarks, AVX-512 kernels, and llama.cpp hybrid MoE tuning recipes for local AI on 8 GB VRAM GPUs.
Highlights
- 6-Core MoE Pinning (
vcache-run): Pins hybrid MoE inference to cores2-7on single-CCD 7800X3D, avoiding DDR5-6000 saturation while keeping cores0-1free for the OS. - Non-Temporal MoE Prefetch (
patches/ggml-moe-nta.patch): AddsGGML_MOE_NTA=1(_MM_HINT_NTA/_mm_stream_si64) to prevent cold DDR5 expert streams from evicting hot 96 MiB L3 lines (76.3 tok/s onQwen3.8-35B-A3B,+22.2%pp128). - Zero-VRAM Speculative Decoding: N-gram drafting (
ngram-map-k4v,ngram-mod) kept hot in L3 cache (80.9 tok/sup to701.9 tok/swarm onQwen3.5-9B). - AVX-512 Vector RAG Engine: 8-thread
VPOPCNTDQ1M-vector search inside 61 MiB L3 in 162.8 µs (6,144 QPS,366 GB/s). - 26B MoE +
q8_0KV Recipe:Gemma 4 26B.A4Bat 40.5 tok/s with 50% less KV cache VRAM.
Quickstart
make -C kernels
PYTHONPATH=src python3 -m unittest tests/test_topology.py tests/test_benchmark.py -v
PYTHONPATH=src python3 -m vcache.topology