lucidrains/pi-zero-pytorch
A PyTorch implementation of π₀, the robotic foundation model from Physical Intelligence that combines flow-matching with vision-language model components for robot action prediction.

This repository reproduces the π₀ architecture proposed by Physical Intelligence, serving as a simplified Transfusion model with influences from Stable Diffusion 3. It uses flow matching instead of diffusion for policy generation and adopts joint attention from mmDIT. The model takes vision inputs, language commands, and joint state to output robot actions, building on a pretrained PaliGemma 2B vision-language model backbone. The architecture employs Flex Attention to mix autoregressive and bidirectional attention patterns across different token types.
Frequently asked
- What is lucidrains/pi-zero-pytorch?
- A PyTorch implementation of π₀, the robotic foundation model from Physical Intelligence that combines flow-matching with vision-language model components for robot action prediction.
- Is pi-zero-pytorch open source?
- Yes — lucidrains/pi-zero-pytorch is open source, released under the MIT license.
- What language is pi-zero-pytorch written in?
- lucidrains/pi-zero-pytorch is primarily written in Python.
- How popular is pi-zero-pytorch?
- lucidrains/pi-zero-pytorch has 580 stars on GitHub.
- Where can I find pi-zero-pytorch?
- lucidrains/pi-zero-pytorch is on GitHub at https://github.com/lucidrains/pi-zero-pytorch.