MCPcopy Index your code
hub / github.com/OpenDriveLab/ReSim / add_model_config_args

Function add_model_config_args

sat/arguments.py:15–28  ·  view source on GitHub ↗

Model arguments

(parser)

Source from the content-addressed store, hash-verified

13
14
15def add_model_config_args(parser):
16 """Model arguments"""
17
18 group = parser.add_argument_group("model", "model configuration")
19 group.add_argument("--base", type=str, nargs="*", help="config for input and saving") # nargs will initialize a list
20 group.add_argument(
21 "--model-parallel-size", type=int, default=1, help="size of the model parallel. only use if you are an expert."
22 )
23 group.add_argument("--force-pretrain", action="store_true")
24 group.add_argument("--device", type=int, default=-1)
25 group.add_argument("--debug", action="store_true")
26 group.add_argument("--log-image", type=bool, default=True)
27
28 return parser
29
30
31def add_sampling_config_args(parser):

Callers 1

get_argsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected