Skip to content

Commit

Permalink
TODO on top-p top-k
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosukKwon committed Oct 21, 2024
1 parent cd99b21 commit 76bb54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/v1/sample/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def sample(
return sampled


# This function can be replaced by a custom kernel.
# TODO(woosuk): Optimize this with a custom kernel.
def _apply_top_k_top_p(
logits: torch.Tensor,
no_top_k: bool,
Expand Down

0 comments on commit 76bb54f

Please sign in to comment.