Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
c483377e
Unverified
Commit
c483377e
authored
Mar 29, 2025
by
Fr4nk1in
Committed by
GitHub
Mar 28, 2025
Browse files
Fix wrong variable name when stopping memory profile (#4772)
parent
74e0ac1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/managers/scheduler.py
python/sglang/srt/managers/scheduler.py
+1
-1
No files found.
python/sglang/srt/managers/scheduler.py
View file @
c483377e
...
@@ -1887,7 +1887,7 @@ class Scheduler(
...
@@ -1887,7 +1887,7 @@ class Scheduler(
if
"MEM"
in
self
.
profiler_activities
:
if
"MEM"
in
self
.
profiler_activities
:
memory_profile_path
=
os
.
path
.
join
(
memory_profile_path
=
os
.
path
.
join
(
self
.
torch_profiler_
trace
_dir
,
self
.
torch_profiler_
output
_dir
,
str
(
time
.
time
())
+
f
"-TP-
{
self
.
tp_rank
}
-memory"
+
".pickle"
,
str
(
time
.
time
())
+
f
"-TP-
{
self
.
tp_rank
}
-memory"
+
".pickle"
,
)
)
torch
.
cuda
.
memory
.
_dump_snapshot
(
memory_profile_path
)
torch
.
cuda
.
memory
.
_dump_snapshot
(
memory_profile_path
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment