Add SWE-bench Verified patch environment#1340
Open
poofeth wants to merge 2 commits into
Open
Conversation
Author
Author
|
Follow-up commit
Fresh validation: uv run pytest tests/test_swe_bench_verified_environment.py -q
# 8 passed
uv run python - <<'PY'
import sys
from pathlib import Path
sys.path.insert(0, str(Path('environments/swe_bench_verified').resolve()))
import swe_bench_verified as env
loaded = env.load_environment(train_limit=1, eval_limit=1)
print(type(loaded).__name__, loaded.taskset.taskset_id)
PY
# Env swe-bench/verified
uv run ruff check environments/swe_bench_verified tests/test_swe_bench_verified_environment.py
# All checks passed
uv run ruff format --check environments/swe_bench_verified tests/test_swe_bench_verified_environment.py
# 2 files already formatted
git diff --check
# no output |
Author
|
Additional package-install smoke passed for the environment package metadata: uv run --with ./environments/swe_bench_verified python - <<'PY'
from swe_bench_verified import load_environment, official_submission
loaded = load_environment(train_limit=1, eval_limit=1)
row = list(loaded.taskset.source())[0]
print(loaded.taskset.taskset_id, official_submission(row, row['answer'])['instance_id'])
PY
# swe-bench/verified astropy__astropy-12907 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds a
swe-bench-verifiedenvironment for the Prime SWE-bench Verified bounty.This environment:
princeton-nlp/SWE-bench_Verifiedfrom Hugging Face<patch>...</patch>tagstest_patch,FAIL_TO_PASS,PASS_TO_PASS, base commit, difficulty, setup commit) intask["info"]/claim https://algora.io/PrimeIntellect-ai/bounties/znaiNF1eEZzF62SD
Validation