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/v1/sample/ops/topk_topp_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def apply_top_k_top_p(
if p is None and k is None:
return logits

if HAS_TRITON and logits.shape[0] >= 8:
if HAS_TRITON and logits.shape[0] >= 8 and logits.is_cuda:
return apply_top_k_top_p_triton(logits, k, p)

# Use pytorch sort implementation for small batch sizes.
Expand Down