File size: 7,827 Bytes
a25598f e7b67c8 a25598f e7b67c8 a25598f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | # RoboCasa-GR1 Evaluation
## Fixed Contract
| Setting | Value |
|---|---|
| Checkpoint | Original 340000-step export |
| Contract identifier | `wm4a_contract_v2_any_physical_step` |
| Latent coordinates | `legacy` |
| Instruction format | `Task: <instruction>.` |
| Tasks | Ordered 24-task list in `release_manifest.json` |
| Full-run episodes | 50 per task |
| Scene seeds | 9000 through 9049 within every task |
| Policy randomness | Seeded per episode and action chunk |
| Action-sampling steps | 20 |
| Predicted horizon / executed chunk | 16 / 12 |
| Maximum physical steps | 720 |
| Environment process | One independent simulator environment per process |
| Parallelism | Four clients per policy server; one or two policy GPUs |
| Rendering | Explicit physical EGL GPU index |
| Success | Native predicate at any executed physical step |
| Stop on success | No |
| IK state | Cleared per environment at episode boundaries |
| Future-image generation | Off by default |
The wrapper evaluates success within each executed action chunk. Testing
only its last step misses transient success. An initially successful reset
is not a substitute for an executed successful transition.
## Setup
Follow the root README to download resources, create the two environments,
run `release.doctor`, verify the checkpoint/assets, and run `release.prepare`.
Preserve the directory layout: the IK wrapper resolves the GR1 URDF relative
to the release root.
Services bind to `127.0.0.1`. Simulation and policy processes therefore run
on the same machine; no public unauthenticated policy endpoint is exposed.
```bash
nvidia-smi
"$POLICY_PYTHON" -m release.evaluate \
--gpus 0,1 --render-gpu 1 \
--policy-python "$POLICY_PYTHON" --sim-python "$SIM_PYTHON" \
--episodes 50 --seed 9000 --workers-per-policy 4 \
--output /absolute/new/pilot-evaluation
```
The launcher uses round-robin task assignment across policy GPUs, matching
the source evaluation when two GPUs are supplied. It records GPU headroom
and pre-existing process information before launch, checks inherited
allocations, and does not signal any process it did not start.
The default policy cap is 40 GiB. Admission additionally requires 8 GiB
headroom on policy-only GPUs and 16 GiB on the rendering GPU. These checks
are not reservations and cannot guarantee that another process will not
grow later. Reduce concurrency or use another allocated device if needed.
For a smoke test, use `--episodes 1` and one `--task` from the manifest.
Smoke tests are not full benchmark measurements.
## Outputs
### Changing Run Size
All commands run from the release root after installation and preparation.
Use `--task` once for a single task, or repeat it to select several.
Omitting `--task` evaluates all 24. Use `--workers-per-policy 1` to reduce
simulator concurrency and one policy GPU if that is your safe allocation.
Changing seeds, episodes, action settings or scoring changes comparability
with the recorded result; a one-episode run is only a smoke test.
Use `--port 19500` if the default loopback policy ports are already occupied.
Do not terminate an unrelated service to free its port. For another
`release.prepare --cache` location, supply the corresponding
`--checkpoint <cache>/run/checkpoints/model.pt` path explicitly.
### Files Written
```text
gpu_admission.json
server_gpu<N>.log
load_gpu<N>.json
<task_slug>/simulation.log
<task_slug>/rollouts/result.json
<task_slug>/rollouts/episodes.jsonl
<task_slug>/rollouts/action_requests.jsonl
<task_slug>/rollouts/physical_steps/
<task_slug>/rollouts/videos/
summary.json
```
`summary.json` must contain `complete: true` and the expected total episode
count before reporting a full success rate. Failed, interrupted, and
missing tasks are not silently counted as completed failures or successes.
Action records include normalized float32 values, request seeds, and
SHA-256 hashes for replay checks.
Raw runtime logs may contain local paths and process information. Review
them before public redistribution. The bundled `results/` directory
contains a sanitized original-run log archive, numerical summary, and
historical training metrics; see [published evidence](LOGS.md).
To check a newly completed full run:
```bash
export PILOT_EVAL_OUTPUT=/absolute/new/pilot-evaluation
python3 - <<'PY'
import json, os
from pathlib import Path
result = json.loads((Path(os.environ["PILOT_EVAL_OUTPUT"]) / "summary.json").read_text())
assert result["complete"] is True, "Run is incomplete"
assert result["protocol"] == "wm4a_contract_v2_any_physical_step"
assert len(result["task_results"]) == 24
assert result["episodes"] == 1200
assert result["seed"] == 9000 and result["episodes_per_task"] == 50
assert result["successes"] == sum(x["successes"] for x in result["task_results"])
print(f'{result["successes"]}/{result["episodes"]} = {100 * result["success_rate"]:.2f}%')
PY
```
This checks run completeness, not equivalence of model hashes or every
physical transition. Preserve the checkpoint hash, configurations and
full output directory. Do not require a new run to equal 717 successes
and silently discard runs that do not.
An interrupted evaluation is not automatically resumed into the same
directory. Keep its diagnostic outputs, choose a new directory, and rerun
the intended protocol. Do not merge duplicate or mismatched-seed tasks
into a claimed 1200-episode benchmark.
## Optional Future Visualization
Add `--visualize-every 10` to generate a diagnostic prediction every ten
action chunks. This invokes additional video-model denoising and decoding.
It is off in the full action-only benchmark commands.
The model uses a five-frame construction for a future observation at
offset 16, not a demonstrated continuous long-video rollout. Do not
restore the historical 93-frame visualization setting. Visualization
randomness is isolated from action sampling.
## Interpreting Results
The completed source-snapshot benchmark produced 717/1200 successes
(59.75%). On those same trajectories, block-end-only scoring gives
712/1200, and final-step-only scoring gives 637/1200.
Those latter values are rescoring results, not additional model runs.
The paper's 58.3% is a separately reported experiment. No matched-protocol
proof equating it with this audit is claimed. The source score is also not
a guarantee of bitwise identical trajectories across different GPUs,
CUDA kernels, simulator builds, or a new installation.
## Troubleshooting
**Noise-like predicted images or unexpected action behavior**
Verify the checkpoint hash, `legacy` coordinates, pinned dependencies,
normalization statistics, and five-frame temporal setting first. Do not
change min/max statistics, IK conventions, or prompts as an undocumented fix.
**Missing GR1 assets or PyKDL**
Run `release.unpack_assets` if needed, source
`environment/activate_paths.sh`, and run the simulation preflight.
Use `environment/build_kdl.sh` in a new simulation environment. Do not
fall back silently from end-effector retargeting to joint-space actions.
**EGL initialization failure**
Check the host's NVIDIA EGL installation, `MUJOCO_GL`,
`PYOPENGL_PLATFORM`, and the physical `--render-gpu` index. Use
`EGL_LIBRARY_PATH` only for a verified directory on that machine.
CUDA-visible numbering and EGL physical indexing are not interchangeable.
**Out of memory**
Check existing jobs before starting. Lower `--workers-per-policy`, use a
single allocated GPU where safe, or choose a larger allocation. Never kill
other users' processes or use artificial workloads to reserve memory.
**Resume/configuration mismatch**
`release.prepare` expects this release's exact checkpoint. An old 280000
cache or another run's statistics must not be reused. Use a new `--cache`
directory and explicitly pass its prepared checkpoint to evaluation.
|