P8: Unified dispatch — multi-tile kernel handles all N
production.py: Single fast path using multi-tile kernel for all N. Eliminates the separate _dsv4_attention_fast_decode path.
This commit is contained in:
@@ -453,10 +453,9 @@ def dsv4_attention(
|
||||
n_segments = (N + s_k_per_seg - 1) // s_k_per_seg
|
||||
|
||||
if T == 1 and hd in (64, 128, 256, 512):
|
||||
if n_segments == 1 and hd in (64, 128, 256):
|
||||
return _dsv4_attention_fast_decode(q, k, v, scale, n_comp, sink_bias)
|
||||
else:
|
||||
return _dsv4_attention_multitile(q, k, v, scale, n_comp, sink_bias)
|
||||
# P8: Unified fast path — multi-tile kernel handles all N
|
||||
# (single-tile and multi-tile, T=1 decode)
|
||||
return _dsv4_attention_multitile(q, k, v, scale, n_comp, sink_bias)
|
||||
|
||||
# ==================================================================
|
||||
# SLOW PATH: CuTeDSL kernel + Python KV merge
|
||||
|
||||
Reference in New Issue
Block a user