Zetta-Embodiment README

README проекта с github.com/air-embodied-brain/Zetta-Embodiment. Одним файлом markdown: README.md.

Z TRANS logo
arXiv Papers with Code: SOTA on RoboCasa365 Atomic-Seen Unit tests Python 3.11 | 3.12
Zetta Overview

Zetta is an efficient closed-loop embodied harness for self-evolving physical intelligence. It evolves code-based runtime critics and recovery skills online while keeping the base policy frozen, achieving state-of-the-art success on LIBERO-Pro (90.8%) and RoboCasa (93.6%) with an 11.1x inference speedup.

What's New

More updates
  • [2026/08/27] 🔥 Zetta supports NVIDIA Cosmos models. Doc: Cosmos-Lite policy backend.
  • [2026/08/19] 🎉 Z-Infra is open-sourced with LIBERO support.
  • [2026/08/18] 🎉 Zetta is open-sourced with LIBERO and RoboCasa.

🚀 Roadmap: we continue to expand model and environment coverage at an approximate cadence of one integration per week.

How It Works

Evolution Protocol

50 development rollouts (never use seeds 1..20)
  -> Failure Cluster
  -> Stage 1 causal Diagnose
  -> Stage 2 Critic-Recovery Candidates
  -> Shadow Replay
  -> paired Same-seed Gate
  -> Held-out seeds 1..20
  -> Reject and return to Stage 2, or Promote and complete

Runtime Role Boundaries

Supported Environments and Models

Environment Policy Runtime preset Campaign preparation Docs Status
LIBERO-Pro π₀.₅ a100_libero_pi05_pro.yaml prepare_libero_campaign.py VLA runtime setup, Recovery tools ✅
RoboCasa GR00T, π₀ robocasa_groot_dynamic.yaml, robocasa_pi0.yaml prepare_robocasa_campaign.py VLA runtime setup ✅
RoboTwin 2.0 π₀.₅ robotwin_pi05.yaml prepare_robotwin_campaign.py Installation ✅
Genie Sim G2 VLA service geniesim_vla.yaml prepare_geniesim_campaign.py Genie Sim VLA and Campaign ✅ single task
ManiSkill — (fake-policy smoke) maniskill_smoke.yaml prepare_maniskill_campaign.py ManiSkill 🚧 model validation pending
BEHAVIOR π₀.₅ behavior_pi05.yaml — BEHAVIOR / OmniGibson 🚧 runtime only

Runtime presets live under rollout_runtime/config/presets/ and campaign preparation scripts under scripts/evolution/. Cosmos-Lite is available as an additional remote policy backend (cosmos_lite_remote.yaml).

Installation

Minimal test environment

Python 3.11 through 3.12 is supported. The minimal test environment (no simulator/model required):

python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[test]"

LLM provider

Campaigns call LLM agents in two places, configured separately:

Store these secrets as described in Security and Reproducibility.

VLA runtime environment (LIBERO-Pro or RoboCasa)

scripts/deployment/install_vla_env.sh builds a venv for one of two tracks. See the VLA runtime setup guide for the full installation notes, compatibility fixes, and known limitations.

[!WARNING] The two tracks cannot share a venv state (incompatible robosuite versions).

Prebuilt Docker images, built from scripts/deployment/Dockerfile.vla-env, are available for both tracks so you can skip the manual venv build:

LIBERO-Pro + Pi0.5

export REPO_ROOT=/abs/path/to/Zetta-Embodiment
export VENV_ROOT=/abs/path/to/venvs/vla-env
bash scripts/deployment/install_vla_env.sh --track libero-pro

install_vla_env.sh downloads the LIBERO-Pro scene/object assets automatically. To fetch or refresh them manually:

"$VENV_ROOT/bin/liberopro-download-assets" --skip-existing

RoboCasa + GR00T (needs a source checkout with robocasa/, robosuite/, Isaac-GR00T/)

export REPO_ROOT=/abs/path/to/Zetta-Embodiment
export VENV_ROOT=/abs/path/to/venvs/vla-env
export ROBOCASA_SRC_ROOT=/abs/path/to/robocasa-source-checkout
bash scripts/deployment/install_vla_env.sh --track robocasa

