Skip to content
Merged
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 vllm/model_executor/layers/sparse_attn_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def sparse_attn_indexer(
num_rows = logits.shape[0]
topk_indices = topk_indices_buffer[:num_padded_tokens, :topk_tokens]

if current_platform.is_cuda() and topk_tokens in (512, 1024, 2048):
if current_platform.is_cuda() and topk_tokens in (512, 2048):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The PR title 'Temporary disable persistent topk' suggests an intent to disable the persistent topk optimization entirely. However, the current implementation only removes the 1024 case, leaving it enabled for 512 and 2048. If the kernel is being disabled due to a general issue (e.g., stability or correctness), it should likely be disabled for all supported sizes to ensure the workaround is effective across all configurations.

workspace_manager = current_workspace_manager()
(topk_workspace,) = workspace_manager.get_simultaneous(
((RADIX_TOPK_WORKSPACE_SIZE,), torch.uint8),
Expand Down
Loading