[Doc] Improve help examples for --compilation-config (#16729)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-04-18 12:22:34 +08:00
committed by GitHub
parent e37073efd7
commit c16fb5dae8
3 changed files with 17 additions and 8 deletions

View File

@@ -939,10 +939,11 @@ class EngineArgs:
'testing only. level 3 is the recommended level '
'for production.\n'
'To specify the full compilation config, '
'use a JSON string.\n'
'use a JSON string, e.g. ``{"level": 3, '
'"cudagraph_capture_sizes": [1, 2, 4, 8]}``\n'
'Following the convention of traditional '
'compilers, using -O without space is also '
'supported. -O3 is equivalent to -O 3.')
'compilers, using ``-O`` without space is also '
'supported. ``-O3`` is equivalent to ``-O 3``.')
parser.add_argument('--kv-transfer-config',
type=KVTransferConfig.from_cli,