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
61fed92c
Unverified
Commit
61fed92c
authored
Jan 03, 2025
by
ZincCat
Committed by
GitHub
Jan 03, 2025
Browse files
[Bugfix] Fix ColumnParallelLinearWithLoRA slice (#11708)
Signed-off-by:
ZincCat
<
zincchloride@outlook.com
>
parent
80c751e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/lora/layers.py
vllm/lora/layers.py
+2
-2
No files found.
vllm/lora/layers.py
View file @
61fed92c
...
...
@@ -479,7 +479,7 @@ class ColumnParallelLinearWithLoRA(BaseLinearLayerWithLoRA):
# ColumnParallelLinear.
else
:
tensor_model_parallel_rank
=
get_tensor_model_parallel_rank
()
shard_size
=
self
.
output_
dim
shard_size
=
self
.
output_
size
start_idx
=
tensor_model_parallel_rank
*
shard_size
end_idx
=
(
tensor_model_parallel_rank
+
1
)
*
shard_size
lora_b
=
lora_b
[:,
start_idx
:
end_idx
]
...
...
@@ -490,7 +490,7 @@ class ColumnParallelLinearWithLoRA(BaseLinearLayerWithLoRA):
if
bias
is
None
:
return
bias
tensor_model_parallel_rank
=
get_tensor_model_parallel_rank
()
shard_size
=
self
.
output_
dim
shard_size
=
self
.
output_
size
start_idx
=
tensor_model_parallel_rank
*
shard_size
end_idx
=
(
tensor_model_parallel_rank
+
1
)
*
shard_size
bias
=
bias
[
start_idx
:
end_idx
]
...
...
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