[Kimi Bug] Fix kda ima Triton Error [CUDA]: an illegal memory access was encountered (#55924)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@@ -415,7 +415,7 @@ def _store_cache_checkpoints_kernel(
|
|||||||
# store checkpoints to cache
|
# store checkpoints to cache
|
||||||
seq_idx = tl.program_id(0)
|
seq_idx = tl.program_id(0)
|
||||||
cols = tl.program_id(1) * BLOCK_SIZE + tl.arange(0, BLOCK_SIZE)
|
cols = tl.program_id(1) * BLOCK_SIZE + tl.arange(0, BLOCK_SIZE)
|
||||||
state_idx = tl.load(checkpoint_state_indices_ptr + seq_idx)
|
state_idx = tl.load(checkpoint_state_indices_ptr + seq_idx).to(tl.int64)
|
||||||
checkpoint_offset = tl.load(
|
checkpoint_offset = tl.load(
|
||||||
checkpoint_offsets_ptr + seq_idx * checkpoint_offset_stride
|
checkpoint_offsets_ptr + seq_idx * checkpoint_offset_stride
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user