hey team! i'm having a hard time trying to use Ope...
# questions
e
hey team! i'm having a hard time trying to use OpenHands to run SWE-Bench. i'm using an M1 Mac to run OpenHands through Docker, and the LLM i'm trying to use is being hosted on an A100 in the cloud. i'm finding that most of the time is spent building docker images for the OpenHands runtime. some times the image building fails and my parallelism goes down and never recovers. this happens until eventually i'm at parallelism=1, which is very inefficient. i've spent ~$50 on cloud costs and three days babysitting the runs and i have only been able to run 32 out of 150 problems in SWE-Bench Lite. several questions: 1. is there a good way to avoid building the docker images? i see there is a GitHub Registry with 20k+ tags for the runtime image, but none of the tags match what my setup requires for some reason 2. i have tried adding debug logs to understand why some image building fails, but if i change the source then it seems like the base image tags change and the image building process fails 100% of the time:
Copy code
07:31:56 - openhands:INFO: runtime_build.py:189 - Building image: ghcr.io/all-hands-ai/runtime:oh_v0.56.0_n6j1b0uj8dt40xsk_d5tjvisz9qxx0bib
================ DOCKER BUILD STARTED ================
07:32:02 - openhands:ERROR: docker.py:201 - Image build failed with exit code 1
07:32:02 - openhands:ERROR: docker.py:203 - Command output:
#0 building with "sweb-builder" instance using docker-container driver
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 4.15kB done
#1 DONE 0.0s
#2 [internal] load metadata for ghcr.io/all-hands-ai/runtime:oh_v0.56.0_n6j1b0uj8dt40xsk
#2 ERROR: ghcr.io/all-hands-ai/runtime:oh_v0.56.0_n6j1b0uj8dt40xsk: not found
one more question: if there's no way to avoid building the runtime images, is there a way to pre-build them so that i can spend that time without paying cloud costs for the A100? i've seen there's a
openhands/runtime/utils/runtime_build.py
script but it only seems to build a single image, whereas the
run_infer.sh
script i use to launch the benchmark seems to generate one image per SWE-Bench issue. is there perhaps some documentation that explains this process that i might have missed?
c
Hey, i believe running swebench on m1 is not officially supported https://github.com/SWE-bench/SWE-bench/issues/300#issuecomment-2635489305
bc swebench images are probably linux images, hence the build issue you saw
e
but Mac is able to run x84_64 images on Docker, so that shouldn't be a problem, right?
I have been able to run successfully several x84_64 SWE-Bench cases
c
yeah, but none of our / swebench team are using mac to run these evals (so not officially supported).. so you maybe running problems that non of us have run into so it is harder to get help for
e
got it. i'll try from a linux machine then
👍 1
thanks!
hi again! i have launched in Linux but i'm seeing the same thing: the number of parallel requests eventually drops to 0
to me it looks like there's something in the docker build phase that fails and generates an unrecoverable issue
but i don't know how to debug it without changing the source code, and if i change the source code the docker building fails with the error in my first message