<https://epoch.ai/blog/swebench-docker> Has anyone...
# random
b
https://epoch.ai/blog/swebench-docker Has anyone used Epoch AI's images for swebench and reproduced the 1 hour time they report? It didn't seem to give any speedup for me, not sure if I implemented wrong.
đŸ”¥ 1
l
No, but if we could use this to make openhands eval more efficient that’d be exciting!
s
It seems to work with this:
Copy code
diff --git a/evaluation/benchmarks/swe_bench/run_infer.py b/evaluation/benchmarks/swe_bench/run_infer.py
index 4413f07d3..838d4c28d 100644
--- a/evaluation/benchmarks/swe_bench/run_infer.py
+++ b/evaluation/benchmarks/swe_bench/run_infer.py
@@ -182,11 +182,11 @@ def get_instance_docker_image(
         if DATASET_TYPE == 'SWE-bench-Live':
             docker_image_prefix = 'docker.io/starryzhang/'
         elif DATASET_TYPE == 'SWE-bench':
-            docker_image_prefix = 'docker.io/swebench/'
+            docker_image_prefix = 'ghcr.io/epoch-research/'
         elif DATASET_TYPE == 'SWE-rebench':
             docker_image_prefix = 'docker.io/swerebench/'
         repo, name = instance_id.split('__')
-        image_name = f'{docker_image_prefix.rstrip("/")}/sweb.eval.x86_64.{repo}_1776_{name}:latest'.lower()
+        image_name = f'{docker_image_prefix.rstrip("/")}/swe-bench.eval.x86_64.{repo}__{name}:latest'.lower()
         logger.debug(f'Using official SWE-Bench image: {image_name}')
         return image_name
     else:
That doesn't help that much, since we still add the openhands runtime on top of it. Ideally we'd add the openhands runtime, then add the repo, then the patch/setup for the instance.
b
are you able to run swebench verified in 1 hour with this setup? I made some similar modifications but was unable to reproduce the speedup epoch reported
s
Nope. Building the image with the openhands runtime is brutal.
b
ah i see. so the bottleneck is more so building the openhands runtime? do you think the same bottleneck would occur if I used swe agent for example?