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
6dffa4b0
Unverified
Commit
6dffa4b0
authored
Aug 08, 2024
by
Murali Andoorveedu
Committed by
GitHub
Aug 08, 2024
Browse files
[Bugfix] Fix LoRA with PP (#7292)
parent
48abee9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vllm/lora/models.py
vllm/lora/models.py
+3
-0
No files found.
vllm/lora/models.py
View file @
6dffa4b0
...
@@ -25,6 +25,7 @@ from vllm.lora.punica import PunicaWrapper
...
@@ -25,6 +25,7 @@ from vllm.lora.punica import PunicaWrapper
from
vllm.lora.utils
import
(
from_layer
,
from_layer_logits_processor
,
from
vllm.lora.utils
import
(
from_layer
,
from_layer_logits_processor
,
parse_fine_tuned_lora_name
,
replace_submodule
)
parse_fine_tuned_lora_name
,
replace_submodule
)
from
vllm.model_executor.models.interfaces
import
SupportsLoRA
from
vllm.model_executor.models.interfaces
import
SupportsLoRA
from
vllm.model_executor.models.utils
import
PPMissingLayer
from
vllm.utils
import
is_pin_memory_available
from
vllm.utils
import
is_pin_memory_available
logger
=
init_logger
(
__name__
)
logger
=
init_logger
(
__name__
)
...
@@ -432,6 +433,8 @@ class LoRAModelManager(AdapterModelManager):
...
@@ -432,6 +433,8 @@ class LoRAModelManager(AdapterModelManager):
def
_create_lora_modules
(
self
):
def
_create_lora_modules
(
self
):
for
module_name
,
module
in
self
.
model
.
named_modules
(
for
module_name
,
module
in
self
.
model
.
named_modules
(
remove_duplicate
=
False
):
remove_duplicate
=
False
):
if
isinstance
(
module
,
PPMissingLayer
):
continue
if
not
self
.
_match_target_modules
(
module_name
):
if
not
self
.
_match_target_modules
(
module_name
):
continue
continue
parts
=
module_name
.
split
(
"."
)[
-
1
]
parts
=
module_name
.
split
(
"."
)[
-
1
]
...
...
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