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
05c1126f
Unverified
Commit
05c1126f
authored
Jul 26, 2025
by
Reid
Committed by
GitHub
Jul 26, 2025
Browse files
[Misc] remove unused try-except in pooling config check (#21618)
Signed-off-by:
reidliu41
<
reid201711@gmail.com
>
parent
875af38e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
vllm/transformers_utils/config.py
vllm/transformers_utils/config.py
+5
-7
No files found.
vllm/transformers_utils/config.py
View file @
05c1126f
...
...
@@ -574,13 +574,11 @@ def get_pooling_config_name(pooling_name: str) -> Union[str, None]:
supported_pooling_types
=
[
'LAST'
,
'ALL'
,
'CLS'
,
'STEP'
,
'MEAN'
]
pooling_type_name
=
pooling_name
.
upper
()
try
:
if
pooling_type_name
in
supported_pooling_types
:
return
pooling_type_name
except
NotImplementedError
as
e
:
logger
.
debug
(
"Pooling type not supported"
,
e
)
return
None
return
None
if
pooling_type_name
in
supported_pooling_types
:
return
pooling_type_name
raise
NotImplementedError
(
f
"Pooling type
{
pooling_type_name
}
not supported"
)
@
cache
...
...
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