Browse Source

need to run as root to use SWEBench container (#2068)

Gant 1 year ago
parent
commit
f0271f9f91
1 changed files with 2 additions and 1 deletions
  1. 2 1
      evaluation/swe_bench/swe_env_box.py

+ 2 - 1
evaluation/swe_bench/swe_env_box.py

@@ -86,7 +86,8 @@ class SWEBenchSSHBox(DockerSSHBox):
 
         # linting python after editing helps LLM fix indentations
         config.enable_auto_lint = True
-
+        # Need to run as root to use SWEBench container
+        config.run_as_devin = False
         sandbox = cls(
             container_image=SWE_BENCH_CONTAINER_IMAGE,
             swe_instance_id=instance['instance_id'],