The official SWE-bench package (current version 4.1.0) provides a benchmark for evaluating large language models (LLMs) on software engineering tasks. It focuses on automatically testing model-generated code fixes against real-world software bugs and is actively developed with frequent updates, often involving significant changes between major versions.
pip install swebenchVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to programmatically load SWE-bench tasks after downloading the dataset using the `swebench download` CLI command. It prints basic information about the loaded tasks or guides the user if the data isn't found. Full evaluation with `SWEBenchRunner` and `ModelEngine` requires `conda` and `docker`.
Consult the official GitHub repository's release notes for v4.0.0 and updated documentation on setting up and running Docker-based evaluations.
Refer to the v3.0.0 release notes and updated examples on environment specification. You may need to update your task data or evaluation scripts to align with the new structure.
Ensure `conda` (or miniconda/anaconda) and `docker` are installed and working before attempting to run `SWEBenchRunner` evaluations. Consult their respective installation guides.
Run `swebench download` in your terminal to fetch the dataset. By default, it creates a 'data' directory in your current working directory. Always check the path when calling `get_tasks`.