simple-pick-3models / README.md
LGG100's picture
README: --port must precede policy:checkpoint
5513815 verified
|
Raw History Blame Contribute Delete
3.69 kB
# G1 simple-pick: FastWAM / ImageWAM / π0.5 checkpoints
Three policies trained on the G1 `simple-pick-eef` task (91 episodes, 16-dim dual-arm EEF actions).
Directory layout mirrors the training repos, so the serve commands below work after downloading into the matching repo roots.
Prompt (must match byte-for-byte):
`Pick up the pink cube with the nearer arm and place it into the green bin.`
| Model | Checkpoint | Deploy files |
|---|---|---|
| FastWAM (Wan2.2-TI2V-5B, full fine-tune) | `fastwam/runs/simple_pick_eef_1e-4/2026-10-22_12-49-19/checkpoints/weights/step_003300.pt` (final step, ≈6 epochs) | `config.yaml`, `dataset_stats.json` in the run dir; `configs/task/simple_pick_eef_1e-4.yaml`, `configs/data/simple_pick_eef.yaml`; T5 prompt cache in `data/text_embeds_cache/simple_pick_eef/` |
| ImageWAM (FLUX.2-klein-4B + LoRA) | `imagewam/ImageWAM/runs/g1_simple_pick_eef_flux2_klein_4b/2026-09-12_22-08-43/checkpoints/weights/step_006000.pt` (final step) | `config.yaml`, `dataset_stats.json` in the run dir; `configs/task/g1_simple_pick_eef_flux2_klein_4b.yaml`, `configs/data/g1_simple_pick_eef.yaml`; prompt embeds `imagewam/checkpoints/imagewam_g1/g1_simple_pick_eef_prompt_embeds.npz` |
| π0.5 (openpi) | `pi/openpi-fintune/checkpoints/pi05_g1_simple_pick/v1/19999/` (final step of 20000; JAX params + norm stats, optimizer state omitted) and `19999_pytorch/` (PyTorch conversion) | config `pi05_g1_simple_pick` in `pi/openpi-fintune/src/openpi/training/config.py`; norm stats in the checkpoint's `assets/` and `pi/openpi-fintune/assets/pi05_g1_simple_pick/` |
Base weights are not included: FastWAM needs Wan2.2-TI2V-5B (VAE + T5) and `ActionDiT_linear_interp_Wan22_alphascale_1024hdim.pt`; ImageWAM needs FLUX.2-klein-4B and its autoencoder; π0.5 loads the PaliGemma tokenizer from openpi.
## Serve code
Inference code is included at the same paths as the training repos (no training scripts):
| Path | Contents |
|---|---|
| `fastwam/` | `serve.py`, `serve_stack_cube_eef.py` (EEF server for all `*_eef` models), `src/fastwam`, `configs/`, `pyproject.toml` |
| `imagewam/ImageWAM/` | `scripts/g1/serve_imagewam_g1.py`, `scripts/g1/inference_methods.py`, `src/imagewam`, `configs/`, `pyproject.toml` |
| `pi/openpi-fintune/` | `scripts/serve_policy.py`, `src/openpi`, `packages/openpi-client`, `pyproject.toml`, `uv.lock`, G1 URDF in `scripts/assets/g1/` |
| `g1-client/g1_client/` | msgpack wire codec shared by client and all three servers |
FastWAM finds `../g1-client` and the URDF at `../pi/openpi-fintune/scripts/assets/g1/` by default, so the layout here works as-is. The URDF is only needed with `--state-space joint` / `--action-space joint` (requires `pip install pin`).
## Serve
FastWAM (EEF passthrough, client does kinematics):
```bash
cd fastwam
RUN=simple_pick_eef_1e-4/2026-10-22_12-49-19
python serve_stack_cube_eef.py --config runs/$RUN/config.yaml \
--ckpt runs/$RUN/checkpoints/weights/step_003300.pt \
--norm-stats runs/$RUN/dataset_stats.json \
--state-space eef --action-space eef --port 8010
```
ImageWAM:
```bash
cd imagewam/ImageWAM
RUN=g1_simple_pick_eef_flux2_klein_4b/2026-09-12_22-08-43
python scripts/g1/serve_imagewam_g1.py \
--ckpt runs/$RUN/checkpoints/weights/step_006000.pt \
--dataset-stats runs/$RUN/dataset_stats.json \
--prompt-embeds ../checkpoints/imagewam_g1/g1_simple_pick_eef_prompt_embeds.npz \
--g1-client-path ../../g1-client \
--task-config g1_simple_pick_eef_flux2_klein_4b --port 8000
```
π0.5:
```bash
cd pi/openpi-fintune
uv run scripts/serve_policy.py --port 8020 policy:checkpoint \
--policy.config=pi05_g1_simple_pick \
--policy.dir=checkpoints/pi05_g1_simple_pick/v1/19999
```