20 lines
449 B
Python
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()
|