Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
3bbff9e5
Unverified
Commit
3bbff9e5
authored
Mar 21, 2024
by
SangBin Cho
Committed by
GitHub
Mar 21, 2024
Browse files
Fix 1D query issue from `_prune_hidden_states` (#3539)
parent
6ebd02bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
vllm/model_executor/layers/logits_processor.py
vllm/model_executor/layers/logits_processor.py
+0
-1
No files found.
vllm/model_executor/layers/logits_processor.py
View file @
3bbff9e5
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment