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
cf0c2415
Unverified
Commit
cf0c2415
authored
Nov 01, 2025
by
carolove
Committed by
GitHub
Nov 01, 2025
Browse files
add served model name in bench serving (#12428)
parent
5538e05c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
python/sglang/bench_serving.py
python/sglang/bench_serving.py
+6
-1
No files found.
python/sglang/bench_serving.py
View file @
cf0c2415
...
...
@@ -2275,7 +2275,7 @@ def run_benchmark(args_: argparse.Namespace):
# Read dataset
backend
=
args
.
backend
model_id
=
args
.
model
model_id
=
args
.
served_model_name
or
args
.
model
tokenizer_id
=
args
.
tokenizer
if
args
.
tokenizer
is
not
None
else
args
.
model
tokenizer
=
get_tokenizer
(
tokenizer_id
)
input_requests
=
get_dataset
(
args
,
tokenizer
,
model_id
)
...
...
@@ -2374,6 +2374,11 @@ if __name__ == "__main__":
type
=
str
,
help
=
"Name or path of the model. If not set, the default model will request /v1/models for conf."
,
)
parser
.
add_argument
(
"--served-model-name"
,
type
=
str
,
help
=
"The name of the model as served by the serving service. If not set, this defaults to the value of --model."
,
)
parser
.
add_argument
(
"--tokenizer"
,
type
=
str
,
...
...
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