-
Notifications
You must be signed in to change notification settings - Fork 10
swe-bench #280
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
Open
shreymodi1
wants to merge
13
commits into
main
Choose a base branch
from
swebenchintegration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
swe-bench #280
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
71f4165
swe-bench
2dad518
linterrors
9ffbf9e
Delete examples/swebench/fireworks_ai__accounts__pyroworks__models__s…
shreymodi1 e38f117
Merge branch 'main' into swebenchintegration
0d12311
addressing dereks comments
541cbe6
Merge branch 'swebenchintegration' of github.com:eval-protocol/python…
b16bd50
pyproject removal due to dependancy issue
14c6f46
changepyproject.toml
47ef37b
added sandboxing of runs and remote server support
e447ad6
remote server changes
e08ca9a
addressed comments
0b38ca4
Merge branch 'main' of github.com:eval-protocol/python-sdk into swebe…
867d947
porting to fireworks tracing
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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| SWE-bench (Remote) - Local (non-Docker) Setup and Usage | ||
|
|
||
| Prerequisites | ||
| - Python 3.12 environment (same one you use for this repo) | ||
| - Fireworks API key | ||
| - mini-swe-agent and datasets (for patch generation) | ||
| - SWE-bench harness installed (for evaluation) | ||
|
|
||
| Setup mini-swe-agent (non-Docker) | ||
| 1) Install dependencies | ||
| ```bash | ||
| pip install mini-swe-agent datasets | ||
| ``` | ||
|
|
||
| 2) Configure API key for mini-swe-agent | ||
| ```bash | ||
| mini-extra config set FIREWORKS_API_KEY <your_fireworks_key> | ||
| ``` | ||
|
|
||
| 3) (Optional) Test connectivity | ||
| ```bash | ||
| python3 examples/swebench/run_swe_agent_fw.py fireworks_ai/accounts/fireworks/models/kimi-k2-instruct-0905 --test | ||
| ``` | ||
|
|
||
| Install SWE-bench evaluation harness | ||
| ```bash | ||
| git clone https://github.com/princeton-nlp/SWE-bench | ||
| pip install -e SWE-bench | ||
| ``` | ||
|
|
||
| Environment | ||
| ```bash | ||
| export FIREWORKS_API_KEY="<your_fireworks_key>" | ||
| ``` | ||
|
|
||
| Run the server | ||
| ```bash | ||
| python examples/swebench/server.py | ||
| ``` | ||
|
|
||
| What the server does | ||
| - Invokes `run_swe_agent_fw.py` in batch mode with a single-slice per request | ||
| - Writes outputs to a per-row directory: `./row_{index}/` | ||
| - `row_{index}/preds.json` | ||
| - `row_{index}/<instance_id>/<instance_id>.traj.json` | ||
| - Runs the SWE-bench harness on `row_{index}/preds.json` | ||
|
|
||
| Run pytest to evaluate a model on SWE-bench | ||
| ```bash | ||
| cd /Users/shrey/Documents/python-sdk | ||
| pytest examples/swebench/tests/test_swebench.py -v -s | ||
| ``` | ||
|
|
||
| Notes | ||
| - The test currently generates 10 rows by numeric index (0–9) | ||
| - Each request triggers the server to run one SWE-bench instance and write to its own `row_{index}` | ||
| - Control harness workers via: `export SWEBENCH_EVAL_WORKERS=5` | ||
Submodule SWE-bench
added at
5cd4be
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.