Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Doc: Add notes about --split argument (#578)

Kilian Lieretff887a9f667d
diff --git a/docs/usage/benchmarking.md b/docs/usage/benchmarking.md
index a55dbc25..ad228a4b 100644
--- a/docs/usage/benchmarking.md
+++ b/docs/usage/benchmarking.md
@@ -21,6 +21,11 @@ python run.py --model_name gpt4 \
--instance_filter marshmallow-code__marshmallow-1359
```
+The above examples use the default value of `--data_path` (`princeton-nlp/SWE-bench_Lite`, which will be looked up from huggingface).
+You can specify any other huggingface datasets as well, or supply the path to a pre-downloaded dataset.
+By default, SWE-agent evaluates on the `dev` split of that dataset.
+You can change that by supplying the `--split` argument to the above commands (obviously you shouldn't tune your model on the `test` dataset).
+
## 🧪 Evaluation <a name="evaluation"></a>
The `evaluation/` folder provides SWE-agent compatible scripts for running [SWE-bench style evaluation](https://github.com/princeton-nlp/SWE-bench/blob/main/tutorials/evaluation.md) on model patch predictions. In addition, we also include additional scripts to quantify model performance on "subtasks" within the SWE-bench task, such as identifying the right file(s) to edit.
diff --git a/docs/usage/cl_tutorial.md b/docs/usage/cl_tutorial.md
index 2416abe7..e884f7c4 100644
--- a/docs/usage/cl_tutorial.md
+++ b/docs/usage/cl_tutorial.md
@@ -46,6 +46,11 @@ Here,
## Specifying the repository
+!!! note "Operating in batch mode: Running on SWE-bench and other benchmark sets"
+ If you want to run SWE-agent in batch mode on SWE-bench or another whole evaluation set, see
+ [benchmarking](benchmarking.md). This tutorial focuses on using SWE-agent on
+ individual issues.
+
In the above example, the repository/codebase is inferred from the `--data_path`.
This options is currently only available for GitHub issues.
For all other use cases, you can specify `--repo_path`, which accepts either GitHub