Files
wehub-resource-sync a203934033
Lint test / lint (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:34:58 +08:00

20 lines
449 B
Python

# Copyright (c) ModelScope Contributors. All rights reserved.
from typing import Dict
from ..main import cli_main as swift_cli_main
ROUTE_MAPPING: Dict[str, str] = {
'pt': 'swift.cli._megatron.pt',
'sft': 'swift.cli._megatron.sft',
'rlhf': 'swift.cli._megatron.rlhf',
'export': 'swift.cli._megatron.export',
}
def cli_main():
return swift_cli_main(ROUTE_MAPPING, is_megatron=True)
if __name__ == '__main__':
cli_main()