(4/n) Package Arena-Hard Task Variants - #82
Draft
kargibora wants to merge 1 commit into
Draft
Conversation
Define v0.1 and v2.0 from a shared YAML base and move dataset, baseline, prompt, and revision ownership out of legacy maps.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR migrates Arena-Hard v0.1 and v2.0 to the declarative task registry introduced in the previous PR.
Arena-Hard configuration was previously distributed across dataset utilities, revision maps, baseline constants, prompt
handling, and pairwise runner conditions. The two versions also share most of their configuration but require different
dataset variants and baseline policies.
The task definitions now provide a single source of truth for both versions.
Task structure
The definitions are organized as:
_base.yaml contains the configuration shared by both versions:
Each public task YAML extends the base and defines only its version-specific differences.
Version-specific behavior
Arena-Hard v0.1 declares:
Arena-Hard v2.0 declares:
Both versions allow users to provide a runtime baseline override when they want to compare against another model.
Dataset adapter
This PR adds an arena_hard dataset adapter responsible for:
Task specification
-> download pinned Arena-Hard JSONL files
-> normalize questions into instruction rows
-> normalize official answers into model-output rows
-> return canonical data to the pairwise runner
The adapter handles the different answer formats found in the upstream files while keeping those details out of the
generic pairwise runner.
A dataset-adapter registry now connects the adapter ID declared in YAML to its Python implementation.
Removed duplication
Arena-Hard-specific information is removed from legacy baseline, revision, prompt, and dataset dispatch mappings. The
task definition now owns this information, while the Python adapter only owns loading and normalization behavior.
This demonstrates how related benchmark versions can share a base definition while keeping their differences explicit
and easy to review.
Notes