-
Notifications
You must be signed in to change notification settings - Fork 374
Add pass@1 for GPQA-D and MATH-500 #698
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,7 @@ | |
| from typing import Optional | ||
|
|
||
| import torch | ||
| from pydantic import NonNegativeFloat, PositiveInt | ||
| from pydantic import NonNegativeFloat, NonNegativeInt, PositiveInt | ||
| from tqdm import tqdm | ||
|
|
||
| from lighteval.data import GenerativeTaskDataset, LoglikelihoodDataset | ||
|
|
@@ -82,7 +82,7 @@ class VLLMModelConfig(ModelConfig): | |
| gpu_memory_utilization: NonNegativeFloat = 0.9 # lower this if you are running out of memory | ||
| max_model_length: PositiveInt | None = None # maximum length of the model, ussually infered automatically. reduce this if you encouter OOM issues, 4096 is usually enough | ||
| swap_space: PositiveInt = 4 # CPU swap space size (GiB) per GPU. | ||
| seed: PositiveInt = 1234 | ||
| seed: NonNegativeInt = 1234 | ||
|
Member
Author
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. Needed to allow |
||
| trust_remote_code: bool = False | ||
| use_chat_template: bool = False | ||
| add_special_tokens: bool = True | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -324,10 +324,14 @@ | |
| few_shots_select=None, | ||
| generation_size=32768, | ||
| metric=[ | ||
| Metrics.expr_gold_metric, | ||
|
Member
Author
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. This was causing redundant computation since we can get the same result from pass@1 (n=1) |
||
| Metrics.math_pass_at_1_1n, | ||
| Metrics.math_pass_at_1_4n, | ||
| Metrics.math_pass_at_1_8n, | ||
| Metrics.math_pass_at_1_16n, | ||
| Metrics.math_pass_at_1_32n, | ||
| Metrics.math_pass_at_1_64n, | ||
| ], | ||
| version=1, | ||
| version=2, | ||
| ) | ||
| aime24_gpassk = LightevalTaskConfig( | ||
| name="aime24_gpassk", | ||
|
|
@@ -355,10 +359,14 @@ | |
| few_shots_select=None, | ||
| generation_size=10000, | ||
| metric=[ | ||
| Metrics.expr_gold_metric, | ||
| Metrics.math_pass_at_1_1n, | ||
| Metrics.math_pass_at_1_4n, | ||
| Metrics.math_pass_at_1_8n, | ||
| Metrics.math_pass_at_1_16n, | ||
| Metrics.math_pass_at_1_32n, | ||
| Metrics.math_pass_at_1_64n, | ||
| ], | ||
| version=1, | ||
| version=2, | ||
| ) | ||
| aime25_gpassk = LightevalTaskConfig( | ||
| name="aime25_gpassk", | ||
|
|
@@ -7809,10 +7817,14 @@ | |
| few_shots_split=None, | ||
| few_shots_select=None, | ||
| generation_size=32768, # needed for reasoning models like R1 | ||
| metric=[Metrics.gpqa_instruct_metric], | ||
| metric=[ | ||
| Metrics.gpqa_instruct_pass_at_1_1n, | ||
| Metrics.gpqa_instruct_pass_at_1_4n, | ||
| Metrics.gpqa_instruct_pass_at_1_8n, | ||
| ], | ||
| stop_sequence=[], # no stop sequence, will use eos token | ||
| trust_dataset=True, | ||
| version=0, | ||
| version=1, | ||
| ) | ||
| gpqa_extended_instruct_lighteval = LightevalTaskConfig( | ||
| name="gpqa:extended", | ||
|
|
||
Oops, something went wrong.
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.
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.
I had to pass
formatted_docin order to enable pass@1 with GPQA