MCPcopy Create free account
hub / github.com/ZinYY/TreeLoRA / parse_args

Function parse_args

inference/chatbot.py:17–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def parse_args():
18 parser = argparse.ArgumentParser()
19 parser.add_argument("--path",
20 type=str,
21 help="Directory containing trained actor model")
22 parser.add_argument(
23 "--max_new_tokens",
24 type=int,
25 default=128,
26 help="Maximum new tokens to generate per response",
27 )
28 args = parser.parse_args()
29 return args
30
31
32def get_generator(path):

Callers 1

chatbot.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected