Skip to content

feat: add PR E benchmarks to STANDARD_TASK_MAP and model_roles support - #142

Merged
j-mok-dev merged 2 commits into
mainfrom
feat/curated-collections-pr-e
Sep 4, 2026
Merged

feat: add PR E benchmarks to STANDARD_TASK_MAP and model_roles support#142
j-mok-dev merged 2 commits into
mainfrom
feat/curated-collections-pr-e

Conversation

@j-mok-dev

Copy link
Copy Markdown
Contributor

What and why

Add 4 new inspect-evals benchmarks to STANDARD_TASK_MAP (HLE, BFCL, CyberSecEval-2-PI, DocVQA) and support parameters.model_roles in standard mode for judge/grader model override.

The model_roles feature allows benchmarks like HLE — which hardcodes an OpenRouter judge upstream — to be redirected to openai/gpt-4o-mini (or any other model) at runtime via provider/collection YAML, without patching inspect-evals.

Companion PR: eval-hub/eval-hub#954
Issue: eval-hub/eval-hub#941

Assisted-by: Cursor (Claude)

Type

  • feat
  • fix
  • docs
  • refactor / chore
  • test / ci

Testing

  • Tests added or updated

  • Tested manually

  • Unit tests: 63/63 pass (3 new model_roles tests)

  • Local smoke: HLE, BFCL, CyberSecEval-PI, DocVQA PASS (Ollama + gpt-4o-mini judge)

  • lighteval/RULER benchmarks: blocked locally (Ollama tokenizer/API limits)

  • Reviewer: staging validation with vLLM endpoint needed for full coverage

@j-mok-dev
j-mok-dev requested a review from a team as a code owner September 2, 2026 21:53
@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 1ddcbf08-f72b-4623-b6e4-c4f722bb6ffe


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ruivieira ruivieira left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @j-mok-dev. LGTM, just left a minor comment.

Comment thread adapters/inspect/_execution.py Outdated
# models (e.g. HLE defaults to an OpenRouter judge). Provider YAML can
# specify parameters.model_roles: {grader: "openai/gpt-4o-mini"} to
# override at runtime without changing inspect-evals upstream defaults.
for role, spec in (config.parameters.get("model_roles") or {}).items():

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add an explicit isinstance guard for model_roles?
if a list is passed (eg model_roles: [openai/gpt-4o-mini]) wouldn't the truthy list pass the check and .items() raise AttributeError?
We could do

model_roles = config.parameters.get("model_roles") or {}
if not isinstance(model_roles, dict):
    raise ValueError(
        f"parameters.model_roles must be a dict (got {type(model_roles).__name__}). "
        "Example: model_roles: {grader: openai/gpt-4o-mini}"
    )
for role, spec in model_roles.items():
    cmd += ["--model-role", f"{role}={spec}"]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Updated!

Add HLE, BFCL, CyberSecEval-2-PI, DocVQA to STANDARD_TASK_MAP.
Support parameters.model_roles in standard mode for judge/grader
override (e.g. HLE's OpenRouter default → openai/gpt-4o-mini).
Add 3 unit tests for model_roles injection.

Refs: eval-hub#936, eval-hub#941
Signed-off-by: Jooyeon Mok <jmok@redhat.com>
@j-mok-dev
j-mok-dev force-pushed the feat/curated-collections-pr-e branch from 1b147ea to 7e7c186 Compare September 4, 2026 14:24
@j-mok-dev
j-mok-dev requested a review from ruivieira September 4, 2026 14:25
@j-mok-dev
j-mok-dev merged commit 19f64bc into main Sep 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants