ShihaoW commited on
Commit
fb9f8b1
·
verified ·
1 Parent(s): fd5777e

Refine LA Flash plan documentation

Browse files
kernel_utils/README.md CHANGED
@@ -25,9 +25,6 @@ types:
25
  | `0` | Full attention over the listed key segment or packed key segments. |
26
  | `1` | Bottom-right causal attention. |
27
 
28
- The old local CUDA-only encodings (`100 + block_size` and `10000 + ...`) were
29
- removed from the release.
30
-
31
  ## Runtime Knobs
32
 
33
  | Variable | Default | Meaning |
 
25
  | `0` | Full attention over the listed key segment or packed key segments. |
26
  | `1` | Bottom-right causal attention. |
27
 
 
 
 
28
  ## Runtime Knobs
29
 
30
  | Variable | Default | Meaning |
kernel_utils/range_attention.py CHANGED
@@ -87,8 +87,8 @@ def _coalesce_query_groups(q_ranges, k_ranges, attn_type_map):
87
  attn_type = int(attn_type)
88
  if attn_type not in (0, 1):
89
  raise RuntimeError(
90
- "LA Flash path only supports attn_type 0/1. "
91
- f"Got attn_type={attn_type}; regenerate the plan without the old local kernel encodings."
92
  )
93
  if last_q is None:
94
  grouped_q.append([key[0], key[1]])
 
87
  attn_type = int(attn_type)
88
  if attn_type not in (0, 1):
89
  raise RuntimeError(
90
+ "LA Flash path only supports FlashAttention-compatible attn_type 0/1. "
91
+ f"Got attn_type={attn_type}; regenerate a type 0/1 range plan."
92
  )
93
  if last_q is None:
94
  grouped_q.append([key[0], key[1]])