Skip to content

Commit 57c8d6b

Browse files
authored
Use rank info to save trace files (#2504)
1 parent c370348 commit 57c8d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchtune/training/_profiler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def trace_handler(
103103

104104
exporter = tensorboard_trace_handler(
105105
curr_trace_dir,
106-
worker_name=f"r0-{now.year}-{now.month}-{now.day}-{now.hour}-{now.minute}",
106+
worker_name=f"r{rank}-{now.year}-{now.month}-{now.day}-{now.hour}-{now.minute}",
107107
use_gzip=True,
108108
)
109109
exporter(prof)

0 commit comments

Comments
 (0)