RoboCasa also needs its kitchen assets (~10GB); see the RoboCasa installation guide for details:

python -m robocasa.scripts.setup_macros              # set up system variables
python -m robocasa.scripts.download_kitchen_assets   # downloads ~10GB of kitchen assets

RoboTwin 2.0 environment

RoboTwin 2.0 + Pi0.5

RoboTwin is SAPIEN-based and cannot share a venv with either track above. Use the upstream RLinf image rather than building one:

git clone https://github.com/RoboTwin-Platform/RoboTwin.git -b RLinf_support
# then download ~15GB of assets into its assets/ directory

docker run --rm --gpus all --shm-size 32g \
  -e NVIDIA_DISABLE_REQUIRE=1 \
  -e NVIDIA_DRIVER_CAPABILITIES=compute,utility,graphics \
  -e LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/local/cuda/lib64 \
  --device /dev/dri \
  -v "$ROBOTWIN_ROOT":/workspace/RoboTwin \
  -v "$REPO_ROOT":/workspace/Zetta \
  --entrypoint /bin/bash rlinf/rlinf:agentic-rlinf0.4-robotwin

The image ships three venvs under /opt/venv/; this repository uses openpi. assets_path must point at the RoboTwin repository root, not its assets/ subdirectory.

Why these environment variables?

The three environment variables let a CUDA 12.8 image run on a 12.4 driver: NVIDIA_DISABLE_REQUIRE skips the image's cuda>=12.8 label check, NVIDIA_DRIVER_CAPABILITIES drops the display capability that needs a /dev/nvidia-modeset a headless host does not have, and LD_LIBRARY_PATH puts the host driver's libcuda ahead of the image's forward-compatibility libraries — CUDA forward compatibility is datacenter-only and fails on GeForce with Error 804.

Genie Sim / Isaac Sim environment

The native geniesim Runtime backend supports the RoboColiseum g2op_if_pick_block_color task with Isaac Sim 5.1 and an isolated Python 3.11 simulator process. Use prepare_geniesim.py to prepare pinned dependencies and task assets, then run smoke_geniesim.py to validate reset, joint control, RGB observations, official scoring, and shutdown. The geniesim_vla backend adds the G2 CoRobot WebSocket policy protocol, and prepare_geniesim_campaign.py freezes VLA rollout and candidate gate commands. See Genie Sim VLA and Campaign for the model-service contract, deployment, evidence, and current single-task limits.

ManiSkill environment

The native Panda / PickCube-v1 integration adds explicit observation/action contracts, official scoring, reproducible resets and a single-GPU Ray smoke preset. See ManiSkill deployment and contracts for installation, validation and frozen rollout/campaign configuration. Real VLA and campaign validation requires a matching native PickCube checkpoint and normalization stats.

BEHAVIOR environment

The behavior Runtime backend drives a single R1Pro agent in an OmniGibson BehaviorTask. It exposes the BEHAVIOR policy contract (224px RGB, two wrist views, full R1Pro proprioception, and 23-dimensional actions) and keeps OmniGibson/BDDL optional so the simulator-free test environment remains usable. See BEHAVIOR / OmniGibson for details.

Installation steps

Install the repository's lightweight extra first:

python -m pip install -e ".[behavior]"

Then install the matching OmniGibson and BDDL checkouts from their upstream repositories and download the BEHAVIOR assets separately. Set env_config.activity_name, scene_model, and env_config.env_factory in rollout_runtime/config/presets/behavior_pi05.yaml for the selected checkout. Use scripts/deployment/smoke_behavior.py to verify import, reset, one step, and close before starting a VLA rollout. Model weights and simulator assets are external artifacts and are not included in this repository.

Runtime Rollout System

Campaigns drive rollouts through the Rollout Runtime rather than talking to a per-task VLA/env server directly. Start it once per host, then point campaign preparation at it:

CUDA_VISIBLE_DEVICES=0 MUJOCO_GL=egl \
python -m rollout_runtime.cli serve \
  --config <preset-name-or-yaml-path> \
  --host 127.0.0.1 \
  --port 18730 \
  --launch ray

