---
title: "π0 and π0-FAST: Vision-Language-Action Models for General Robot Control"
description: "Physical Intelligence's π0 and π0-FAST vision-language-action models are now ported to PyTorch in Hugging Face LeRobot, with commands for inference and fine-tuning. π0 adds state and action tokens to a PaliGemma-style prefix and generates 50Hz action trajectories via flow matching."
url: "https://swe.quest/articles/0-and-0-fast-vision-language-action-models-for-general-robot-control-ed64bebcaa563b57"
canonical: "https://huggingface.co/blog/pi0"
source: "Hugging Face"
published: "2025-02-04"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 11
tags: ["machine-learning","model-training","computer-vision","python"]
---

# π0 and π0-FAST: Vision-Language-Action Models for General Robot Control

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-02-04, 11 min read, Deep dive. Original: [https://huggingface.co/blog/pi0](https://huggingface.co/blog/pi0)

## Summary

Physical Intelligence's π0 and π0-FAST vision-language-action models are now ported to PyTorch in Hugging Face LeRobot, with commands for inference and fine-tuning. π0 adds state and action tokens to a PaliGemma-style prefix and generates 50Hz action trajectories via flow matching. Its block-sparse attention mask is implemented efficiently with PyTorch FlexAttention using a precomputed block mask rather than score\_mod, which runs outside the optimized kernel. π0-FAST is autoregressive and uses the FAST tokenizer, which applies quantile normalization, a per-dimension DCT, scale-and-round, and BPE, claiming 5x faster training than diffusion-based VLAs.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- transformer attention masks
- vision-language models ([easy posts on Computer vision](https://swe.quest/tags/computer-vision.md?difficulty=easy))
- diffusion or flow matching basics
- robot control policies

## Keywords

π0, π0-FAST, LeRobot, Physical Intelligence, FlexAttention, PaliGemma, FAST tokenizer, Discrete Cosine Transform

## Related posts

- [SmolVLA: Efficient Vision-Language-Action Model trained on Lerobot Community Data](https://swe.quest/articles/smolvla-efficient-vision-language-action-model-trained-on-lerobot-community-data-99cf2ea745877ec8.md): Hugging Face · 2025-06-03 · Hard · 17 min read · Machine learning, Model training, Inference & serving, Computer vision, Open source
  SmolVLA is a 450M-parameter open-source vision-language-action model for robotics, pretrained on about 10M frames from 487 curated LeRobot community datasets and able to run on consumer hardware.
- [LeRobot v0.5.0: Scaling Every Dimension](https://swe.quest/articles/lerobot-v0-5-0-scaling-every-dimension-3b9aaf7ea282c603.md): Hugging Face · 2026-03-09 · Medium · 9 min read · Machine learning, Model training, Python, Open source
  LeRobot v0.5.0 adds full Unitree G1 humanoid support with locomotion, manipulation, teleoperation and whole-body control.
- [Vision Language Models Explained](https://swe.quest/articles/vision-language-models-explained-92cc71897cd36570.md): Hugging Face · 2024-04-11 · Medium · 8 min read · Computer vision, LLMs, Model training, Evaluation, Python
  Vision language models combine an image encoder, a projector that aligns image features with text embeddings, and a text decoder that generates text from both inputs.
- [Vision Language Models (Better, faster, stronger)](https://swe.quest/articles/vision-language-models-better-faster-stronger-e122b57ac9aa84ed.md): Hugging Face · 2025-05-12 · Easy · 23 min read · LLMs, Computer vision, Machine learning, RAG & retrieval, Inference & serving
  Vision language models shifted over the past year toward smaller yet stronger models, any-to-any architectures, multimodal reasoning, Mixture-of-Experts decoders and vision-language-action models for robotics.
- [nanoVLM: The simplest repository to train your VLM in pure PyTorch](https://swe.quest/articles/nanovlm-the-simplest-repository-to-train-your-vlm-in-pure-pytorch-58371792838c4fd0.md): Hugging Face · 2025-05-21 · Medium · 9 min read · Model training, Computer vision, LLMs, Python
  nanoVLM is a minimal, readable pure-PyTorch toolkit for training small Vision Language Models, inspired by nanoGPT and runnable on a free Colab notebook.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
