Migrate all ServerArgs fields to Annotated style, reduce add_cli_args by ~2400 lines (#28919)

This commit is contained in:
Lianmin Zheng
2026-06-22 08:34:37 -07:00
committed by GitHub
parent 6b2c730bf7
commit b28e990161
4 changed files with 1856 additions and 2760 deletions
@@ -128,7 +128,7 @@ class TestServerArgsMigratedCliMetadata(CustomTestCase):
for option in ("--data-parallel-size", "--dp-size"):
with self.subTest(option=option):
args = self.parser.parse_args(["--model", "dummy", option, "3"])
self.assertEqual(args.data_parallel_size, 3)
self.assertEqual(args.dp_size, 3)
self.assertEqual(ServerArgs.from_cli_args(args).dp_size, 3)
def test_migrated_and_manual_options_parse_together(self):