Skip to content

Commit c483377

Browse files
authored
Fix wrong variable name when stopping memory profile (#4772)
1 parent 74e0ac1 commit c483377

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
@@ -1887,7 +1887,7 @@ def stop_profile(self) -> None:
18871887

18881888
if "MEM" in self.profiler_activities:
18891889
memory_profile_path = os.path.join(
1890-
self.torch_profiler_trace_dir,
1890+
self.torch_profiler_output_dir,
18911891
str(time.time()) + f"-TP-{self.tp_rank}-memory" + ".pickle",
18921892
)
18931893
torch.cuda.memory._dump_snapshot(memory_profile_path)

0 commit comments

Comments
 (0)