Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
da5ddcd5
Unverified
Commit
da5ddcd5
authored
Jun 10, 2023
by
Woosuk Kwon
Committed by
GitHub
Jun 10, 2023
Browse files
Remove redundant code in ColumnParallelLinear (#146)
parent
5020e1e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cacheflow/model_executor/parallel_utils/tensor_parallel/layers.py
...w/model_executor/parallel_utils/tensor_parallel/layers.py
+1
-1
No files found.
cacheflow/model_executor/parallel_utils/tensor_parallel/layers.py
View file @
da5ddcd5
...
@@ -305,7 +305,7 @@ class ColumnParallelLinear(torch.nn.Module):
...
@@ -305,7 +305,7 @@ class ColumnParallelLinear(torch.nn.Module):
"""
"""
bias
=
self
.
bias
if
not
self
.
skip_bias_add
else
None
bias
=
self
.
bias
if
not
self
.
skip_bias_add
else
None
input_parallel
=
copy_to_tensor_model_parallel_region
(
input_
)
input_parallel
=
input_
# Matrix multiply.
# Matrix multiply.
output_parallel
=
F
.
linear
(
input_parallel
,
self
.
weight
,
bias
)
output_parallel
=
F
.
linear
(
input_parallel
,
self
.
weight
,
bias
)
if
self
.
gather_output
:
if
self
.
gather_output
:
...
...
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