Custom Zig + Vulkan engine bypasses ROCm on AMD, hits 2,096 tok/s prefill on a laptop
HankYeomans · x · 2026-11-30
Developer ashxhart unveiled vulkantf, a bare-metal Vulkan inference engine written in Zig with a clean-room SPIR-V compiler, completely bypassing ROCm/HIP on AMD GPUs as a single 9 MB executable with zero ROCm/HIP/Vulkan SDK dependencies.
On a Windows 11 Strix Halo laptop (Radeon 8060S, RDNA 3.5) running Inkling-2-Mini (Q4 + lossless DSpark):
- Prefill: 2,096 tok/s at pp2048, 2,024 tok/s at pp4096, 1,640 tok/s at 12K (200 ms cached)
- Decode: 58 tok/s raw, 90-107 tok/s with lossless DSpark (65-97 tok/s live in coding agents at 12K-24K ctx)
- Full 1M context in 17 GB VRAM
The engine also exploits non-traditional RDNA 3.5 units: hardware ray tracing cores (VKKHRrayquery + BVH) for sparse KV pruning (99.87% pruned across 10M tokens in 1.54 ms), fixed-function BC4 TMUs for hardware 4-bit weight decompression (857 GB/s FP16-eq), and Wave32 WMMA matrix units with GPU vkCmdDispatchIndirect MoE (0 register spills across 74 pipelines).
More from coding & agent
- Overnight LoRA weight baking could fix RAG memory's 'forgetting what you know' problem — inductionheads · 2026-11-30
- Stop overpaying for AI: route by the job, not by loyalty to one model — McDonaghMatthew · 2026-11-30
- Researchers use Claude Code to auto-generate hand-crafted transformer weights — esrtweet · 2026-11-30
- Free 290k-word book teaches how the Void framework works by building chibivoid — cnakazawa · 2026-11-30
- Rebut 0.7.0 runs 2-3 model reviewers on the same diff over MCP, adds Gemini API — CH_CGV · 2026-11-30
- Aptly 0.2.0 auto-picks subagent model tiers for Antigravity CLI via MCP — CH_CGV · 2026-11-30