Skip to content

AI model

Flex-π

From github.com/geyan21/flex-pi (opens in a new tab)

  • Humanoids and robot learning
  • MIT (code)
  • MIT (weights)

A 6B-parameter world-action model for robot manipulation that jointly predicts future video, 3D pointmaps, semantic features and actions, runnable at different compute levels from one checkpoint.

  • Conflicting license statements. The README names Apache-2.0, CC-BY-NC-SA-4.0 and CC-BY-4.0, which the license files do not.

Facts

Code last updated
28 Oct 2026Newest commit on main
Maintenance
Activea commit in the last 90 days
Difficulty
Advanced
Hardware it needs, as the project states it
Linux x86_64 with CUDA 12.8 and Python 3.10. Inference and deployment need 16–26 GB memory on one RTX 4090 or 5090 (peaks measured on an RTX 5090). Training needs 80 GB per GPU on 4–8 A100 80GB, H100 or H200 GPUs; the launchers assume 8 GPUs and 4 is the stated floor.

Checked on GitHub on 28 Nov 2026.

Licenses

Code
MIT (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 044b8c2 (opens in a new tab), on 21 Nov 2026.

Commercial use
Yes

The README (README.md (opens in a new tab)) also names Apache-2.0, CC-BY-NC-SA-4.0, CC-BY-4.0, which the license files do not.

At a glance

What it is
  • Predicts future RGB frames, 3D pointmaps, DINOv3 semantic features and robot actions during training, using a Mixture-of-Transformers architecture.
  • Trained with random stream dropout so a single checkpoint can run any subset of input and generated streams.
  • Action-only inference is the fast path; full joint generation of visual futures is slower but more accurate.
  • Evaluated on RoboTwin 2.0 and LIBERO simulation benchmarks, and deployed on a bimanual YAM real robot via a WebSocket policy server.
  • Checkpoints and datasets are published on Hugging Face; training and evaluation launchers are provided per benchmark.
  • Inference can be sped up training-free with torch.compile, with optional TensorRT engines for the joint path.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses this model yet.
Licence
MIT (code); MIT (weights). Commercial use: Yes. Where it was read
Load it
In the creator's words: The project's website (opens in a new tab)
Maintenance
Active, last commit on 28 Oct 2026.

Use it

How to load it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 044b8c2

Robotheca read the repository at two versions: the summary at 20c1b2b and the facts and the README at 044b8c2 (read on 28 Nov 2026).

Robotheca never hosts the code or the weights: each link goes to the creator's own page.

The README and the model card

The creator's own README, copied as written: README.md by @geyan21, at commit 044b8c2, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Flex-π: A Multi-Stream World-Action Model with Compute Flexibility

University of Washington  ·  Allen Institute for AI

*Equal contribution  ·  †Equal advising

Flex-π overview: multi-stream world-action model, latency vs performance, and real-world results

🔥 Overview

Flex-π is a 6B-parameter world-action model for robot manipulation. It jointly predicts future RGB, 3D pointmaps, DINOv3 semantics, and actions in training, then deploys as a VLA, as a full world-action model, or as anything in between — all from a single checkpoint. Most world-action models predict one thing, future RGB latents: a strong prior, but one trained to reconstruct pixels, carrying no explicit signal for the 3D geometry or object semantics that manipulation actually needs.

Geometry and semantics arrive through frozen, off-the-shelf encoders — and the Wan-2.2 video VAE, trained only on RGB pixels, turns out to encode 3D pointmaps almost losslessly. All three become token streams in one shared latent space, co-denoised with actions inside a Mixture-of-Transformers. Training then drops visual streams at random and makes the model generate the ones it never saw as input — cross-modality forcing — so the backbone has to internalize each modality from the others. What comes out is one checkpoint that runs any subset of streams, in and out — action-only at 60 ms, full joint generation at 193 ms, anywhere in between, all selected by a runtime flag.

Key Features
  • One checkpoint, any regime. 56 deployable combinations of observed and generated streams from one set of weights, from VLA latency to full joint generation. Any input, any output, no retraining — depth sensor optional.
  • VLA latency, WAM performance. Action-only runs at ~60 ms/call on an RTX 5090 — faster than every baseline we compare against, and still ahead of all of them on every real-world task. Generating the visual futures too costs latency and wins more.
  • Real-world precision and dexterity. Ahead of π0.5, ManiFlow and Fast-WAM on all five bimanual YAM tasks — 2.3× the success rate of the strongest — including an eight-stage gripper self-repair whose tightest insertion leaves ±0.25 mm of clearance, and the most robust to unseen objects and clutter.
  • Learns from fewer demonstrations. The world-action objective stands in for data: 1.9–4.5× the success of the baselines at 50–100 RoboTwin demos per task, and on the real robot half the demonstrations still beat every baseline trained on all of them. At full data: 94.6% on RoboTwin's 50 tasks, up to 99.2% on LIBERO.
✨ News
📋 Table of Contents
📝 Release Notes

2026-10 — preview checkpoints, LoRA fine-tuning and the 34-D action space.

📦 Model Download
TargetCheckpointTrained on
RoboTwin 2.0flexpi-robotwin (opens in a new tab)50 tasks, 2,500 clean + 25,000 domain-randomized demos
LIBEROflexpi-libero (opens in a new tab)all four suites, stream dropout at every p
LIBEROflexpi-libero-fulljoint-star (opens in a new tab)all four suites, no dropout — always jointly denoised
Bimanual YAM, pretrained (preview), RGB + DINO + depthflexpi-pretrain-preview (opens in a new tab)~4,600 hours of robot data
Bimanual YAM, pretrained (preview), RGB + DINOflexpi-pretrain-rgb-preview (opens in a new tab)~4,100 hours of robot data

The preview checkpoints run zero-shot on a bimanual YAM-family rig (docs/PRETRAINED.md (opens in a new tab)) or as a starting point for fine-tuning (docs/FINETUNE.md (opens in a new tab)). flexpi-pretrain-preview trains on RGB + DINO + depth modalities (depth optional at inference; training depth is DA3 for ABC-130k, MolmoAct2 and AgiBot World, and sensor depth for the YAM data), and flexpi-pretrain-rgb-preview on RGB + DINO.

💻 Requirements

Linux x86_64, CUDA 12.8, Python 3.10.

ModeMemoryGPUs
Inference, deployment16–26 GB1 × RTX 4090 / 5090
LoRA fine-tuning24 GB1 × RTX 4090 / 5090, or any 24 GB+ card
Full training and fine-tuning80 GB each4–8 × A100 80GB / H100 / H200

Inference peaks are measured on an RTX 5090; the top of the range is the TensorRT stack. Full training: the launchers assume 8 GPUs; 4 is the floor, and proportionally slower. LoRA fine-tuning (lora.enabled=true, docs/TRAINING.md §7 (opens in a new tab)) peaked at 16–19 GiB on the RoboTwin and YAM presets, measured on an A100 with memory capped at 22 GiB.

🔧 Installation
git clone --recurse-submodules https://github.com/geyan21/flex-pi.git
cd flex-pi

Then follow docs/INSTALL.md (opens in a new tab) — conda, uv and Docker recipes for the one environment that covers training, evaluation and deployment, plus the weights and the simulators. Everything after this point runs from the repository root.

flex-pi/
├── docs/
│   ├── INSTALL.md              # conda / uv / Docker, weights, verification
│   ├── OVERVIEW.md             # architecture and training/eval workflow
│   ├── TRAINING.md             # end-to-end training guide (every launcher knob)
│   ├── LIBERO.md               # LIBERO 4-suite training + evaluation
│   ├── ROBOTWIN.md             # RoboTwin 2.0 training + evaluation
│   ├── YAM.md                  # real-world training + robot deployment
│   ├── PRETRAINED.md           # the preview checkpoints, served zero-shot
│   ├── FINETUNE.md             # fine-tuning the preview checkpoints
│   ├── MIXED_EMBODIMENT_34D.md # one 34-D action head for 6- and 7-joint arms
│   └── INFERENCE_OPTIMIZATION.md   # measured latency per stack + engine builds
├── src/flexpi/
│   ├── models/
│   │   ├── flexpi.py            # the Flex-π model
│   │   ├── backbone.py          # multi-stream backbone
│   │   ├── mot.py               # Mixture-of-Transformers core
│   │   ├── action_dit.py        # action expert (~1B)
│   │   ├── dino_encoder.py      # frozen DINOv3 tokenizer
│   │   ├── pointmap_encoder.py  # pointmap → shared VAE latent space
│   │   ├── wan_video_{dit,vae,text_encoder}.py
│   │   └── helpers/flex_joint.py  # per-sample stream/joint sampling
│   ├── datasets/lerobot/        # multi-camera LeRobot dataset + processors
│   ├── trainer.py               # AdamW + cosine + bf16 + DeepSpeed ZeRO
│   └── runtime.py               # create_flexpi() factory
├── configs/
│   ├── model/flexpi.yaml        # architecture + flex_joint knobs
│   ├── data/                    # dataset presets, one per benchmark
│   │   ├── {robotwin,libero,yam}.yaml       # what the task configs select
│   │   ├── {robotwin,libero}_nodepth.yaml   # same, minus the depth stream
│   │   └── {yam34,agibot34}.yaml            # the 34-D action layout (docs/MIXED_EMBODIMENT_34D.md)
│   ├── task/                    # training presets (see table below)
│   ├── train.yaml               # training defaults
│   └── sim_{robotwin,libero}.yaml, real_yam.yaml   # evaluation defaults
├── scripts/
│   ├── train.py                        # Hydra entry point
│   ├── train_flexpi_{robotwin,libero,yam}.sh   # per-benchmark launchers
│   ├── preprocess_action_dit_backbone.py
│   ├── precompute_text_embeds.py
│   ├── serve_yam_flexpi.py             # real-robot WebSocket policy server
│   ├── serve_flexpi_yam.sh             # its launcher (edit config block, run)
│   ├── render_prediction_dump.py       # renders the server's raw prediction dumps
│   ├── test_rd_client_dummy.py         # no-robot client: round-trip latency against a server
│   ├── norm_stats/                     # frame-pooled stats fitter
│   ├── da3_depth/                      # add DA3 depth to an RGB-only dataset
│   └── inference_opt/                  # TensorRT export + latency benchmarks
├── experiments/
│   ├── robotwin/    # eval manager + RoboTwin policy wrapper
│   ├── libero/      # eval entry points + 4-suite summariser
│   └── yam/         # real-robot server side: policy, wire adapter, action smoothing
└── third_party/
    ├── RoboTwin/    # vendored eval harness (see README.vendor.md)
    └── LIBERO/      # submodule
🧩 Model Preparation

Run once, before the first training run.

cd flex-pi                      # the project directory
mkdir -p checkpoints
export DIFFSYNTH_MODEL_BASE_PATH="$(pwd)/checkpoints"

Then fetch the weights — Wan2.2-TI2V-5B plus the resampled ActionDiT backbone, the T5 text-embedding cache, and DINOv3. Refer to docs/INSTALL.md §2 (opens in a new tab).

📊 Data Preparation

Every dataset is published at huggingface.co/flex-pi (opens in a new tab), ready to train on as downloaded. To build your own instead, the layout to match is a LeRobot v2.1 dataset with canonical camera keys — docs/TRAINING.md §1.2 (opens in a new tab).

BenchmarkRepository
LIBEROlibero_mujoco3.3.2_depth — all four suites
RoboTwin 2.0robotwin_3d, plus robotwin_3d_text_embeds_cache to skip the T5 precompute
Real-world YAMone per task — put_plate_on_the_rack, sort_utensils, kitchen_organization, soft_bag_zipping, self_repair_gripper_bc, self_repair_gripper_dagger
huggingface-cli download flex-pi/libero_mujoco3.3.2_depth \
  --repo-type dataset --local-dir ./data/libero_mujoco3.3.2_depth
🚀 Training

Each benchmark has a launcher that wraps accelerate launch scripts/train.py with DeepSpeed ZeRO-1. Edit the config block at the top of one — GPUs, batch size, epochs, dataset paths — and run it.

# RoboTwin
bash scripts/train_flexpi_robotwin.sh

# LIBERO 4-suite
bash scripts/train_flexpi_libero.sh

# Real-world YAM bimanual
DATASET_DIRS="[./data/<your_yam_set>]" bash scripts/train_flexpi_yam.sh

They default to 8 GPUs and write to runs/<task_config>/<run_id>_<regime_tag>/ — the config.yaml and dataset_stats.json that evaluation reads back land there beside the checkpoints.

yam_unified_flex_3cam_34d_rel_1e-4 and agibot_unified_flex_3cam_34d_1e-4 train the 34-D action layout (docs/MIXED_EMBODIMENT_34D.md (opens in a new tab)). Fine-tuning a preview checkpoint (docs/FINETUNE.md (opens in a new tab)):

TASK_CONFIG=yam_finetune_pretrain_preview_3cam_34d_rel_1e-4 \
DATASET_DIRS="[./data/<your_yam_set>]" bash scripts/train_flexpi_yam.sh

Every knob and recipe is in docs/TRAINING.md (opens in a new tab), and each benchmark has an end-to-end guide: RoboTwin (opens in a new tab) · LIBERO (opens in a new tab) · YAM (opens in a new tab).

🎯 Evaluation

Both need their simulator installed (docs/INSTALL.md §4 (opens in a new tab)). Match the GPU count to your machine.

RoboTwin 2.0
huggingface-cli download flex-pi/flexpi-robotwin --local-dir runs/flexpi-robotwin

# then set these two lines at the top of scripts/eval_flexpi_robotwin.sh:
#   CKPT="./runs/flexpi-robotwin/checkpoints/weights/step_048060.pt"
#   DATASET_STATS="./runs/flexpi-robotwin/dataset_stats.json"

bash scripts/eval_flexpi_robotwin.sh

The defaults are the full-joint regime; setting the three INFER_JOINT_* flags to false gives action-only. A full sweep is 50 tasks × 2 phases × 100 episodes.

LIBERO
huggingface-cli download flex-pi/flexpi-libero-fulljoint-star \
  --local-dir runs/flexpi-libero-fulljoint-star

CKPT=$(ls runs/flexpi-libero-fulljoint-star/checkpoints/weights/*.pt) \
DATASET_STATS=runs/flexpi-libero-fulljoint-star/dataset_stats.json \
GPUS=0,1,2,3,4,5,6,7 \
  bash scripts/eval_flexpi_libero_4suite.sh

It shards the 40 tasks across the GPUs and writes summary_4suite.{csv,json}. A partial sweep is reported as INCOMPLETE rather than averaged silently.

Protocol, knobs and troubleshooting: RoboTwin (opens in a new tab) · LIBERO (opens in a new tab) · YAM (opens in a new tab).

🔀 Inference Regimes

infer_joint_* picks what gets generated, infer_present_* what gets encoded as input — 56 combinations from one checkpoint. An unset flag takes the trained default.

# action only — the fast path
python experiments/robotwin/run_robotwin_manager.py task=... ckpt=... \
  +EVALUATION.infer_joint_video=false \
  +EVALUATION.infer_joint_dino=false \
  +EVALUATION.infer_joint_pointmap=false

# full joint generation — the accurate path
python experiments/robotwin/run_robotwin_manager.py task=... ckpt=... \
  +EVALUATION.infer_joint_video=true \
  +EVALUATION.infer_joint_dino=true \
  +EVALUATION.infer_joint_pointmap=true

The eval launchers wrap these as INFER_JOINT_* / INFER_PRESENT_*, with the full regime table in their headers.

🦾 Real-World Deployment

The policy runs as a WebSocket server; the robot client sends observations and receives action chunks.

conda activate flexpi
export DIFFSYNTH_MODEL_BASE_PATH=/path/to/wan22_weights
python scripts/serve_yam_flexpi.py \
    --ckpt-path <run>/checkpoints/weights/step_NNNNNN.pt \
    --default-prompt "<language instruction>"

dataset_stats.json and config.yaml are picked up next to the checkpoint. scripts/serve_flexpi_yam.sh wraps this with the regime (--infer-joint-* / --infer-present-*) and TensorRT knobs already wired up.

The preview checkpoints serve through the same server; their regimes and input contract are in docs/PRETRAINED.md (opens in a new tab).

The msgpack wire contract a client must speak is in docs/YAM.md (opens in a new tab); the server-side code lives in experiments/yam/flexpi_policy/ (opens in a new tab). docs/YAM.md (opens in a new tab) also covers the three serving configurations and the rules that have caused emergency stops on real hardware.

⚡ Inference Optimization

Training-free — the same checkpoint, made faster. ms/call on an RTX 5090 at four denoise steps:

Stackfull jointaction only
eager PyTorch447132
torch.compile — the default of the RoboTwin eval launchers36060
+ TensorRT joint engine230—
+ TensorRT KV-split engines193—

TensorRT is optional and applies to the joint path only; everything runs without it. scripts/inference_opt/benchmark_flex_latency.py (opens in a new tab) reproduces the table, and docs/INFERENCE_OPTIMIZATION.md (opens in a new tab) has the engine builds and the server knobs.

📜 License

MIT — see LICENSE (opens in a new tab). Vendored third-party code keeps its own license; see third_party/*/README.vendor.md.

The released checkpoints, the two previews included, are MIT as well. Their training data keeps its own terms: ABC-130k and MolmoAct2 are Apache-2.0; AgiBot World (in flexpi-pretrain-preview only) is gated under CC BY-NC-SA 4.0. The flex-pi YAM datasets are CC BY 4.0. DINOv3 has its own license.

🙏 Acknowledgements

Flex-π builds on Wan2.2 (opens in a new tab) for the video backbone and VAE, DINOv3 (opens in a new tab) for semantic features, and Depth Anything 3 (opens in a new tab) for pointmap annotation. The RoboTwin evaluation harness is adapted from the RoboTwin (opens in a new tab) repository, and the codebase inherits structure from Fast-WAM (opens in a new tab). Pre-training data comes from ABC-130k (opens in a new tab), MolmoAct2 (opens in a new tab) and AgiBot World (opens in a new tab), and the real-robot YAM data collection and control run on raiden (opens in a new tab). We thank all of these teams for releasing their work.

📖 Citation
@article{yan2026flexpi,
  title   = {Flex-$\pi$: A Multi-Stream World-Action Model with Compute Flexibility},
  author  = {Yan, Ge and Liu, Jinghao and Fan, Yuzhi and Cai, Lei and Liao, Minwen
             and Zhang, Jesse and Fox, Dieter},
  journal = {arXiv preprint arXiv:2608.10860},
  year    = {2026},
  url     = {https://arxiv.org/abs/2608.10860}
}

Read the model card on Hugging Face (opens in a new tab)

Robotheca lists AI models as a reference: nothing is hosted or run here, and every fact links to where it was read.