lm-evaluation-harness
lm-evaluation-harness copied to clipboard
log_samples with multi args in model_args
i obtain an error when lm_eval try to save result in file. lm_eval uses model_args to do the file name but it don't remove the ':' character
the error:
Traceback (most recent call last):
File "
the command: lm_eval --model local-chat-completions --tasks gsm8k --model_args model=sn/mistral-7b-instruct-v0.2-LG,base_url=http://10.2.42.198:1234/v1 --log_samples --output_path output/mistral-7b-instruct-v0.2-LG/ --limit 4
perhaps you can modify : output_name = "{}_{}".format( re.sub("/|=", "__", args.model_args), task_name ) by :
output_name = "{}_{}".format( re.sub("/|=|:", "__", args.model_args), task_name )
same thing with zeno_visualize.py
model_args = re.sub(
"/|=|:",
"__",
json.load(
open(Path(args.data_path, model, "results.json"), encoding="utf-8")
)["config"]["model_args"],
Hello, thank you for raising this issue!
Since you've pointed out a fix for this, perhaps you could create a PR with this fix applied?