Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions evalplus/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def evaluate(
mini: bool = False,
noextreme: bool = False,
version: str = "default",
output_file: Optional[str] = None,
**model_kwargs,
):
if model_kwargs:
Expand All @@ -157,6 +158,9 @@ def evaluate(
assert samples.endswith(".jsonl")
result_path = samples.replace(".jsonl", "_eval_results.json")

if output_file is not None:
result_path = output_file

if os.path.isfile(result_path) and not i_just_wanna_run:
print(f"Load from previous results from {result_path}")
with open(result_path, "r") as f:
Expand Down