[!WARNING] --launch ray is required for real hardware runs: it puts the EnvWorker (simulator) and RolloutWorker (model inference) groups into separate processes. --launch local (the default) keeps them in one process and is only for local/CI smoke tests.

Presets live under rollout_runtime/config/presets/; copy and edit one for machine-specific GPU/checkpoint paths rather than committing a new preset with real paths.

Preparing and Running a Campaign

LIBERO, RoboCasa, RoboTwin, Genie Sim and ManiSkill all use the same two-step flow: prepare_*_campaign.py freezes a manifest.json/tool-catalog.json against a running runtime, then run_campaign.py drives the campaign state machine to completion.

# 1. Start the runtime (see above), then prepare the campaign against it.
python scripts/evolution/prepare_libero_campaign.py \
  --output-root runs/libero-goal-s-task3/g0000 \
  --campaign-id libero-goal-s-task3-g0000 \
  --repository-root "$PWD" \
  --runtime-python .venv/bin/python \
  --code-commit "$(git rev-parse HEAD)" \
  --suite libero_goal_swap \
  --task-id 3 \
  --task libero_goal_swap/task3 \
  --task-language "Open the top layer of the drawer and put the bowl inside" \
  --master-seed 2026081103 \
  --rollout-count 50 \
  --fixed-heldout-seeds 1-20 \
  --heldout-mode test \
  --runtime-url http://127.0.0.1:18730 \
  --runtime-policy-id <policy-id>

# 2. Run it: this starts the worker, ingests episodes, and drives
#    Cluster -> Diagnose -> Stage2 -> Shadow Replay -> Same-seed -> Held-out.
python scripts/evolution/run_campaign.py \
  --manifest runs/libero-goal-s-task3/g0000/manifest.json \
  --root runs/libero-goal-s-task3/g0000 \
  --queue-root runs/libero-goal-s-task3/queue \
  --tool-catalog runs/libero-goal-s-task3/g0000/tool-catalog.json \
  --workers libero-worker-0 \
  --model <model-name> \
  --max-generations 1

[!NOTE] Replace <model-name> with a model served by your Codex provider (see LLM provider). As of 2026/09/20, our experiments use gpt-5.6-sol; we will keep this updated as newer models are evaluated.

--worker-command (optional, must be the final flag) overrides how each worker process is launched, substituting {queue_root}/{host} into a custom command template; omit it to use the default zetta.evolution.cli worker invocation.

--runtime-url/--runtime-policy-id replace the legacy --vla-endpoint/--environment-gpus flags; RoboCasa campaigns always go through the runtime (there is no direct-connect path). ROLLOUT_COUNT=50, HELDOUT_COUNT=20, and the official horizons are the formal-run defaults. Each preparation script's --help output is the authoritative option list.

[!NOTE] A quick infrastructure check may use 1/1/1 with a positive CAMPAIGN_MAX_STEPS, but that is not a benchmark result.

[!NOTE] RoboTwin differs in two ways that its manifest records explicitly. Its seeds come from RoboTwin's curated per-task success-seed list rather than a dense integer range — the environment picks its scene from the seed outright, so a held-out block drawn from unsolvable scenes would not be a gate — and its evidence is chunk-granular rather than per-step, because it is the only final_only family.

The RoboTwin campaign loop runs end to end on hardware: rollouts, Cluster, Diagnose, Stage 2, and the paired same-seed gate, over five candidate rounds to a complete campaign.

Inspecting a campaign

To inspect a campaign read-only:

python -m zetta.evolution.cli status --root runs/libero-goal-s-task3/g0000 \
  --queue-root runs/libero-goal-s-task3/queue

Campaign root layout

A campaign root normally contains:

manifest.json             frozen task, schedule, runtime, and gate contract
preregistration.json      seed and evaluation commitments
task-contract.json        authoritative language goal, when supplied
tool-catalog.json         exact tool schemas available to candidates
state.json                current lifecycle phase
episodes/                 canonical rollout and paired-gate records
failure-clusters/         Cluster inputs, visual indices, and outputs
diagnoses/                Stage 1 inputs, outputs, and audit trail
proposals/                Stage 2 candidate attempts
shadow-replay/            offline trigger and false-positive evidence
gates/                    same-seed, regression, and held-out decisions
promoted/                 verified candidate bundle and hashes

