CoolFace
Apppublic

hugging-apps/flex-pi-libero-demo

sourceHugging Facemitupdated 3d agoView on Hugging Face
0likes
App README

Flex-π on LIBERO

Closed-loop rollouts of Flex-π, the multi-stream world-action model from *Flex-π: A Multi-Stream World-Action Model with Compute Flexibility* (project page · code), driving a real LIBERO MuJoCo simulation.

Checkpoint: `flex-pi/flexpi-libero` (6B, built on `Wan-AI/Wan2.2-TI2V-5B`).

What this actually runs

Pick one of the 40 LIBERO tasks, hit Run rollout, and the Space:

  1. 1.builds the task's MuJoCo environment and resets it to one of the 50 saved init states,
  2. 2.every replan steps feeds the live agentview + wrist RGB (plus the simulator's depth, turned into a normalized XYZ pointmap) and the language instruction into the policy,
  3. 3.executes the returned 32-step action chunk in the sim,
  4. 4.streams frames back and, at the end, renders the rollout video, the model's own predicted future video (the world-model stream), and the action trajectory it committed to.

Compute flexibility

The single checkpoint supports 56 deploy regimes. Three are exposed here:

RegimeGenerated streamsCost
Action onlyaction chunk (KV-cache fast path)cheapest
Action + future videoaction chunk + RGB futuremedium
Action + video + DINO + pointmapall four streams jointlymost expensive, best 3D grounding

That is the paper's point: you trade denoising compute for grounding at inference time, without retraining.

Notes / limitations

  • ZeroGPU gives each call a bounded GPU slice, so the step budget is capped well below LIBERO's official 400/700-step limits — a failed rollout here is not a benchmark number.
  • Depth comes from the simulator (as in the paper's eval), so this is a simulator demo rather than a bring-your-own-photo demo; the instruction textbox is free-text, and the T5 encoder is loaded so you can rewrite it.
  • MuJoCo renders through OSMesa on CPU; the GPU is used only for the policy.

Credits

  • Flex-π: model, src/flexpi, and experiments/libero are vendored from geyan21/flex-pi (MIT, see LICENSE-flexpi).
  • LIBERO: third_party/LIBERO is vendored from Lifelong-Robot-Learning/LIBERO (MIT, see third_party/LIBERO/LICENSE).