-
Notifications
You must be signed in to change notification settings - Fork 192
Add aime26 #1256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add aime26 #1256
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # settings that define how evaluation should be done by default (all can be changed from cmdline) | ||
| DATASET_GROUP = "math" | ||
| METRICS_TYPE = "math" | ||
| GENERATION_ARGS = "++prompt_config=generic/math ++eval_type=math" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| import argparse | ||
| import json | ||
| from pathlib import Path | ||
|
|
||
| from datasets import load_dataset | ||
| from tqdm import tqdm | ||
|
|
||
|
|
||
| def format_entry(entry): | ||
| return { | ||
| "id": f"aime26-{entry['problem_idx']}", | ||
| "problem": entry["problem"], | ||
| "expected_answer": str(entry["answer"]), | ||
| } | ||
|
|
||
|
|
||
| def write_data_to_file(output_file, data): | ||
| with open(output_file, "wt", encoding="utf-8") as fout: | ||
| for entry in tqdm(data, desc=f"Writing {output_file.name}"): | ||
| json.dump(format_entry(entry), fout, ensure_ascii=False) | ||
| fout.write("\n") | ||
|
|
||
|
|
||
| def main(args): | ||
| dataset = load_dataset("MathArena/aime_2026", split="train") | ||
| data_dir = Path(__file__).absolute().parent | ||
| data_dir.mkdir(exist_ok=True) | ||
| output_file = data_dir / f"{args.split}.jsonl" | ||
| write_data_to_file(output_file, dataset) | ||
|
Comment on lines
+38
to
+43
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check if other prepare.py scripts in this repo also load a different split than the output name
rg -n 'load_dataset.*split=' --glob 'nemo_skills/dataset/*/prepare.py' -A2 -B2Repository: NVIDIA-NeMo/Skills Length of output: 10510 Add a clarifying comment explaining the hardcoded split. The dataset is loaded with 🤖 Prompt for AI Agents |
||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| parser = argparse.ArgumentParser() | ||
| parser.add_argument("--split", default="test", choices=("test",), help="Dataset split to process.") | ||
| args = parser.parse_args() | ||
| main(args) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copyright year mismatch with
prepare.py.This file says
Copyright (c) 2024whileprepare.pysaysCopyright (c) 2026. Since this is a new file for a 2026 benchmark, the year should likely be 2026 to be consistent.🤖 Prompt for AI Agents