mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-22 22:07:04 +08:00
minor
Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
This commit is contained in:
parent
82da219ff9
commit
efda08481b
@ -254,8 +254,8 @@ def compute_logprobs(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# NOTE(woosuk): Here, to save GPU memory, we do not materialize the full
|
# NOTE(woosuk): Here, to save GPU memory, we do not materialize the full
|
||||||
# logprobs tensor. Instead, we only compute the logprobs of the topk + 1
|
# logprobs tensor. Instead, we only compute and return the logprobs of
|
||||||
# tokens.
|
# the topk + 1 tokens.
|
||||||
BLOCK_SIZE = 1024
|
BLOCK_SIZE = 1024
|
||||||
_topk_logprobs_kernel[(batch_size, )](
|
_topk_logprobs_kernel[(batch_size, )](
|
||||||
logprobs,
|
logprobs,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user