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
b386bb3d
Unverified
Commit
b386bb3d
authored
Mar 11, 2026
by
Augusto Yao
Committed by
GitHub
Mar 10, 2026
Browse files
fix bugs when token_classify & classify run concurrently (#36614)
Signed-off-by:
augusto.yjh
<
augusto.yjh@antgroup.com
>
parent
fe714dd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
vllm/model_executor/layers/pooler/tokwise/methods.py
vllm/model_executor/layers/pooler/tokwise/methods.py
+7
-4
No files found.
vllm/model_executor/layers/pooler/tokwise/methods.py
View file @
b386bb3d
...
...
@@ -47,10 +47,13 @@ class AllPool(TokenPoolingMethod):
pooling_metadata
:
PoolingMetadata
,
)
->
list
[
TokenPoolingMethodOutputItem
]:
pooling_cursor
=
pooling_metadata
.
get_pooling_cursor
()
hidden_states_all
=
hidden_states
.
split
(
pooling_cursor
.
num_scheduled_tokens_cpu
.
tolist
()
hidden_states_lst
=
[
hidden_states
[
first
:
last
+
1
]
for
first
,
last
in
zip
(
pooling_cursor
.
first_token_indices_gpu
.
tolist
(),
pooling_cursor
.
last_token_indices_gpu
.
tolist
(),
)
hidden_states_lst
=
[
hidden_states_all
[
i
]
for
i
in
pooling_cursor
.
index
]
]
if
not
self
.
enable_chunked_prefill
:
return
hidden_states_lst
...
...
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