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
84e00adc
Unverified
Commit
84e00adc
authored
Mar 21, 2025
by
Isotr0py
Committed by
GitHub
Mar 21, 2025
Browse files
[Bugfix] Fix incorrect resolving order for transformers fallback (#15279)
Signed-off-by:
Isotr0py
<
2037008807@qq.com
>
parent
47c71262
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
vllm/model_executor/models/registry.py
vllm/model_executor/models/registry.py
+7
-5
No files found.
vllm/model_executor/models/registry.py
View file @
84e00adc
...
...
@@ -418,11 +418,13 @@ class _ModelRegistry:
if
not
architectures
:
logger
.
warning
(
"No model architectures are specified"
)
normalized_arch
=
[]
for
model
in
architectures
:
if
model
not
in
self
.
models
:
model
=
"TransformersModel"
normalized_arch
.
append
(
model
)
# filter out support architectures
normalized_arch
=
list
(
filter
(
lambda
model
:
model
in
self
.
models
,
architectures
))
# make sure Transformers fallback are put at the last
if
len
(
normalized_arch
)
!=
len
(
architectures
):
normalized_arch
.
append
(
"TransformersModel"
)
return
normalized_arch
def
inspect_model_cls
(
...
...
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