MCPcopy Create free account
hub / github.com/microsoft/BitNet / parse_args

Function parse_args

utils/e2e_benchmark.py:48–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 run_command(command)
47
48def parse_args():
49 parser = argparse.ArgumentParser(description='Setup the environment for running the inference')
50 parser.add_argument("-m", "--model", type=str, help="Path to model file", required=True)
51 parser.add_argument("-n", "--n-token", type=int, help="Number of generated tokens", required=False, default=128)
52 parser.add_argument("-p", "--n-prompt", type=int, help="Prompt to generate text from", required=False, default=512)
53 parser.add_argument("-t", "--threads", type=int, help="Number of threads to use", required=False, default=2)
54 return parser.parse_args()
55
56if __name__ == "__main__":
57 logging.basicConfig(level=logging.INFO)

Callers 1

e2e_benchmark.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected