You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sparse V: tile-level skip for CUDA tile FA (opt-in)
Replaces the per-element zero from the original PR #98 (which never saved
compute since the V matmul still ran with val=0) with a tile-uniform skip
of the entire V matmul block when no position contributes meaningfully.
Per-warp shfl reduction of the per-thread max softmax probability, then
a per-block fan-out via shared memory. Branch on the result so all threads
take the same path — no warp divergence (was the cause of the April 24
revert in commit f2dc968 on the VEC kernel).
Off by default. Opt in at build time:
cmake -DGGML_CUDA_FLAGS=-DGGML_CUDA_TURBO_SPARSE_V_TILE
# threshold defaults to 0.001f; override with
# -DGGML_CUDA_FLAGS='-DGGML_CUDA_TURBO_SPARSE_V_TILE -DGGML_CUDA_TURBO_SPARSE_V_THRESHOLD=0.0001f'
Mirror of vllm-project/vllm#41422 which validated this pattern on AMD
MI300X: +7.13% decode @ 32K with PPL bit-identical and NIAH all-pass on
Qwen3-8B. Default-off path is byte-identical to upstream (verified on
M5 Max Metal: Qwen2.5-7B Q8_0 sym turbo3 PPL 6.6594, exact match).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments