Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/liger_kernel/ops/llama4_rope.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _llama4_rope_kernel(
Grid: (batch*seq, head)
"""
# 2D grid
pid_bs = tl.program_id(0) # over batch*seq
pid_bs = tl.program_id(0).to(tl.int64) # over batch*seq
pid_h = tl.program_id(1) # over heads

batch_idx = pid_bs // seq_len
Expand Down
2 changes: 1 addition & 1 deletion src/liger_kernel/ops/qwen2vl_mrope.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _triton_qwen2vl_mrope(
BLOCK_SIZE: tl.constexpr,
BACKWARD_PASS: tl.constexpr = False,
):
pid = tl.program_id(0)
pid = tl.program_id(0).to(tl.int64)

# locate start address
q_ptr = q_ptr + pid * (n_qh * hd)
Expand Down