Download tools/docker_wrapper.sh from RightNowAI/RightNow-Mini: direct link, hf CLI and curl.
- Browser
- Download file 693 Bytes
-
https://huggingface.co/RightNowAI/RightNow-Mini/resolve/main/tools/docker_wrapper.sh
- Command line
-
hf download hf://RightNowAI/RightNow-Mini/tools/docker_wrapper.sh
-
curl -L -o docker_wrapper.sh https://huggingface.co/RightNowAI/RightNow-Mini/resolve/main/tools/docker_wrapper.sh
693 Bytes
| # The docker command the agent harness uses on the node. | |
| # A task container gets its own block of 8 cores out of cores 32-255, so a test run inside sizes itself to 8 cores. | |
| # Cores 0-31 are kept for the speed measurements. The training pool's task states are mounted read-only at /patches. | |
| # No sudo here: on 2026-12-01 the `sudo` in front of every `docker exec` used about 75 cores by itself. The login | |
| # user reads the docker socket through an ACL instead (tools/fix_sudo.sh). | |
| if [ "$1" = run ]; then | |
| shift | |
| b=$(( ($$ % 28) * 8 + 32 )) | |
| exec /usr/bin/docker run --cpuset-cpus "$b-$((b + 7))" -v /data/train/mini/pool_patches:/patches:ro "$@" | |
| fi | |
| exec /usr/bin/docker "$@" | |