Skip to content

Commit 0716e9b

Browse files
committed
Fix NameError in _BlockSizes caused by removed constant
1 parent e665b2c commit 0716e9b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/maxdiffusion/kernels/custom_splash_attention.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,11 @@
3030
NUM_SUBLANES = 8
3131
NT_DIM_NUMBERS = (((1,), (1,)), ((), ()))
3232

33-
# Kept at 256 to protect VPU registers (V1 Optimization)
34-
DEFAULT_BKVCOMPUTEINSIZE = 256
35-
3633

3734
class _BlockSizes:
3835
__slots__ = ("block_q", "block_kv", "block_kv_compute", "block_kv_compute_in")
3936

40-
def __init__(self, block_q: int, block_kv: int, block_kv_compute: int | None = None, block_kv_compute_in: int = DEFAULT_BKVCOMPUTEINSIZE):
37+
def __init__(self, block_q: int, block_kv: int, block_kv_compute: int | None = None, block_kv_compute_in: int = 256):
4138
self.block_q = block_q
4239
self.block_kv = block_kv
4340
self.block_kv_compute = block_kv_compute if block_kv_compute is not None else block_kv

0 commit comments

Comments
 (0)