Skip to content

Commit b61db96

Browse files
committed
clarify libero wrapper docs
1 parent 82940c7 commit b61db96

2 files changed

Lines changed: 33 additions & 18 deletions

File tree

‎eval/libero/README.md‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,24 @@ CMAKE_CUDA_ARCHITECTURES=80 \
151151
bash eval/libero/run_model_server.sh
152152
```
153153

154-
Common overrides are environment variables: `BUILD_DIR`, `ROBOTCPP_BACKEND`,
155-
`HOST`, `PORT`, `SUITE`, `TASK_IDS`, `N_EPISODES`, `SEED`, `EPISODE_LENGTH`,
156-
`MUJOCO_GL`, `PYOPENGL_PLATFORM`, and `OUTPUT`. Extra shell arguments are passed
157-
to `python -m eval.libero.run_model_server` before `--server-command`.
154+
Configure the wrapper with environment variables:
155+
156+
| Variable | Purpose |
157+
| --- | --- |
158+
| `BUILD_DIR`, `ROBOTCPP_BACKEND`, `CMAKE_CUDA_ARCHITECTURES` | Build and backend selection. |
159+
| `GGUF_DIR`, `MODEL`, `SERVER_BIN` | Split GGUF inputs and `model-server` binary. |
160+
| `HOST`, `PORT` | Shared client/server endpoint. Set these here so both sides match. |
161+
| `SUITE`, `TASK_IDS`, `N_EPISODES`, `SEED`, `EPISODE_LENGTH` | LIBERO rollout selection. |
162+
| `MUJOCO_GL`, `PYOPENGL_PLATFORM`, `OUTPUT` | Rendering and result output. |
163+
164+
Arguments after `run_model_server.sh` are passed to
165+
`python -m eval.libero.run_model_server` before the generated
166+
`--server-command` block. Use them for runner-only flags:
167+
168+
```sh
169+
OUTPUT=eval/results/pi0-libero-object.json \
170+
bash eval/libero/run_model_server.sh --episode-length 400
171+
```
158172

159173
Run the Python rollout runner directly when the server command should be fully
160174
explicit:

‎eval/libero/run_model_server.sh‎

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@ usage() {
55
cat <<'EOF'
66
Run LIBERO eval against a freshly built model-server.
77
8-
Common overrides:
9-
CONDA_ENV=vlacpp-libero optional conda env for the Python eval runner
10-
ROBOTCPP_BACKEND=cuda model-server backend: cuda or cpu
11-
BUILD_DIR=build-cuda CMake build directory; defaults to build for cpu
12-
GGUF_DIR=... split GGUF checkpoint directory
13-
MODEL=... split GGUF filename prefix
14-
SUITE=libero_object LIBERO suite
15-
TASK_IDS=0 comma list of task ids
16-
N_EPISODES=1 episodes per task
17-
CMAKE_CUDA_ARCHITECTURES=80
18-
19-
Extra arguments are passed to eval.libero.run_model_server before the
20-
model-server command. Configure host/port through HOST and PORT so the eval
21-
client and launched server stay in sync.
8+
Wrapper configuration:
9+
CONDA_ENV=vlacpp-libero optional conda env for the Python eval runner
10+
ROBOTCPP_BACKEND=cuda model-server backend: cuda or cpu
11+
BUILD_DIR=build-cuda CMake build directory; defaults to build for cuda
12+
GGUF_DIR=... split GGUF checkpoint directory
13+
MODEL=... split GGUF filename prefix
14+
HOST=127.0.0.1 PORT=5555 shared client/server endpoint
15+
SUITE=libero_object LIBERO suite
16+
TASK_IDS=0 N_EPISODES=1 rollout selection
17+
OUTPUT=... optional result JSON path
18+
CMAKE_CUDA_ARCHITECTURES=80 optional CUDA architecture override
19+
20+
Arguments after this script are passed to eval.libero.run_model_server before
21+
the generated --server-command block. Use HOST and PORT env vars instead of
22+
extra --host/--port flags so the eval client and launched server stay in sync.
2223
EOF
2324
}
2425

0 commit comments

Comments
 (0)