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
03def5e3
Unverified
Commit
03def5e3
authored
Oct 03, 2025
by
shubham singhal
Committed by
GitHub
Oct 03, 2025
Browse files
Fix [test]: Env:SGLANG_TORCH_PROFILER_DIR for pytest. (#10780)
parent
6ae3f05b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
python/sglang/srt/environ.py
python/sglang/srt/environ.py
+1
-0
test/srt/test_start_profile.py
test/srt/test_start_profile.py
+2
-1
No files found.
python/sglang/srt/environ.py
View file @
03def5e3
...
...
@@ -126,6 +126,7 @@ class Envs:
SGLANG_DISABLE_REQUEST_LOGGING
=
EnvBool
(
False
)
SGLANG_SIMULATE_ACC_LEN
=
EnvFloat
(
-
1
)
SGLANG_SIMULATE_ACC_METHOD
=
EnvStr
(
"multinomial"
)
SGLANG_TORCH_PROFILER_DIR
=
EnvStr
(
"/tmp"
)
# Model Parallel
SGLANG_USE_MESSAGE_QUEUE_BROADCASTER
=
EnvBool
(
True
)
...
...
test/srt/test_start_profile.py
View file @
03def5e3
...
...
@@ -9,6 +9,7 @@ import unittest
import
requests
from
sglang.srt.environ
import
envs
from
sglang.srt.utils
import
kill_process_tree
from
sglang.test.test_utils
import
(
DEFAULT_SMALL_MODEL_NAME_FOR_TEST
,
...
...
@@ -25,6 +26,7 @@ class TestStartProfile(CustomTestCase):
@
classmethod
def
setUpClass
(
cls
):
envs
.
SGLANG_TORCH_PROFILER_DIR
.
set
(
OUTPUT_DIR
)
cls
.
model
=
DEFAULT_SMALL_MODEL_NAME_FOR_TEST
cls
.
base_url
=
DEFAULT_URL_FOR_TEST
cls
.
process
=
popen_launch_server
(
...
...
@@ -111,5 +113,4 @@ class TestStartProfile(CustomTestCase):
if
__name__
==
"__main__"
:
os
.
environ
[
"SGLANG_TORCH_PROFILER_DIR"
]
=
OUTPUT_DIR
unittest
.
main
()
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