MCPcopy
hub / github.com/EleutherAI/lm-evaluation-harness / parse_args

Function parse_args

scripts/zeno_visualize.py:21–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20
21def parse_args():
22 parser = argparse.ArgumentParser(
23 description="Upload your data to the Zeno AI evaluation platform to visualize results. This requires a ZENO_API_KEY in your environment variables. The eleuther harness must be run with log_samples=True and an output_path set for data to be written to disk."
24 )
25 parser.add_argument(
26 "--data_path",
27 required=True,
28 help="Where to find the results of the benchmarks that have been run. Uses the name of each subfolder as the model name.",
29 )
30 parser.add_argument(
31 "--project_name",
32 required=True,
33 help="The name of the generated Zeno project.",
34 )
35 return parser.parse_args()
36
37
38def sanitize_string(model_args_raw: str | dict) -> str:

Callers 1

mainFunction · 0.70

Calls 1

parse_argsMethod · 0.80

Tested by

no test coverage detected