Skip to content

Commit 14af195

Browse files
committed
ruff
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
1 parent 9b40e9d commit 14af195

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nemo_automodel/components/distributed/parallel_styles.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,7 @@ def _partition_linear_fn(self, name, module, device_mesh):
164164
def lora_a_output_hook(module, input, output):
165165
if isinstance(output, DTensor):
166166
if any(isinstance(p, Shard) for p in output.placements):
167-
output = output.redistribute(
168-
device_mesh=output.device_mesh, placements=[Replicate()]
169-
)
167+
output = output.redistribute(device_mesh=output.device_mesh, placements=[Replicate()])
170168
return output
171169

172170
if hasattr(module, "lora_A"):

0 commit comments

Comments
 (0)