MCPcopy Index your code
hub / github.com/InternLM/lmdeploy / add_parser_checkenv

Method add_parser_checkenv

lmdeploy/cli/cli.py:84–96  ·  view source on GitHub ↗

Add parser for check_env command.

()

Source from the content-addressed store, hash-verified

82
83 @staticmethod
84 def add_parser_checkenv():
85 """Add parser for check_env command."""
86 parser = CLI.subparsers.add_parser('check_env',
87 formatter_class=DefaultsAndTypesHelpFormatter,
88 description=CLI.check_env.__doc__,
89 help=CLI.check_env.__doc__)
90 parser.set_defaults(run=CLI.check_env)
91 parser.add_argument('--dump-file',
92 type=str,
93 default=None,
94 help='The file path to save env info. Only '
95 'support file format in `json`, `yml`,'
96 ' `pkl`')
97
98 @staticmethod
99 def check_env(args):

Callers 1

add_parsersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected