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
f2c3f66d
Unverified
Commit
f2c3f66d
authored
May 31, 2025
by
Fred Reiss
Committed by
GitHub
May 31, 2025
Browse files
[Bugfix] Fix for issue 17396 (#18773)
Signed-off-by:
Fred Reiss
<
frreiss@us.ibm.com
>
parent
0f5e0d56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
vllm/lora/ops/torch_ops/lora_ops.py
vllm/lora/ops/torch_ops/lora_ops.py
+5
-2
No files found.
vllm/lora/ops/torch_ops/lora_ops.py
View file @
f2c3f66d
...
...
@@ -36,10 +36,13 @@ def bgmv_expand(inputs: torch.Tensor,
if
outputs
.
shape
[
0
]
==
1
and
output_tensor
.
shape
[
0
]
!=
1
:
limit
=
1
# LoRA adapter and model may add different amounts of padding to output
common_len
=
min
(
outputs
.
shape
[
1
],
output_tensor
.
shape
[
1
])
if
add_inputs
:
output_tensor
[:,
:
outputs
.
shape
[
1
]
]
+=
outputs
[:
limit
,
:]
output_tensor
[:,
:
common_len
]
+=
outputs
[:
limit
,
:
common_len
]
else
:
output_tensor
[:,
:
outputs
.
shape
[
1
]
]
=
outputs
[:
limit
,
:]
output_tensor
[:,
:
common_len
]
=
outputs
[:
limit
,
:
common_len
]
def
sgmv_shrink
(
...
...
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