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
21906a6f
Unverified
Commit
21906a6f
authored
Oct 09, 2024
by
Ahmad Fahadh Ilyas
Committed by
GitHub
Oct 09, 2024
Browse files
[Bugfix] Fix lora loading for Compressed Tensors in #9120 (#9179)
parent
dc4aea67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vllm/lora/layers.py
vllm/lora/layers.py
+3
-0
No files found.
vllm/lora/layers.py
View file @
21906a6f
...
@@ -39,6 +39,9 @@ def _get_lora_device(base_layer: nn.Module) -> torch.device:
...
@@ -39,6 +39,9 @@ def _get_lora_device(base_layer: nn.Module) -> torch.device:
# unquantizedLinear
# unquantizedLinear
if
hasattr
(
base_layer
,
"weight"
):
if
hasattr
(
base_layer
,
"weight"
):
return
base_layer
.
weight
.
device
return
base_layer
.
weight
.
device
# Compressed Tensor
elif
hasattr
(
base_layer
,
"weight_packed"
):
return
base_layer
.
weight_packed
.
device
# GPTQ/AWQ
# GPTQ/AWQ
elif
hasattr
(
base_layer
,
"qweight"
):
elif
hasattr
(
base_layer
,
"qweight"
):
return
base_layer
.
qweight
.
device
return
base_layer
.
qweight
.
device
...
...
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