[来源关键摘录] 仓库提供机器人视频与动作预测、仿真、部署和微调说明;主体代码采用 Apache 2.0。
[正文前段节选] Skip to content
Navigation Menu
Appearance settings
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
Repository navigation
praxis-1-oss
NotificationsYou must be signed in to change notification settings
Star123 (123)You must be signed in to star a repository
Video-action policy for robot arms
Apache-2.0 license
Custom properties
Report repository
BranchesTags
Open more actions menu
Latest commit
Folders and files
Last commit message
Last commit date
eval/robolab
packages/praxis-sim
.dockerignore
pyproject.toml
View all files
Repository files navigation
Praxis is a video-action policy for robot arms. There are two checkpoints of
one model variant: praxis-1-droid, the single-arm checkpoint, for a
single-arm robot with an exterior camera and a wrist camera (the DROID rig),
and praxis-1-yam, the bimanual checkpoint, for two YAM arms with a top
camera and two wrist cameras (see Bimanual rig).
For each policy call, the model predicts the next video chunk and the next
action chunk. The robot then executes the action chunk.
Both checkpoints also have NVFP4 versions, fine-tuned with quantization-aware
training of the routed experts:
runwayml/praxis-1-droid-nvfp4
and runwayml/praxis-1-yam-nvfp4
(see Get the weights). For the SO-100 / SO-101 arm there
are runwayml/praxis-1-so101
and its NVFP4 version
runwayml/praxis-1-so101-nvfp4
(see SO-101 rig).
This repository holds the inference code and the instructions to run it. The
code needs PyTorch and a few small packages. It does not need any other code
base. praxis/train/README.md tells how to fine-tune praxis-1-base for
your rig, with DROID as the worked example, and how to adapt praxis-1-droid
to a task with LoRA on one 80 GB GPU. praxis/sim/EVAL.md tells how to measure a checkpoint on the
simulated DROID tasks.
Clone the repository, install it, download the weights from Hugging Face
and run the single-arm checkpoint in the simulation. It needs Python 3.12,
one CUDA GPU with at least 80 GB of memory and the CUDA 13.0 driver. Log in
to Hugging Face once first (hf auth login); the hf command comes with
transformers, so log in after the install if you don't have it yet. The
install uses uv: pip install uv, or
curl -LsSf https://astral.sh/uv/install.sh | sh.
git clone https://github.com/runwayml/praxis-1-oss.git praxis-1 && cd praxis-1
uv venv --python 3.12 .venv && . .venv/bin/activate
uv pip install torch==2.13.0 torchvision==0.28.0 --index-url https://download.pytorch.org/whl/cu130
uv pip install packaging ninja wheel
CAUSAL_CONV1D_FORCE_BUILD=TRUE MAX_JOBS=16 \
uv pip install --no-build-isolation --no-cache causal-conv1d==1.6.1
uv pip install -e packages/praxis-sim -e ".[kernels]" "imageio>=2.30" "imageio-ffmpeg>=0.4" # praxis and praxis-sim from this checkout
uv pip install "flash-attn-4[cu13]==4.0.0b36"
uv pip install --no-deps nvidia-cudnn-cu13==9.24.0.43 # after every install that resolves torch
hf download Wan-AI/Wan2.2-TI2V-5B Wan2.2_VAE.pth --local-dir weights
hf download Qwen/Qwen3.5-2B --local-dir weights/Qwen3.5-2B
hf download runwayml/praxis-1-droid --local-dir checkpoints/praxis-1-droid
(cd checkpoints/praxis-1-droid && sha256sum -c --quiet SHA256SUMS && echo "checkpoint OK")
MUJOCO_GL=egl python scripts/run_sim.py --config configs/sim_droid.yaml \
--set task.name=block_in_bowl --set task.prompt=null --set viewer.host=0.0.0.0
The last command runs three episodes of block_in_bowl. A web page on port
8000 shows each episode live, and the videos go to outputs/sim_droid.
"Install", "Get the weights" and "Simulation" below give the details.
What the model does
One policy call takes these inputs:
A task string, for example Put the red block in the bowl..
The current frame of two cameras: the exterior camera and the wrist
The frames of up to three executed chunks (the context).
The current pose of the arm: position, orientation and gripper.
One policy call gives these outputs:
The robot commands at 15 Hz. The first call of a context window gives
21 rows (1.4 s). Each later call gives 24 rows (1.6 s). Each row holds a
target pose ([x, y, z, R_flat9], metres, row-major rotation) and a
target gripper value.
The predicted video of the same time span (6 latents, 21 or 24 frames).
Video backbone
praxis/backbone.py, praxis/layers.py
14 + 6 transformer blocks
Denoises the video latents. Gives hidden states ("taps") to the action expert.
Action expert
praxis/action_expert.py
16 blocks, dim 1024
Denoises the actions. Reads the taps through cross-attention.
Video autoencoder
praxis/vae.py, praxis/vae_decoder.py
Maps frames to latents and back. Frozen.
Text encoder
praxis/text_encoder.py
Maps the task string to tokens. Frozen.
praxis/sampler.py
Flow-matching Euler steps from noise to the sample.
Robot input and output
praxis/single_arm.py, praxis/bimanual.py, praxis/robot_io.py
Camera canvas, pose conversions, normalization, context window, command format, control modes.
praxis/model.py, praxis/pipeline.py
Connects all parts.
The backbone and the action expert share one checkpoint (about 54 GB in
bfloat16). The autoencoder and the text encoder use their public weights.
Inference optimizations
The baseline operations are packed SwiGLU, fused decoder modulation, fused VAE
encoder RMSNorm/SiLU and average pooling, and prompt embedding caching. The
sampler also skips unused unconditional action/video branches. The
optimizations below keep the checkpoint, sampler
recipe and shared server/simulation pipeline. Defaults refer to
PraxisPipeline sessions; lower-level APIs can have different defaults.
The tables separate default transformer operations,
camera, VAE and text operations,
and optional paths.
Thor and architecture selection summarizes
the hardware guards. An enabled flag still requires compatible inputs.
Default transformer and sampler optimizations
Optimization
Baseline behavior
Current default and implementation
Rotary embedding
Separate eager rotation operations
FUSED_ROPE=True: one Triton pass with eager FP32 rounding; layers.py, kernels/rope_triton.py.
Device tables and indices
Repeated table transfers and CPU-built expert indices
CACHE_DEVICE_TABLES=True: reuse rotary frequencies and position IDs on the device. Build action-expert tap indices on the device.
Encoder context reuse
Recompute the full window at every Euler step
session.ctx_cache=True: cache context K/V and taps within each call and guidance branch; model.py, backbone.py. Disabled for tracing and NVFP4.
Cached projection shapes
Full-window projections without query slicing
CTX_FULL_ROWS=True: preserve full attention-gate and FP32 router GEMM shapes when processing only current queries. KV_INPLACE=True updates current K/V rows without concatenation.
Rotary Q/K normalization
RoPE followed by separate RMSNorm calls
FUSED_ROPE_QK_NORM=None: fuse supported BF16/FP16 CUDA rotation and normalization, retaining intermediate rounding.
Transformer normalization
Separate residual addition, RMSNorm and layer scaling
FUSED_NORM=None: fuse supported BF16 CUDA calls. Reuse versioned affine weights and defer eligible residual additions into the next normalization.
Decoder modulation and normalization
Fused modulation followed by separate normalization
FUSED_MOD_NORM=True: combine deferred residual addition, modulation, RMSNorm and layer scaling when supported.
Attention output gate
Separate head merge and gate product
FUSED_GATE=True: merge heads and apply the gate in one kernel.
Router input conversion
Widen each FP32 router input chunk
ROUTER_F32=True: reuse FP32 rows written by fused normalization. Router GEMM shapes and chunk boundaries stay fixed.
Guided encoder execution
[...内容已截断,完整版请查看原文或 Wayback 快照]