The first exam for code agents in the physical world: frozen robot tasks from many benchmark suites, each answered with a program and verified in a separate sandbox. Runs on Harbor.
Python ai-agentsbenchmarkcoding-agentsembodied-aievaluationharborllm-agentsrobot-learningroboticssimulation
# SAPIEN needs a Vulkan device (the NVIDIA GPU) to build the scene and render the cameras; physics and the brush model run on
# the CPU. Harbor's local docker sandbox rejects [environment].gpus, but merging this onto the services passes the device through.
# `scorer` = the scoring service behind Session.score() (environment/scorer/: the graders' copy of the instance); the agent reaches
# it only over HTTP (scorer:8001, or localhost:8001 when Harbor's egress control puts the services in one network namespace).
services:
main:
pids_limit: 2048 # rcb-monitor
x-gpu-memory-gb: 3 # GiB # rcb-monitor
volumes: # rcb-monitor
- rcb_limits:/run/rcb-limits:ro # rcb-monitor
depends_on: [scorer]
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
scorer:
cpus: 2 # rcb-monitor
mem_limit: 4096m # rcb-monitor
pids_limit: 1024 # rcb-monitor
x-gpu-memory-gb: 3 # GiB # rcb-monitor
build: # environment/scorer/Dockerfile: the base image, scorer/ at /srv, the files shared with other tasks
context: scorer
dockerfile: Dockerfile
volumes:
- rcb_observe:/run/rcb-observe:ro # rcb-monitor
working_dir: /tmp
command: sh /srv/run.sh
restart: on-failure:6 # the service keeps no state a request needs: a restarted one replays the next request from the reset
environment:
RCB_INSTANCE: /srv/instance.json
RCB_TOOL_MODULE: rcb_brush_strict # the scores with the process rules (rcb_brush_strict.py)
RCB_SCORER_PORT: "8001"
PYTHONPATH: /srv
RCB_SESSION_LOG: ""
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
# >>> rcb_monitor (resource monitor, PROTOCOL §6; generated by images/monitor/rcb_monitor/inject.py)
rcb_monitor:
image: ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a
pid: host
cgroup: host
network_mode: none
cap_add: [SYS_PTRACE]
cpus: 0.5
mem_limit: 256m
pids_limit: 64
restart: on-failure
working_dir: /var/rcb-monitor
volumes:
- ./rcb_monitor/limits.json:/opt/rcb_monitor/limits.json:ro
- rcb_limits:/run/rcb-limits
- rcb_observe:/run/rcb-observe
environment:
RCB_LIMITS_ENFORCE: ${RCB_LIMITS_ENFORCE:-0}
RCB_LIMITS_TOLERANCE: ${RCB_LIMITS_TOLERANCE:-0.05}
command: ["python3", "/opt/rcb_monitor/monitor.py", "run"]
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
# <<< rcb_monitor
volumes: # rcb-monitor
rcb_limits: # rcb-monitor
rcb_observe: # rcb-monitor