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
zhaoyu6
sglang
Commits
f01b0925
"...gtest/git@developer.sourcefind.cn:yangql/googletest.git" did not exist on "a198966dd349f446f0ab065e5576db7ac1e48e63"
Unverified
Commit
f01b0925
authored
Mar 25, 2025
by
fzyzcjy
Committed by
GitHub
Mar 24, 2025
Browse files
Super tiny fix typo (#4738)
parent
14269198
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
python/sglang/bench_one_batch.py
python/sglang/bench_one_batch.py
+1
-1
python/sglang/bench_one_batch_server.py
python/sglang/bench_one_batch_server.py
+1
-1
No files found.
python/sglang/bench_one_batch.py
View file @
f01b0925
...
@@ -117,7 +117,7 @@ class BenchArgs:
...
@@ -117,7 +117,7 @@ class BenchArgs:
@
classmethod
@
classmethod
def
from_cli_args
(
cls
,
args
:
argparse
.
Namespace
):
def
from_cli_args
(
cls
,
args
:
argparse
.
Namespace
):
# use the default value's type to cas
e
the args into correct types.
# use the default value's type to cas
t
the args into correct types.
attrs
=
[(
attr
.
name
,
type
(
attr
.
default
))
for
attr
in
dataclasses
.
fields
(
cls
)]
attrs
=
[(
attr
.
name
,
type
(
attr
.
default
))
for
attr
in
dataclasses
.
fields
(
cls
)]
return
cls
(
return
cls
(
**
{
attr
:
attr_type
(
getattr
(
args
,
attr
))
for
attr
,
attr_type
in
attrs
}
**
{
attr
:
attr_type
(
getattr
(
args
,
attr
))
for
attr
,
attr_type
in
attrs
}
...
...
python/sglang/bench_one_batch_server.py
View file @
f01b0925
...
@@ -57,7 +57,7 @@ class BenchArgs:
...
@@ -57,7 +57,7 @@ class BenchArgs:
@
classmethod
@
classmethod
def
from_cli_args
(
cls
,
args
:
argparse
.
Namespace
):
def
from_cli_args
(
cls
,
args
:
argparse
.
Namespace
):
# use the default value's type to cas
e
the args into correct types.
# use the default value's type to cas
t
the args into correct types.
attrs
=
[(
attr
.
name
,
type
(
attr
.
default
))
for
attr
in
dataclasses
.
fields
(
cls
)]
attrs
=
[(
attr
.
name
,
type
(
attr
.
default
))
for
attr
in
dataclasses
.
fields
(
cls
)]
return
cls
(
return
cls
(
**
{
attr
:
attr_type
(
getattr
(
args
,
attr
))
for
attr
,
attr_type
in
attrs
}
**
{
attr
:
attr_type
(
getattr
(
args
,
attr
))
for
attr
,
attr_type
in
attrs
}
...
...
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