Skip to content

πŸ™Œ OpenHands: AI-Driven Development

[Eval] Make SWE-Bench run_infer.sh to default to run SWE-Bench Lite (#3704)

Xingyao Wangd8a87d7ccb4d
diff --git a/evaluation/swe_bench/scripts/run_infer.sh b/evaluation/swe_bench/scripts/run_infer.sh
index 1921835033..0859e1f480 100755
--- a/evaluation/swe_bench/scripts/run_infer.sh
+++ b/evaluation/swe_bench/scripts/run_infer.sh
@@ -33,9 +33,15 @@ if [ -z "$USE_INSTANCE_IMAGE" ]; then
USE_INSTANCE_IMAGE=true
fi
-if [ -z "$SUBSET" ]; then
- echo "SUBSET not specified, use default lite-test"
- SUBSET="lite-test"
+
+if [ -z "$DATASET" ]; then
+ echo "DATASET not specified, use default princeton-nlp/SWE-bench_Lite"
+ DATASET="princeton-nlp/SWE-bench_Lite"
+fi
+
+if [ -z "$SPLIT" ]; then
+ echo "SPLIT not specified, use default test"
+ SPLIT="test"
fi
export USE_INSTANCE_IMAGE=$USE_INSTANCE_IMAGE
@@ -46,6 +52,8 @@ get_agent_version
echo "AGENT: $AGENT"
echo "AGENT_VERSION: $AGENT_VERSION"
echo "MODEL_CONFIG: $MODEL_CONFIG"
+echo "DATASET: $DATASET"
+echo "SPLIT: $SPLIT"
# Default to NOT use Hint
if [ -z "$USE_HINT_TEXT" ]; then
diff --git a/openhands/runtime/remote/runtime.py b/openhands/runtime/remote/runtime.py
index 5931174e8d..1f20d8fee3 100644
--- a/openhands/runtime/remote/runtime.py
+++ b/openhands/runtime/remote/runtime.py
@@ -195,7 +195,7 @@ class RemoteRuntime(Runtime):
retry_exceptions = DEFAULT_RETRY_EXCEPTIONS
@retry(
- stop=stop_after_attempt(10),
+ stop=stop_after_attempt(30),
wait=wait_exponential(multiplier=1, min=4, max=60),
retry=retry_if_exception_type(tuple(retry_exceptions)),
reraise=True,