MCPcopy Create free account
hub / github.com/MiuLab/Taiwan-LLM / parse_args

Function parse_args

evaluation/run_tceval.py:43–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def parse_args():
44 parser = argparse.ArgumentParser(description="Run TC-Eval")
45 parser.add_argument(
46 "--model",
47 type=str,
48 default="yentinglin/Taiwan-LLM-7B-v2.0.1-chat",
49 help="Model name",
50 )
51 parser.add_argument(
52 "--temperature", type=float, default=0.0, help="Sampling temperature"
53 )
54 parser.add_argument(
55 "--max_tokens", type=int, default=128, help="Max tokens for generation"
56 )
57 parser.add_argument(
58 "--tensor_parallel_size", type=int, default=1, help="Tensor parallel size"
59 )
60 return parser.parse_args()
61
62
63def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected