Renaissance Labs

Index / Computing / Software and applications development and analysis

0613Software and applications development and analysis

SWE-rebench V2.1 (Harbor)

ibragim-bad/SWE-rebench-V2.1-harbor

Fix a real GitHub issue by editing a repository inside a prebuilt Docker image, across 20 programming languages.

Open on Hugging FaceHow to run it

Good for

  • large-scale multilingual SWE RL
  • Harbor tasks usable with TRL

Reward

How it is scored
Hidden tests
Signal
Pass or fail

Reward is 1 when every FAIL_TO_PASS and PASS_TO_PASS test passes, else 0.

How to run it

1. From the cardcopied from the publisher's own instructions

REPO=https://huggingface.co/datasets/ibragim-bad/SWE-rebench-V2.1-harbor
harbor run --repo $REPO -i aio-libs__aiohttp-10300 -a oracle
harbor run --repo $REPO -i "*aiohttp*" -a <agent> -m <model> -n 8

2. Get the filesthe whole repository, to a local folder

hf download ibragim-bad/SWE-rebench-V2.1-harbor --repo-type dataset --local-dir SWE-rebench-V2.1-harbor

3. Check it with Harborcommon pattern, not from this card

# the oracle agent runs the reference solution, so no model is called
harbor run --repo https://huggingface.co/datasets/ibragim-bad/SWE-rebench-V2.1-harbor --agent oracle

If every task passes, the environment works on your machine. Then swap in your own agent and model. Some repositories keep the tasks in a subfolder; the card says where.

4. Serve it for training with OpenEnvcommon pattern, not from this card

pip install "openenv[harbor]"
openenv harbor serve --dataset ibragim-bad/SWE-rebench-V2.1-harbor --llm-url http://127.0.0.1:8000/v1 --model <your-model>

Framework documentation: Harbor, OpenEnv. Needs: Docker; 6 CPUs and 24 GB memory per task.

Evidence

Gold patches are bundled as oracle solutions for each task.

As reported by the publisher. We have not reproduced it.