ik_llama.cpp 26x Faster Qwen 3.5 Prompts
💡26x faster prompts on Qwen 3.5 27B—real benchmarks on RTX 4000
⚡ 30-Second TL;DR
What Changed
26x prompt eval speedup: 43 to 1,122 tok/s
Why It Matters
Dramatically accelerates local inference for Qwen 3.5 agents, making full prompt re-processing feasible in seconds instead of minutes. Bridges gap until mainline llama.cpp integrates these kernels.
What To Do Next
Download Thireus ik_llama.cpp binaries and swap into your llama-server for Qwen 3.5 runs.
Key Points
- •26x prompt eval speedup: 43 to 1,122 tok/s
- •3.5x generation: 7.5 to 26 tok/s
- •Fused GDN kernels for Qwen hybrid architecture
- •Graph splits drop from 34 to 2, idle CPU
- •Pre-built CUDA 12.8 binaries from Thireus fork
🧠 Deep Insight
AI-generated analysis for this event — not the original article.
🔑 Enhanced Key Takeaways
- •The 'ik_llama.cpp' fork specifically targets the unique hybrid architecture of Qwen 3.5, which utilizes a mix of dense and sparse layers that typically cause significant overhead in standard llama.cpp implementations.
- •The reduction in graph splits from 34 to 2 is achieved by implementing custom CUDA kernels that bypass the standard llama.cpp graph-building logic, which previously struggled to map the Qwen 3.5 MoE-like structure efficiently to VRAM.
- •The performance gains are heavily dependent on the RTX PRO 4000's specific memory bandwidth and CUDA compute capability, suggesting that while the optimization is significant, it may scale differently on consumer-grade cards with lower memory bus widths.
🛠️ Technical Deep Dive
- •Implementation of Fused GDN (Gated Diffusion Network) kernels: These kernels consolidate multiple small operations into a single GPU pass, minimizing kernel launch overhead.
- •Graph Splitting Optimization: Standard llama.cpp splits graphs when it encounters operations that cannot be fused or when memory constraints are hit; this fork re-architects the compute graph to keep the majority of the model's forward pass within a single CUDA stream.
- •Memory Management: The fork utilizes a custom memory allocator that reduces fragmentation during the prompt evaluation phase, allowing for higher throughput on the RTX PRO 4000's 20GB VRAM buffer.
- •Qwen 3.5 Architecture Compatibility: The optimization specifically addresses the attention-head-to-FFN ratio in Qwen 3.5, which is distinct from standard Llama 3 or Mistral architectures.
🔮 Future ImplicationsAI analysis grounded in cited sources
Weekly AI Recap
Read this week's curated digest of top AI events →
👉Related Updates
AI-curated news aggregator. All content rights belong to original publishers.
Original source: Reddit r/LocalLLaMA ↗
This is a summary, not the original. Read the source, or get the weekly briefing.
Weekly AI briefing
One email a week. Unsubscribe anytime.

