mirror of
https://github.com/iafiscal1212/diffuse-cpp.git
synced 2026-12-04 00:28:08 +00:00
- Replace manual attention (permute + mul_mat + soft_max_ext + mul_mat) with ggml_flash_attn_ext (fused kernel, online softmax) - Flash attention handles GQA natively (n_head_kv → n_head broadcast) eliminating the ggml_repeat GQA expansion (~5x less KV memory) - Mask changed from F32 to F16 (required by flash_attn kernel) - Reduced compute buffer sizing (no GQA expansion memory) - Added --bind-cores flag for CPU thread affinity (OMP_PROC_BIND) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>