MCPcopy Create free account
hub / github.com/THUDM/GLM / parse_args

Function parse_args

scripts/dispatcher.py:145–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143
144
145def parse_args():
146 parser = argparse.ArgumentParser(description='Dispatcher to run all experiments')
147
148 parser.add_argument("--gpu", type=str, default='0,1,2,3',
149 help='list of available gpus')
150 parser.add_argument("--n_gpu", type=int, default=1,
151 help="number of gpus per job")
152 parser.add_argument("--model", type=str, default='blocklm-roberta-large')
153 parser.add_argument("--task", type=str, required=True)
154 parser.add_argument("--overwrite", action='store_true', default=False,
155 help='whether to rerun experiments with the same result '
156 'file location')
157 parser.add_argument("--debug", action='store_true', default=False)
158
159 return parser.parse_args()
160
161
162def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected