Has anyone here run OpenHands on an HPC cluster wi...
# questions
c
Has anyone here run OpenHands on an HPC cluster with Apptainer (for SWE-bench)? I’d really appreciate any tips or notes on setup or required tweaks. Thanks in advance!
l
We don’t have this set up, but it should be possible. I believe all you would need to do is port this file to work with apptainer: https://github.com/All-Hands-AI/agent-sdk/blob/main/openhands-workspace/openhands/workspace/docker/workspace.py Then create an example like this: https://github.com/All-Hands-AI/agent-sdk/blob/main/examples/02_remote_agent_server/02_convo_with_docker_sandboxed_server.py If that works, we’d welcome a PR! After that you could probably run SWE-bench with the apptainer images created by the swe-bench folks.
c
Thansk for your answer, Graham! My goal is to run the SWE-bench evaluation (
evaluation/benchmarks/swe_bench/run_infer.py
) on an HPC cluster with Apptainer. I was wondering whether it would be easier to adapt the agent-sdk, as you suggested, or modify OpenHands directly? Right now, I’ve started adapting: •
openhands/runtime/impl/docker/docker_runtime.py
to use Apptainer, and •
evaluation/benchmarks/swe_bench/scripts/run_infer.sh
to pull Apptainer images. However, I realized that in the Docker setup, the runtime is dynamically layered through
DockerRuntimeBuilder
(via
openhands/runtime/builder/docker.py
), which doesn’t really work with Apptainer. So I’m thinking a possible approach might be to build a combined Docker image (OpenHands runtime + SWE-bench instance) first, and then convert it into an Apptainer
.sif
image for the HPC. Does that sound like the right direction?
l
Hey @cold-motherboard-93042 it will be far easier to modify the agent-sdk, and we will soon be deprecating the evals in the current openhands repo. Sorry that a lot of things are under construction right now, but we decided to refactor our entire codebase to make things easier, so I’d highly suggest that you use the new version. The new benchmarks are here: https://github.com/OpenHands/benchmarks