-
Notifications
You must be signed in to change notification settings - Fork 154
Fixes to support SWE-bench Multilingual #1064
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
5 commits
Select commit
Hold shift + click to select a range
ad45c70
Install jq for OpenHands
ludwig-n cfed7b0
Add language-agnostic prompt config for SWE-agent
ludwig-n e033329
Merge branch 'main' into ludwig-n/openhands-download-jq
ludwig-n 779a655
Merge branch 'main' into ludwig-n/swe-bench-multilingual
wasiahmad 359ae8f
Merge branch 'main' into ludwig-n/swe-bench-multilingual
ludwig-n 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
78 changes: 78 additions & 0 deletions
78
nemo_skills/prompt/config/eval/swe-bench/swe-agent/multilingual.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,78 @@ | ||
| # Based on the default config from the SWE-agent repo: | ||
| # https://github.com/SWE-agent/SWE-agent/blob/1375ec4fa69d300b432b9ca61d6b0e5d7259131c/config/default.yaml | ||
| # but mentions of Python are removed to make the prompt language-agnostic. | ||
|
|
||
| # note that this doesn't use nemo-skills prompt logic and instead is passed directly to swe-agent | ||
|
|
||
| agent: | ||
| templates: | ||
| system_template: |- | ||
| You are a helpful assistant that can interact with a computer to solve tasks. | ||
| instance_template: |- | ||
| <uploaded_files> | ||
| {{working_dir}} | ||
| </uploaded_files> | ||
| I've uploaded a code repository in the directory {{working_dir}}. Consider the following PR description: | ||
|
|
||
| <pr_description> | ||
| {{problem_statement}} | ||
| </pr_description> | ||
|
|
||
| Can you help me implement the necessary changes to the repository so that the requirements specified in the <pr_description> are met? | ||
| I've already taken care of all changes to any of the test files described in the <pr_description>. This means you DON'T have to modify the testing logic or any of the tests in any way! | ||
| Your task is to make the minimal changes to non-tests files in the {{working_dir}} directory to ensure the <pr_description> is satisfied. | ||
| Follow these steps to resolve the issue: | ||
| 1. As a first step, it might be a good idea to find and read code relevant to the <pr_description> | ||
| 2. Create a script to reproduce the error and execute it using the bash tool, to confirm the error | ||
| 3. Edit the sourcecode of the repo to resolve the issue | ||
| 4. Rerun your reproduce script and confirm that the error is fixed! | ||
| 5. Think about edgecases and make sure your fix handles them as well | ||
| Your thinking should be thorough and so it's fine if it's very long. | ||
| next_step_template: |- | ||
| OBSERVATION: | ||
| {{observation}} | ||
| next_step_no_output_template: |- | ||
| Your command ran successfully and did not produce any output. | ||
| tools: | ||
| env_variables: | ||
| PAGER: cat | ||
| MANPAGER: cat | ||
| LESS: -R | ||
| PIP_PROGRESS_BAR: 'off' | ||
| TQDM_DISABLE: '1' | ||
| GIT_PAGER: cat | ||
| bundles: | ||
| - path: tools/registry | ||
| - path: tools/edit_anthropic | ||
| - path: tools/review_on_submit_m | ||
| registry_variables: | ||
| USE_FILEMAP: 'true' | ||
| SUBMIT_REVIEW_MESSAGES: | ||
| - | | ||
| Thank you for your work on this issue. Please carefully follow the steps below to help review your changes. | ||
|
|
||
| 1. If you made any changes to your code after running the reproduction script, please run the reproduction script again. | ||
| If the reproduction script is failing, please revisit your changes and make sure they are correct. | ||
| If you have already removed your reproduction script, please ignore this step. | ||
| 2. Remove your reproduction script (if you haven't done so already). | ||
| 3. If you have modified any TEST files, please revert them to the state they had before you started fixing the issue. | ||
| You can do this with `git checkout -- /path/to/test/file`. Use below <diff> to find the files you need to revert. | ||
| 4. Run the submit command again to confirm. | ||
|
|
||
| Here is a list of all of your changes: | ||
|
|
||
| <diff> | ||
| {{diff}} | ||
| </diff> | ||
| enable_bash_tool: true | ||
| parse_function: | ||
| type: function_calling | ||
| history_processors: [] | ||
| model: | ||
| # The following parameters are overridden by Nemo-Skills: | ||
| # name, api_base, temperature, top_p, completion_kwargs, per_instance_call_limit. | ||
| # Specifying them here will have no effect! Use Nemo-Skills options instead. | ||
| per_instance_cost_limit: 0 | ||
| total_cost_limit: 0 | ||
| max_input_tokens: 0 | ||
| max_output_tokens: 0 |
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.
Uh oh!
There was an error while loading. Please reload this page.