Repository Layout

Path Purpose
zetta/evolution/ Immutable manifests, queues, clustering, stages, gates, promotion, and supervision
rollout_runtime/ The Rollout Runtime: Gateway, EnvWorker/RolloutWorker groups, and backends for LIBERO/RoboCasa/ManiSkill/BEHAVIOR/RoboTwin/Genie Sim
robots/libero/, robots/robocasa/, robots/robotwin/ Env clients, Role1/Critic/Recovery, tools, and rendering contracts
robots/geniesim/, robots/maniskill/, robots/behavior/ Environment contracts and rollout entrypoints
scripts/evolution/ Campaign preparation, workers, capacity probes, and plots
scripts/deployment/ Service start/stop, VLA env install, and Docker build helpers
tests/ Unit/contract tests; the minimal set requires no simulator or model

Videos, model weights, simulator assets, API credentials, and host runtime files remain outside Git.

Tests

# Contract suite, no simulator/model required:
python -m pytest -q tests/test_evolution_protocol.py tests/test_evolution_core.py tests/test_libero_eval_horizon.py

# Everything currently available:
python -m pytest -q

Optional-backend tests require the corresponding dependencies; hardware/service smoke tests live under scripts/deployment/ and are not part of the minimal unit suite.

Security and Reproducibility

FlashRT Integration

The flashrt policy backend (rollout_runtime/backends/flashrt_policy.py) serves Pi0.5 with FlashRT's FP8 + CUDA Graph kernels, including a batched infer_batch path. On a single RTX 4090 it cuts Pi0.5 single-sample latency 9.9× model-only (230.4 → 23.3 ms) and 4.5× through the gateway (271.3 → 60.5 ms), with 0.9989 action cosine similarity to the zetta_openpi baseline; see the FlashRT performance report.

  1. Install FlashRT (no PyPI wheel; build locally with a CUDA toolchain, see FlashRT), then pip install -e ".[flashrt]" for the torch glue.
  2. Prepare the checkpoint: bash scripts/deployment/prepare_flashrt_ckpt.sh <openpi_ckpt_dir> <dst_dir> lays out an openpi/RLinf Pi0.5 checkpoint the way FlashRT expects.
  3. Generate the calibration .npz (a real LIBERO frame for FP8 calibration): start the gateway with a LIBERO preset, then run python scripts/experiments/capture_flashrt_calibration_frame.py --url http://localhost:8711 --token <token> --out /path/to/out/flashrt_calibration.npz.
  4. Run: set checkpoint and calibration_data_path in rollout_runtime/config/presets/libero_pi05_flashrt_4090.yaml and launch the gateway with it (policy_backend: flashrt).

GR00T N1.5 (RoboCasa). The flashrt_groot policy backend (rollout_runtime/backends/flashrt_groot_policy.py, preset robocasa_groot_flashrt) serves GR00T N1.5 through a torch CUDA-Graph accelerator (rollout_runtime/backends/flashrt_groot_n15.py: one static-shape graph per prompt shape, flash-attn kept inside the graph, DiT cross-attention K/V cache). FlashRT has no N1.5 frontend, so this path does not use FlashRT kernels and needs none of the steps above. On an RTX 4090 (huangmz21/gr00t-n1.5-robocasa-atomic-seen-180k, three 256×256 views, ~820 prompt tokens) get_action drops from 94.7 ms (eager) to 44.2 ms, 31.0 ms of which is graph replay, with 0.999995 action cosine similarity to the eager path and identical gripper/control decisions. Batches larger than one fall back to the eager path, which matches the groot backend exactly. It needs flash_attn importable and a Gr00tPolicy whose get_action calls _get_action_from_normalized_input (the robocasa-benchmark/Isaac-GR00T fork, which also provides panda_omron); forks that route elsewhere are rejected at load. On a busy host, cap CPU threads (e.g. OMP_NUM_THREADS=8): with one torch thread per core, Eagle preprocessing alone can take hundreds of milliseconds.

Acknowledgements

We acknowledge RLinf and FlashRT for their prior work. See Third-Party Notices for details.

