MCPcopy Index your code
hub / github.com/modelscope/modelscope / parse_args

Function parse_args

modelscope/tools/train.py:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8def parse_args():
9 parser = argparse.ArgumentParser(description='Train a model')
10 parser.add_argument('config', help='config file path', type=str)
11 parser.add_argument(
12 'trainer_name', help='name for trainer', type=str, default=None)
13 args = parser.parse_args()
14 return args
15
16
17def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…