-
Notifications
You must be signed in to change notification settings - Fork 163
Add LCB Prompts, fix regex bug in robust_eval, remove CR, make summarize_robustness generic for more benchmarks, update docstrings. #1079
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 all commits
Commits
Show all changes
4 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
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
10 changes: 10 additions & 0 deletions
10
nemo_skills/prompt/config/robustness/code_prompts/aai_prompt.yaml
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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # https://github.com/NVIDIA-NeMo/Skills/blob/main/nemo_skills/prompt/config/eval/aai/livecodebench.yaml | ||
| # almost identical to https://artificialanalysis.ai/methodology/intelligence-benchmarking#intelligence-index-evaluation-suite-overview | ||
| # except we don't add ### before Format. | ||
| # The starter code and formatting instructions are already included inside question by prepare.py | ||
|
|
||
| user: |- | ||
| ### Question: | ||
| {question} | ||
|
|
||
| ### Answer: (use the provided format with backticks) |
3 changes: 3 additions & 0 deletions
3
nemo_skills/prompt/config/robustness/code_prompts/code_1.yaml
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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| user: |- | ||
| {question} | ||
| Generate a correct Python program that matches the specification and passes all tests for this question. |
6 changes: 6 additions & 0 deletions
6
nemo_skills/prompt/config/robustness/code_prompts/code_2.yaml
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 |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| user: |- | ||
| {question} | ||
| Write an executable Python solution. The output should look like: | ||
| ```python | ||
| [Insert the Python code here.] | ||
| ``` |
8 changes: 8 additions & 0 deletions
8
nemo_skills/prompt/config/robustness/code_prompts/code_3.yaml
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 |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| user: |- | ||
| You are a helpful and harmless assistant. Analyze the following problem, think step-by-step before solving the problem below. | ||
| {question} | ||
| Please use python programming language only. | ||
| You must use ```python for just the final solution code block with the following format: | ||
| ```python | ||
| # Your code here | ||
| ``` |
19 changes: 19 additions & 0 deletions
19
nemo_skills/prompt/config/robustness/code_prompts/code_4.yaml
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 |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| user: |- | ||
| PROBLEM DESCRIPTION: | ||
| You will be provided with the description of a python coding problem. Your task is to solve the problem step by step. | ||
|
|
||
| RESPONSE GUIDELINES: | ||
| 1. Start with the knowledge required for the solution and the plan on how you will solve the problem.. | ||
| 2. Then write the complete and executable Python program. | ||
| 3. Your response should be correct and pass all tests. | ||
| 4. DO NOT include example usage or test code in your response. | ||
| 5. Ensure your response is in the format of ```python``` and includes the necessary background as a comment at the top. | ||
|
|
||
| Example: | ||
| ```python | ||
| # Background: [Here, insert the necessary knowledge required for the solution and the plan on how you will solve the problem.] | ||
|
|
||
| [Insert the Python code here.] | ||
| ``` | ||
|
|
||
| {question} |
12 changes: 12 additions & 0 deletions
12
nemo_skills/prompt/config/robustness/code_prompts/ns_gen_codegen.yaml
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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # default prompt for all python based code benchmark evaluations | ||
| # https://github.com/NVIDIA-NeMo/Skills/blob/main/nemo_skills/prompt/config/generic/codegen.yaml | ||
| user: |- | ||
| Here is a problem for which you need to generate/complete code: | ||
| {question} | ||
|
|
||
| Please continue to complete the function with python programming language. You are not allowed to modify the given code and do the completion only. | ||
|
|
||
| The solution should be in the following format: | ||
| ```python | ||
| # Your code here | ||
| ``` |
7 changes: 7 additions & 0 deletions
7
nemo_skills/prompt/config/robustness/code_prompts/ns_python_codegen.yaml
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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # /home/gnalbandyan/grigor/code/ns_pr/Skills/nemo_skills/prompt/config/eval/livecodebench/python_codegen.yaml | ||
| # default prompt for livecodebench Python | ||
|
|
||
| user: |- | ||
| Here is a problem for which you need to generate an executable code in python programming language. | ||
|
|
||
| {question} |
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
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.
Add periods after abbreviations in American English.
The abbreviation "etc" appears twice without trailing periods at line 109, which is required in American English style. Additionally, line 109 could be clearer about the prompt folder organization.
Apply this diff to fix the style issues:
Note: Changed "and 7" to ", and 7" (Oxford comma), and added periods after both instances of "etc."
🧰 Tools
🪛 LanguageTool
[style] ~109-~109: In American English, abbreviations like “etc.” require a period.
Context: ...ed for any Math (AIME, comp-math-24-25, etc) benchmarks, `prompt/config/robustness/...
(ETC_PERIOD)
[style] ~109-~109: In American English, abbreviations like “etc.” require a period.
Context: ...q_prompts` for any MCQ (GPQA, MMLU-Pro, etc) benchmarks. - robust_eval can be used ...
(ETC_PERIOD)
🤖 Prompt for AI Agents