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
58e234a7
Unverified
Commit
58e234a7
authored
Apr 02, 2025
by
Jee Jee Li
Committed by
GitHub
Apr 02, 2025
Browse files
[Misc] V1 LoRA support CPU offload (#15843)
Signed-off-by:
Jee Jee Li
<
pandaleefree@gmail.com
>
parent
e86c414d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/config.py
vllm/config.py
+3
-3
No files found.
vllm/config.py
View file @
58e234a7
...
...
@@ -2434,9 +2434,9 @@ class LoRAConfig:
f
"max_loras (
{
self
.
max_loras
}
)"
)
def
verify_with_cache_config
(
self
,
cache_config
:
CacheConfig
):
# TODO LoRA supports CPU offload.
if
cache_config
.
cpu_offload_gb
>
0
:
raise
ValueError
(
"CPU offload is not supported with LoRA yet
."
)
if
cache_config
.
cpu_offload_gb
>
0
and
not
envs
.
VLLM_USE_V1
:
raise
ValueError
(
"V0 LoRA does not support CPU offload, please use V1
."
)
def
verify_with_model_config
(
self
,
model_config
:
ModelConfig
):
if
self
.
lora_dtype
in
(
None
,
"auto"
):
...
...
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