We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5858e70 commit 84809b3Copy full SHA for 84809b3
1 file changed
vllm/v1/worker/gpu/sample/prompt_logprob.py
@@ -222,6 +222,7 @@ def compute_prompt_logprobs_with_chunking(
222
prompt_token_ids = prompt_token_ids.to(torch.int64)
223
for start_idx in range(0, prompt_token_ids.shape[0], CHUNK_SIZE):
224
end_idx = start_idx + CHUNK_SIZE
225
+ # NOTE(woosuk): logits_fn can be slow because it involves all-gather.
226
prompt_logits = logits_fn(prompt_hidden_states[start_idx:end_idx])
227
requested_num = (
228
prompt_logits.shape[-1]
0 commit comments