*This model was published in HF papers on 2025-04-22 and contributed to Hugging Face Transformers on 2026-11-23.*
# PI0.5
[PI0.5](https://huggingface.co/papers/2504.16054) is a vision-language-action model for robot manipulation from Physical Intelligence. It keeps the [PI0](./pi0) layout: a PaliGemma backbone reads the camera images and the prompt, and a smaller Gemma action expert predicts a chunk of actions with flow matching.
PI0.5 changes two things compared to PI0:
- The robot state is not projected into the action expert. The processor discretizes it into 256 bins and writes the bin indices into the text prompt (`Task: ..., State: ...;\nAction: `).
- The action expert receives the denoising timestep through adaptive RMS norms. Each norm predicts a scale, a shift and a residual gate from the timestep embedding. The action tokens themselves only carry the noisy actions.
The processor normalizes the state and actions with the statistics of the dataset the checkpoint was trained on: mean and standard deviation, or the 1st and 99th percentiles. Pass them when creating the processor.
The original code can be found [here](https://github.com/Physical-Intelligence/openpi). The checkpoints are the LeRobot ones, for example [lerobot/pi05_base](https://huggingface.co/lerobot/pi05_base). LeRobot fine-tuned checkpoints, which store the weights under an extra `model.` prefix, load as well.
## Usage examples
```python
import torch
from transformers import PI05ForConditionalGeneration, PI05Processor
from transformers.image_utils import load_image
model = PI05ForConditionalGeneration.from_pretrained("lerobot/pi05_base", device_map="auto")
processor = PI05Processor.from_pretrained(
"google/paligemma-3b-pt-224",
state_q01=[-1.0] * 8, # replace with the 1st percentile of your dataset's robot state
state_q99=[1.0] * 8, # replace with the 99th percentile of your dataset's robot state
)
image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/vla_pi0.jpg")
state = torch.rand(1, 8) * 2 - 1 # replace with the robot state
inputs = processor(image, "Pick up the object", state=state, return_tensors="pt").to(model.device)
actions = model.sample_actions(**inputs, num_steps=10)
print(actions.shape)
```
## PI05Config
[[autodoc]] PI05Config
## PI05Processor
[[autodoc]] PI05Processor
- __call__
## PI05Model
[[autodoc]] PI05Model
- forward
- embed_prefix
## PI05ForConditionalGeneration
[[autodoc]] PI05ForConditionalGeneration
- forward
- sample_actions