Portable result export: to_openeval()/from_openeval() for EvalInstance/EvalOutput?
まだ誰も着手していません。
評価
調査の方向性
まず benchmarks/utils/models.py と CONTRIBUTING.md を読み、次にリンクされている EvalPort 仕様と既存のベンチマーク出力パスを確認してください。双方向の変換を定義する前に、リポジトリ内のユーティリティと分離したアダプターのどちらが望ましいかをメンテナーに確認してください。合意されたスコープとフォーマットマッピングが定まり、受け入れられたインターフェースに対する検証とテストが完了すれば、完了とします。
索引モデルが issue の本文から書いたものです。
説明
Summary
Would to_openeval() / from_openeval() helpers for this repo's EvalInstance / EvalOutput models be useful, so runs from any of the ~20 benchmark harnesses here (SWE-Bench, GAIA, Harbor/TerminalBench, Commit0, etc.) could be exported into a portable, framework-agnostic result format?
Context
I looked through benchmarks/utils/models.py and CONTRIBUTING.md — this repo already has a clean, shared shape across every benchmark folder:
EvalInstance(id: str, data: dict[str, Any])— the per-task input, produced by every benchmark'sprepare_instances().EvalOutput(instance_id, attempt, test_result: dict[str, Any], instruction, metadata: EvalMetadata, history: list[Event], metrics: Metrics, error, instance, runtime_runs)— the per-task result, produced byevaluate_instance()and written out by everyeval_infer.py.EvalMetadata(llm, dataset, dataset_split, max_iterations, eval_output_dir, critic, workspace_type, ...)— the run-level config.
That's a real, shared, installable schema (not per-benchmark ad hoc JSON), which is exactly the situation EvalPort (spec: https://github.com/adhabnr-ux/evalport/blob/main/spec/SPEC.md) is meant for: a small JSON-Schema-defined format for portable eval test cases and result sets, with a Python SDK (evalport-sdk on PyPI, openeval.validate.validate_suite() / validate_result_set()) and 35+ community adapter packages (example: autogen-openeval-adapter).
What I'm proposing
Not a change to the harness itself — just two small, optional conversion functions (could live in benchmarks/utils/ or as a separate benchmarks-openeval-adapter package, whichever this repo prefers):
# sketch — field names taken from benchmarks/utils/models.py
from benchmarks.utils.models import EvalInstance, EvalOutput
def to_openeval_case(instance: EvalInstance, suite_id: str) -> dict:
"""EvalInstance -> an EvalPort testcase.json-shaped record."""
return {
"case_id": instance.id,
"suite_id": suite_id,
"input": instance.data,
}
def to_openeval_result(output: EvalOutput, suite_id: str) -> dict:
"""EvalOutput -> an EvalPort resultset.json-shaped record."""
return {
"suite_id": suite_id,
"case_id": output.instance_id,
"attempt": output.attempt,
"raw_result": output.test_result,
"error": output.error,
"cost_usd": getattr(output.metrics, "accumulated_cost", None)
if output.metrics
else None,
}
with the reverse direction (from_openeval_case → EvalInstance) letting an external OpenEval-format suite be dropped straight into prepare_instances().
Why this might be worth it for this repo specifically: with 20+ benchmark integrations already normalized to EvalInstance/EvalOutput, this would be the cheapest path to (a) comparing results across benchmarks and external tools in one place, and (b) letting other eval tooling consume benchmarks/ output without hand-writing a parser per benchmark.
Happy to put together a draft PR (either inside this repo under benchmarks/utils/, or as a standalone adapter package under evalport's adapters/) if this is a direction the maintainers are interested in — or to hear that it isn't a good fit given where the harness is headed.
- 主要言語
- Python
- スター
- 134
- フォーク
- 97
- 平均マージ
- 8日 23時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenHands/benchmarks のほかの issue
-
SWE-bench Pro and ProgramBench reports leave out instances that errored during inference再び着手できるかも @jahanvipandey22 が 8 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 3/5 半日 初心者へのやさしさ 62/100
OpenHands/benchmarks#791 · コメント 1 件 ·
-
create_docker_workspace never reuses locally-built images (tag mismatch with DockerDevWorkspace)オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
OpenHands/benchmarks#779 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
OpenHands/benchmarks#764 · コメント 16 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
OpenHands/benchmarks#744 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
OpenHands/benchmarks#726 ·
OpenHands/benchmarks の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
trycua/hermes-cua-spaces#17 ·
-
area:codegen backend:hip bug direction:output good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
status:waiting-for-triage type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
microsoftgraph/msgraph-sdk-python#1628 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
nautechsystems/nautilus_trader#5718 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: reme CLI crashes when the running server used a relative config path対応中かも @nurlanmnn が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
agentscope-ai/ReMe#770 ·
メンテナーはふだん 1 日以内に返信