mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 01:15:26 +08:00
Remove redundant code in ColumnParallelLinear (#146)
This commit is contained in:
parent
5020e1e80c
commit
da5ddcd544
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user