Skip to content

Commit 84809b3

Browse files
committed
update
1 parent 5858e70 commit 84809b3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vllm/v1/worker/gpu/sample/prompt_logprob.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ def compute_prompt_logprobs_with_chunking(
222222
prompt_token_ids = prompt_token_ids.to(torch.int64)
223223
for start_idx in range(0, prompt_token_ids.shape[0], CHUNK_SIZE):
224224
end_idx = start_idx + CHUNK_SIZE
225+
# NOTE(woosuk): logits_fn can be slow because it involves all-gather.
225226
prompt_logits = logits_fn(prompt_hidden_states[start_idx:end_idx])
226227
requested_num = (
227228
prompt_logits.shape[-1]

0 commit comments

Comments
 (0)