mirror of
https://github.com/HKUDS/OpenSpace.git
synced 2026-11-30 00:07:38 +00:00
30 lines
1.6 KiB
Markdown
30 lines
1.6 KiB
Markdown
# Prepare Terminal-Bench 2.1 Tasks
|
|
|
|
Complete the program and evaluator checkouts in [② Program and tasks](../README.md#program), then run these commands from the repository root. This step prepares tasks and images without model calls.
|
|
|
|
## Prepare the task checkout
|
|
|
|
```bash
|
|
mkdir -p runs/my-agent/tb21
|
|
git clone https://github.com/harbor-framework/terminal-bench-2-1.git runs/my-agent/tb21/tasks
|
|
git -C runs/my-agent/tb21/tasks checkout --detach 5c8eadf1f393183288fa08b8f73ca9a469cc5e00
|
|
```
|
|
|
|
For an existing checkout at this revision, reuse its path in the commands below.
|
|
|
|
## Prepare the task images
|
|
|
|
```bash
|
|
uv run --project agentpilot/integrations/arena --no-sync python -m rsi_arena.benchmarks.tb21.closure_builder prepare \
|
|
--task-repository runs/my-agent/tb21/tasks \
|
|
--cache-dir runs/my-agent/tb21/cache \
|
|
--temp-dir runs/my-agent/tb21/cache/tmp \
|
|
--verifier-timeout-multiplier 2.0 \
|
|
--docker-host unix:///var/run/docker.sock
|
|
```
|
|
|
|
The first run downloads dependencies and builds images for the 89 tasks; later invocations reuse the cache. Keep enough disk space for the images and retained dependencies. Use the same Docker socket during setup and execution.
|
|
|
|
The output is `runs/my-agent/tb21/cache/build/offline-verifier-authority.json`. Continue to [③ Policy and model](../README.md#policy) and use its Terminal-Bench setup command.
|
|
|
|
For cache repair or image transfer, see the [offline environment reference](../../../../arena/docs/tb21-offline-verifier.md) and [image bundle reference](../../../../arena/docs/tb21-exact-image-bundle.md). Their commands use paths relative to `arena/`; use the absolute paths to your existing cache when following them.
|