Skip to content

Commit b3f10f2

Browse files
Fr4nk1inCsjimoosciuc
authored andcommitted
Fix wrong variable name when stopping memory profile (sgl-project#4772)
1 parent f4aca9f commit b3f10f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/sglang/srt/managers/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2127,7 +2127,7 @@ def stop_profile(self) -> None:
21272127

21282128
if "MEM" in self.profiler_activities:
21292129
memory_profile_path = os.path.join(
2130-
self.torch_profiler_trace_dir,
2130+
self.torch_profiler_output_dir,
21312131
str(time.time()) + f"-TP-{self.tp_rank}-memory" + ".pickle",
21322132
)
21332133
torch.cuda.memory._dump_snapshot(memory_profile_path)

0 commit comments

Comments
 (0)