Skip to content

Commit 206cc88

Browse files
committed
does lint undo my intentional change huhhhhh
1 parent b35fa29 commit 206cc88

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

torchtune/training/_activation_offloading.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,7 @@ def wait_and_del_remaining_references() -> None:
269269
else:
270270
# Kick off the process to bring tensors back
271271
with torch.cuda.stream(self.s1):
272-
gpu_tensor = maybe_gpu_tensor.to(
273-
device="cuda", non_blocking=True
274-
)
272+
gpu_tensor = maybe_gpu_tensor.to("cuda", non_blocking=True)
275273
maybe_gpu_tensor = gpu_tensor
276274

277275
# Tell comp stream to wait for the info to be loaded before executing

0 commit comments

Comments
 (0)