Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
configs=get_autotune_config(multibuffer_list=(False,)),
key=['H', 'K', 'V', 'BT'],
)
@triton.jit(do_not_specialize=['T'])
@triton.jit(do_not_specialize=['T', 'NT'])
def chunk_gated_delta_rule_fwd_kernel_h_blockdim64(
k,
v,
Expand All @@ -42,7 +42,7 @@ def chunk_gated_delta_rule_fwd_kernel_h_blockdim64(
V: tl.constexpr,
BT: tl.constexpr,
BV: tl.constexpr,
NT: tl.constexpr,
NT,
USE_G: tl.constexpr,
USE_GK: tl.constexpr,
USE_INITIAL_STATE: tl.constexpr,
Expand Down
4 changes: 2 additions & 2 deletions veomni/ops/kernels/gated_delta_rule/_ascend/triton/chunk_o.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def chunk_bwd_kernel_dv_local(
'USE_G_GAMMA': lambda args: args['g_gamma'] is not None,
'IS_VARLEN': lambda args: args['cu_seqlens'] is not None
})
@triton.jit(do_not_specialize=['T'])
@triton.jit(do_not_specialize=['T', 'N'])
def chunk_fwd_kernel_o(
q,
k,
Expand All @@ -302,7 +302,7 @@ def chunk_fwd_kernel_o(
scale,
T,
H: tl.constexpr,
N: tl.constexpr,
N,
Hg: tl.constexpr,
K: tl.constexpr,
V: tl.constexpr,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'USE_G': lambda args: args['g'] is not None,
'IS_VARLEN': lambda args: args['cu_seqlens'] is not None,
})
@triton.jit(do_not_specialize=['T'])
@triton.jit(do_not_specialize=['T', 'NT', 'B', 'TOTAL_TASKS'])
def chunk_scaled_dot_kkt_fwd_kernel(
k,
g,
Expand Down
8 changes: 4 additions & 4 deletions veomni/ops/kernels/gated_delta_rule/_ascend/triton/wy_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@triton.heuristics({
'IS_VARLEN': lambda args: args['cu_seqlens'] is not None
})
@triton.jit(do_not_specialize=['T'])
@triton.jit(do_not_specialize=['T', 'B', 'NT'])
def prepare_wy_repr_bwd_kernel(
k,
v,
Expand All @@ -33,7 +33,7 @@ def prepare_wy_repr_bwd_kernel(
H: tl.constexpr,
K: tl.constexpr,
V: tl.constexpr,
NT: tl.constexpr,
NT,
BT: tl.constexpr,
BK: tl.constexpr,
BV: tl.constexpr,
Expand Down Expand Up @@ -145,7 +145,7 @@ def prepare_wy_repr_bwd_kernel(
'USE_GK': lambda args: args['gk'] is not None,
'IS_VARLEN': lambda args: args['cu_seqlens'] is not None
})
@triton.jit(do_not_specialize=['T'])
@triton.jit(do_not_specialize=['T', 'B', 'NT'])
def recompute_w_u_fwd_kernel(
k,
v,
Expand All @@ -162,7 +162,7 @@ def recompute_w_u_fwd_kernel(
H: tl.constexpr,
K: tl.constexpr,
V: tl.constexpr,
NT: tl.constexpr,
NT,
BT: tl.constexpr,
BK: tl.constexpr,
BV: tl.constexpr,
Expand Down
Loading