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
14 changes: 14 additions & 0 deletions benchmarks/swebenchmultimodal/eval_infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import argparse
import json
import shutil
import subprocess
import sys
from pathlib import Path
Expand Down Expand Up @@ -279,6 +280,19 @@ def main() -> None:
str(output_file), args.dataset, args.split, args.workers, args.run_id
)

# Copy report.json to output.report.json for consistency with other benchmarks
# SWE-Bench Multimodal creates report.json in the same directory as the predictions file
report_path = output_file.parent / "report.json"
dest_report_path = input_file.with_suffix(".report.json")

if report_path.exists():
shutil.copy(str(report_path), str(dest_report_path))
logger.info(f"Copied report file to: {dest_report_path}")
else:
logger.warning(
f"Report file not found at expected location: {report_path}"
)

# Generate cost report as final step
generate_cost_report(str(input_file))

Expand Down