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

Function parse_args

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

Source from the content-addressed store, hash-verified

6
7
8def parse_args():
9 parser = argparse.ArgumentParser(description='evaluate 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 parser.add_argument(
14 '--checkpoint_path',
15 help='checkpoint to be evaluated',
16 type=str,
17 default=None)
18 args = parser.parse_args()
19 return args
20
21
22def 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…