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
c7b370c6
Unverified
Commit
c7b370c6
authored
Jun 19, 2025
by
Ning Xie
Committed by
GitHub
Jun 18, 2025
Browse files
raise exception for pin_lora (#19809)
Signed-off-by:
Andy Xie
<
andy.xning@gmail.com
>
parent
aa20d10a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
vllm/worker/worker_base.py
vllm/worker/worker_base.py
+2
-3
No files found.
vllm/worker/worker_base.py
View file @
c7b370c6
...
...
@@ -202,8 +202,7 @@ class LoRANotSupportedWorkerBase(WorkerBase):
raise
ValueError
(
f
"
{
type
(
self
)
}
does not support LoRA"
)
def
pin_lora
(
self
,
lora_id
:
int
)
->
bool
:
return
ValueError
(
f
"
{
type
(
self
)
}
does not support LoRA"
)
# type: ignore
raise
ValueError
(
f
"
{
type
(
self
)
}
does not support LoRA"
)
def
list_loras
(
self
)
->
Set
[
int
]:
raise
ValueError
(
f
"
{
type
(
self
)
}
does not support LoRA"
)
...
...
@@ -398,7 +397,7 @@ class LocalOrDistributedWorkerBase(WorkerBase):
model_input
,
worker_input
,
kwargs
=
inputs
num_steps
=
worker_input
.
num_steps
if
(
execute_model_req
is
not
None
and
execute_model_req
.
spec_step_idx
)
:
if
execute_model_req
is
not
None
and
execute_model_req
.
spec_step_idx
:
kwargs
[
"spec_step_idx"
]
=
execute_model_req
.
spec_step_idx
self
.
execute_worker
(
worker_input
)
...
...
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