Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions megatron/core/tensor_parallel/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ def get_extra_state(self) -> None:
def extra_repr(self) -> str:
"""Extra context to add to the module's string representation."""
tp = self.output_size // self.output_size_per_partition
use_bias = self.bias is not None and self.bias is True
use_bias = self.bias is not None
return (
f"in_features={self.input_size}, "
f"out_features={self.output_size}, "
Expand Down Expand Up @@ -1381,7 +1381,7 @@ def get_extra_state(self) -> None:
def extra_repr(self) -> str:
"""Extra context to add to the module's string representation."""
tp = self.input_size // self.input_size_per_partition
use_bias = self.bias is not None and self.bias is True
use_bias = self.bias is not None
return (
f"in_features={self.input_size}, "
f"out_features={self.output_size}, "
Expand Down
Loading