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
"vscode:/vscode.git/clone" did not exist on "b93ef5e56d5ea0a4ecf6f79eba422b70c33384f9"
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
Show 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):
...
@@ -2275,7 +2275,7 @@ def run_benchmark(args_: argparse.Namespace):
# Read dataset
# Read dataset
backend
=
args
.
backend
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_id
=
args
.
tokenizer
if
args
.
tokenizer
is
not
None
else
args
.
model
tokenizer
=
get_tokenizer
(
tokenizer_id
)
tokenizer
=
get_tokenizer
(
tokenizer_id
)
input_requests
=
get_dataset
(
args
,
tokenizer
,
model_id
)
input_requests
=
get_dataset
(
args
,
tokenizer
,
model_id
)
...
@@ -2374,6 +2374,11 @@ if __name__ == "__main__":
...
@@ -2374,6 +2374,11 @@ if __name__ == "__main__":
type
=
str
,
type
=
str
,
help
=
"Name or path of the model. If not set, the default model will request /v1/models for conf."
,
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
(
parser
.
add_argument
(
"--tokenizer"
,
"--tokenizer"
,
type
=
str
,
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