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
7be3a59d
Unverified
Commit
7be3a59d
authored
Aug 18, 2025
by
Ning Xie
Committed by
GitHub
Aug 17, 2025
Browse files
[Misc] enhance static type hint (#23059)
Signed-off-by:
Andy Xie
<
andy.xning@gmail.com
>
parent
8ea0c275
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/v1/worker/lora_model_runner_mixin.py
vllm/v1/worker/lora_model_runner_mixin.py
+3
-1
No files found.
vllm/v1/worker/lora_model_runner_mixin.py
View file @
7be3a59d
...
@@ -8,6 +8,7 @@ from contextlib import contextmanager
...
@@ -8,6 +8,7 @@ from contextlib import contextmanager
from
typing
import
Union
from
typing
import
Union
import
numpy
as
np
import
numpy
as
np
import
torch
import
torch.nn
as
nn
import
torch.nn
as
nn
from
vllm.config
import
LoRAConfig
,
ModelConfig
,
SchedulerConfig
from
vllm.config
import
LoRAConfig
,
ModelConfig
,
SchedulerConfig
...
@@ -31,7 +32,8 @@ class LoRAModelRunnerMixin:
...
@@ -31,7 +32,8 @@ class LoRAModelRunnerMixin:
def
load_lora_model
(
self
,
model
:
nn
.
Module
,
model_config
:
ModelConfig
,
def
load_lora_model
(
self
,
model
:
nn
.
Module
,
model_config
:
ModelConfig
,
scheduler_config
:
SchedulerConfig
,
scheduler_config
:
SchedulerConfig
,
lora_config
:
LoRAConfig
,
device
:
str
)
->
nn
.
Module
:
lora_config
:
LoRAConfig
,
device
:
torch
.
device
)
->
nn
.
Module
:
if
not
supports_lora
(
model
):
if
not
supports_lora
(
model
):
raise
ValueError
(
raise
ValueError
(
...
...
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