Citation

If you find Zetta useful in your research, please cite our paper:

@misc{ding2026zettazetaefficientclosedloop,
      title={Zetta $\zeta$: An Efficient Closed-Loop Embodied Harness for Self-Evolving Physical Intelligence}, 
      author={Xin Ding and Liang Mi and Mingzhe Huang and Zixuan Wang and Chao Zhang and Zixu Hao and Fu Chen and Xiangyu Li and Yikai Zheng and Yaoyu Guo and Weijun Wang and Kun Li and Hao Wu and Yunxin Liu and Ting Cao},
      year={2026},
      eprint={2608.16590},
      archivePrefix={arXiv},
      primaryClass={cs.RO},
      url={https://arxiv.org/abs/2608.16590}, 
}

License

Zetta is released under the Apache-2.0 License. Portions adapted from third-party projects retain their original attribution; see Third-Party Notices.

Zetta-Embodiment (air-embodied-brain/Zetta-Embodiment)

Ищем в базе…

Что это?Zetta — harness замкнутого цикла для воплощённого ИИ, который в реальном времени развивает кодовые рантайм-критики и навыки восстановления, удерживая базовую политику робота замороженной; достигает 90,8% успеха на LIBERO-Pro и 93,6% на RoboCasa с ускорением инференса в 11,1 раза.
Это готовый контроллер робота или исследовательский фреймворк?Это исследовательский фреймворк/harness, который оборачивает существующие VLA-политики (Pi0.5, GR00T) и симуляторы (LIBERO, RoboCasa, RoboTwin, Genie Sim), организуя rollouts, диагностику и восстановление, а не самостоятельный контроллер.
Как это запустить?Установите Python 3.10–3.12, выполните scripts/deployment/installvlaenv.sh, чтобы создать отдельный venv для трека LIBERO-Pro+Pi0.5 или RoboCasa+GR00T, один раз на хост запустите Rollout Runtime, затем ведите кампанию через preparecampaign.py и следом runcampaign.py.
Нужны ли симулятор и конкретная конфигурация GPU?Да: каждому треку нужен свой стек симуляции (LIBERO-Pro, RoboCasa/robosuite/Isaac-GR00T, RoboTwin на SAPIEN или Isaac Sim 5.1 для Genie Sim) плюс GPU NVIDIA; есть готовые Docker-образы, чтобы пропустить ручную сборку venv.
Есть ли подводные камни при установке, о которых стоит знать?Docker-образ с CUDA 12.8 требует трёх переопределений переменных окружения для работы на старых драйверах 12.4, а прямая совместимость CUDA работает только на датацентровых GPU — на GeForce она падает с ошибкой 804.
Что такое Evolution Protocol?Кампании кластеризуют неудачные траектории, стадия Diagnose объясняет одну причинную неудачу, автор Candidate предлагает замороженный набор Critic-Recovery, власть Role1 принимает или отклоняет его, прежде чем исполнитель Recovery применит ограниченное исправление — сама базовая политика никогда не обновляется.
Какие симуляторы и окружения поддерживает Zetta?LIBERO и LIBERO-Pro, RoboCasa, RoboTwin 2.0, а также Genie Sim/Isaac Sim от NVIDIA; поддержка ManiSkill и BEHAVIOR планируется с примерно недельной периодичностью.
Почему базовая политика заморожена, а не дообучается?Заморозка базовой VLA-политики исключает риск переобучения и катастрофического забывания; улучшения вместо этого приходят от эволюционирующих онлайн кодовых критиков и навыков восстановления, наложенных поверх неё.
Какое отношение RLinf имеет к этому проекту?Zetta признаёт предыдущую работу RLinf и переиспользует его образ RLinf и настройку openpi для трека RoboTwin + Pi0.5, вместо того чтобы требовать собрать отдельный образ.
Какие есть похожие проекты?RoboICL, lerobot, Zero-WAM, flex-pi, Motus2, SuperMimic-Reproduced, dreamforge, RoboHarness
Размер
5.7 MB
Звёзды
1.3K
Обновлён
КоммитOct 27
Возраст
3 мес
Коммиты · 90 дней