Public 15K ฯ€0-FAST inference

Public model repository: RainyBot/pi0-fast-bridge-commonstart-15k.

The inference/ directory provides standalone EMA weights from update15,000, all603 parameter tensors, model configuration and tokenizer/normalization assets. It does not require the eight training shards or the original pretrained weights. This repository contains inference assets only; no optimizer or training recovery states are uploaded.

Install

Install a compatible PyTorch/torchvision pair for your CPU, CUDA or HIP hardware first. Python3.10+ is required. The setup script creates a dedicated environment, preserves the installed PyTorch, fetches the fixed LeRobot/OpenPI sources and installs Transformers4.53.2 with the required OpenPI model patches inside that environment. It requires Python venv support or an installed virtualenv module.

git clone https://github.com/miaochengy-pngu/ReTime_source.git
cd ReTime_source
bash rebuttal/pi0_fast/adapter/setup_inference.sh

The pinned LeRobot revision is cbc8bfb2e618; OpenPI revision is 215abfb217dbac7d5f1273282331b9b1866c0479. Downloads are cached under rebuttal/pi0_fast/.inference-runtime/ (override PI0_FAST_INFERENCE_RUNTIME). The public weights require no Hugging Face token. Only inference/ is downloaded, about11.7GB for FP32 parameters plus support assets.

Input and command

Create an NPZ containing a camera frame, raw Bridge robot state and instruction:

import numpy as np
from PIL import Image

image = np.asarray(Image.open("camera.png").convert("RGB"), dtype=np.uint8)
state = np.load("bridge_state.npy").astype(np.float32)  # shape(8,), raw dataset units
np.savez("observation.npz", image=image, state=state,
         prompt="put the spoon on the towel")
bash rebuttal/pi0_fast/adapter/run_inference.sh \
  --model RainyBot/pi0-fast-bridge-commonstart-15k \
  --input observation.npz --output actions.npz --device cpu

Use --device cuda for a CUDA GPU or HIP DCU with compatible PyTorch. The reference decoder performs BF16 autoregressive inference without KV cache; CPU inference is slow. It generates the complete Action: / FAST / | / EOS suffix and fails if the suffix is incomplete. It does not silently replace failed decoding with zero actions. --max-tokens defaults256.

Output fields:

Field Meaning
actions Float32 [10,7], action chunk in raw Bridge dataset units
normalized_actions Float32 [10,7], normalized chunk before inversion
generated_tokens PaliGemma output token IDs
generated_text Complete decoded suffix

Training uses7D actions padded to8D before FAST encoding, horizon10 and token budget512. Inference decodes [10,8], drops the padded eighth coordinate, and inverts the exact quantile normalization used in training. Input must contain the actual raw8D Bridge state: do not pad an unrelated robot's state or normalize it again. Images are RGB, resized and letterboxed to224x224 as in the reader, without training augmentation. A single BOS is included in the instruction prefix.

The training mixture is Bridge+RT1 with manifest source allocation .5/.5 and the saved trajectory probabilities. --source fractal20220817_data_lerobot selects RT1 normalization; the default is bridge_orig_lerobot.

Python integration

from infer_pi0fast import BridgeFASTPolicy

policy = BridgeFASTPolicy("/path/to/downloaded/inference", device="cuda")
result = policy.predict(rgb_uint8, raw_bridge_state8, instruction)
chunk = result["actions"]

Run Python with the setup environment and include the LeRobot source and this adapter/ directory on PYTHONPATH, as run_inference.sh does.

The returned chunk follows dataset action semantics. Environment-specific control frequency, frame conversion, gripper command conversion, chunk execution and episode reset must be implemented in the simulator/robot adapter. This endpoint does not claim a SimplerEnv success rate or provide a deployable robot controller.

Downloads last month

-

Downloads are not tracked for this model. How to track
Video Preview
loading