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

Function parse_args

tools/tokenizer.py:116–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114
115
116def parse_args():
117 parser = argparse.ArgumentParser()
118 parser.add_argument(
119 "--text_input_path",
120 type=str,
121 required=True,
122 help="Path to the input text file.",
123 )
124 parser.add_argument("--bin_output_path", type=str, required=True, help="Path to the output bin file.")
125
126 return parser.parse_args()
127
128
129def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected