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
948ab03e
Unverified
Commit
948ab03e
authored
Mar 24, 2025
by
ℍ𝕠𝕝𝕝𝕠𝕨 𝕄𝕒𝕟
Committed by
GitHub
Mar 24, 2025
Browse files
[Bugfix][V1] Avoid importing PreTrainedModel (#15366)
Signed-off-by:
Hollow Man
<
hollowman@opensuse.org
>
parent
5797fb97
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/model_loader/utils.py
vllm/model_executor/model_loader/utils.py
+1
-1
No files found.
vllm/model_executor/model_loader/utils.py
View file @
948ab03e
...
@@ -32,7 +32,7 @@ def set_default_torch_dtype(dtype: torch.dtype):
...
@@ -32,7 +32,7 @@ def set_default_torch_dtype(dtype: torch.dtype):
def
is_transformers_impl_compatible
(
def
is_transformers_impl_compatible
(
arch
:
str
,
arch
:
str
,
module
:
Optional
[
transformers
.
PreTrainedModel
]
=
None
)
->
bool
:
module
:
Optional
[
"
transformers.PreTrainedModel
"
]
=
None
)
->
bool
:
mod
=
module
or
getattr
(
transformers
,
arch
,
None
)
mod
=
module
or
getattr
(
transformers
,
arch
,
None
)
if
mod
is
None
:
if
mod
is
None
:
return
False
return
False
...
...
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