Skip to content

Commit

Permalink
Fix 1D query issue from _prune_hidden_states (vllm-project#3539)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkooo567 authored Mar 21, 2024
1 parent 6ebd02b commit 3bbff9e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion vllm/model_executor/layers/logits_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def _prune_hidden_states(
hidden_states: torch.Tensor,
sampling_metadata: SamplingMetadata,
) -> torch.Tensor:
hidden_states = hidden_states.view(-1, hidden_states.shape[-1])
return hidden_states.index_select(0,
sampling_metadata.selected_token_indices)

Expand Down

0 comments on commit 3bbff9e

Please sign in to comment.