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
2cf811a9
Unverified
Commit
2cf811a9
authored
Sep 16, 2025
by
Liangsheng Yin
Committed by
GitHub
Sep 16, 2025
Browse files
Fix `--dataset-path` in `bench_one_batch_server` (#10475)
parent
3b25dc12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
python/sglang/bench_one_batch_server.py
python/sglang/bench_one_batch_server.py
+2
-0
python/sglang/profiler.py
python/sglang/profiler.py
+2
-2
No files found.
python/sglang/bench_one_batch_server.py
View file @
2cf811a9
...
@@ -377,6 +377,7 @@ def run_benchmark(server_args: ServerArgs, bench_args: BenchArgs):
...
@@ -377,6 +377,7 @@ def run_benchmark(server_args: ServerArgs, bench_args: BenchArgs):
run_name
=
bench_args
.
run_name
,
run_name
=
bench_args
.
run_name
,
result_filename
=
bench_args
.
result_filename
,
result_filename
=
bench_args
.
result_filename
,
tokenizer
=
tokenizer
,
tokenizer
=
tokenizer
,
dataset_path
=
bench_args
.
dataset_path
,
)
)
)
)
...
@@ -402,6 +403,7 @@ def run_benchmark(server_args: ServerArgs, bench_args: BenchArgs):
...
@@ -402,6 +403,7 @@ def run_benchmark(server_args: ServerArgs, bench_args: BenchArgs):
profile
=
bench_args
.
profile
,
profile
=
bench_args
.
profile
,
profile_steps
=
bench_args
.
profile_steps
,
profile_steps
=
bench_args
.
profile_steps
,
profile_by_stage
=
bench_args
.
profile_by_stage
,
profile_by_stage
=
bench_args
.
profile_by_stage
,
dataset_path
=
bench_args
.
dataset_path
,
)[
-
1
],
)[
-
1
],
)
)
)
)
...
...
python/sglang/profiler.py
View file @
2cf811a9
...
@@ -15,7 +15,7 @@ from typing import List, Optional
...
@@ -15,7 +15,7 @@ from typing import List, Optional
import
requests
import
requests
P
ARENT_FOLDER
=
"/tmp/sglang-profile"
P
ROFILER_DIR
=
os
.
getenv
(
"SGLANG_TORCH_PROFILER_DIR"
,
"/tmp"
)
def
_run_profile
(
def
_run_profile
(
...
@@ -27,7 +27,7 @@ def _run_profile(
...
@@ -27,7 +27,7 @@ def _run_profile(
profile_by_stage
:
bool
=
False
,
profile_by_stage
:
bool
=
False
,
)
->
str
:
)
->
str
:
if
output_dir
is
None
:
if
output_dir
is
None
:
output_dir
=
P
ARENT_FOLDE
R
output_dir
=
P
ROFILER_DI
R
output_dir
=
os
.
path
.
normpath
(
output_dir
)
output_dir
=
os
.
path
.
normpath
(
output_dir
)
output_dir
=
os
.
path
.
abspath
(
output_dir
)
output_dir
=
os
.
path
.
abspath
(
output_dir
)
...
...
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