diff --git a/python/sglang/bench_one_batch.py b/python/sglang/bench_one_batch.py index dbe52399f..e1a69ae15 100644 --- a/python/sglang/bench_one_batch.py +++ b/python/sglang/bench_one_batch.py @@ -117,7 +117,7 @@ class BenchArgs: @classmethod def from_cli_args(cls, args: argparse.Namespace): - # use the default value's type to case the args into correct types. + # use the default value's type to cast the args into correct types. attrs = [(attr.name, type(attr.default)) for attr in dataclasses.fields(cls)] return cls( **{attr: attr_type(getattr(args, attr)) for attr, attr_type in attrs} diff --git a/python/sglang/bench_one_batch_server.py b/python/sglang/bench_one_batch_server.py index 5f0759a7c..1fc4ff58d 100644 --- a/python/sglang/bench_one_batch_server.py +++ b/python/sglang/bench_one_batch_server.py @@ -57,7 +57,7 @@ class BenchArgs: @classmethod def from_cli_args(cls, args: argparse.Namespace): - # use the default value's type to case the args into correct types. + # use the default value's type to cast the args into correct types. attrs = [(attr.name, type(attr.default)) for attr in dataclasses.fields(cls)] return cls( **{attr: attr_type(getattr(args, attr)) for attr, attr_type in attrs}