DuoRT
Fast serving engine for System 1 + System 2 robot policies
| Getting Started | Models | Architecture | Benchmarks | Examples |
DuoRT is a fast serving engine for dual-system robot policies, supporting mainstream VLAs (pi05, GR00T, SmolVLA) and custom System 1 + System 2 models.
On LIBERO-Dynamic (1x RTX 5090), DuoRT beats latency-retrained VLASH without retraining:
1 Robot (pi05_libero, Zero Retraining) |
Retrained | Success Rate | Mean Latency |
|---|---|---|---|
LeRobot PyTorch (Sync / Async) |
No | 43.1% / 48.4% | 147 ms |
VLASH |
Yes | 55.4% | 104 ms |
OpenPI JAX Async |
No | 57.8% | 60 ms |
| DuoRT | No | 60.9% | 39 ms |
On the SOTA pi05/mixed_ft3000 checkpoint, DuoRT matches native OpenPI JAX serving on a single robot (as both easily keep up with the benchmark's 20 Hz control rate)—yet once scaled to 8 concurrent robots on one RTX 5090, OpenPI JAX falls behind and collapses while DuoRT holds firm:
pi05/mixed_ft3000 serving method |
Success Rate | Mean Latency |
|---|---|---|
OpenPI JAX Async |
16.1% | 280 ms |
| DuoRT | 52.3% (3.25x) | 27 ms |
DuoRT is fast with:
- Lock-free paged KV and latent cache across Slow and Fast streams
- Paged Split-K cross-attention and 3D relative-time RoPE
- C++ deadline batching and latest-frame sensor coalescing
- Piecewise CUDA Graph slicing (
<= 2 ms),torch.compile, andFP8quantization - Real-Time Chunking (RTC) with frozen-prefix splicing and overrun blending
DuoRT is easy to use with:
- Native Hugging Face and OpenPI JAX/Orbax checkpoint loading
- Drop-in OpenPI-compatible WebSocket server (
duort serve) and GPU benchmark CLI (duort bench) - Standard PyTorch
nn.Moduleinterfaces (SlowBackboneandFastHead) for custom policies - Colocated, disaggregated Slow/Fast, and pipeline-parallel multi-GPU and edge-cloud placement
For system design and architecture details, see docs/architecture.md.
Getting Started
Install on Linux (Python >= 3.10, PyTorch >= 2.5, CUDA >= 12.0, NVIDIA SM80+):
git clone https://github.com/duort-project/duort.git && cd duort
pip install -e ".[all]" --no-build-isolation # or: docker build -t duort .
Launch an OpenPI-compatible multi-stream policy server or run a standalone GPU benchmark:
duort serve --model lerobot/smolvla_base --embodiment-tag so100 --streams 8 --port 8000
duort bench --model lerobot/smolvla_base --streams 1,4,8
Or embed Engine directly in a Python real-time control loop:
import time
import torch
from duort import Engine
engine = Engine("lerobot/smolvla_base")
engine.set_prompt("pick up the cup")
cams = torch.randint(0, 256, engine.slow_obs_shape, dtype=torch.uint8) # simulated RGB cameras
engine.push_slow(cams)
engine.wait_ready()
for step in range(500): # 1 s real-time loop at 500 Hz (2 ms/step)
if step % 250 == 0: # 2 Hz camera frame -> System 2 (Slow)
engine.push_slow(cams)
if step % 25 == 0: # 20 Hz chunk refresh -> System 1 (Fast)
engine.push_fast()
actions, *_ = engine.sample_actions(cpu=True)
time.sleep(0.002)
print(actions.shape) # torch.Size([1, 6])
- Custom
SlowBackbone+FastHeadpolicy: examples/custom_model.py - Modular
(Slow × Fast)pairing &@engine.stage: examples/quickstart.py - Multi-GPU disaggregation (
slow_devices=[0], fast_devices=[1, 2, 3]) & edge-cloud serving: examples/multi_gpu_serving.py
Supported Models
Measured on a single 1x RTX 4090 (24 GB) under 2 Hz camera updates, 20 Hz chunk requests (FP8 Fast heads + micro-sliced BF16 Slow VLM), and 500 Hz continuous action polling against a multi-stream BF16 PyTorch SDPA baseline:
Model (System 2 + System 1) |
1-Robot Chunk P50(DuoRT vs. PyTorch) |
Zero-Underrun Robots / GPU ( P99: DuoRT vs. PyTorch) |
Peak VRAM |
|---|---|---|---|
lerobot/pi05_base (+ fine-tuned)PaliGemma-2B + Gemma Expert (10-step Flow) |
22.5 ms vs. 147.0 ms (6.5x) | 2 (44.3 ms vs. 181.6 ms) | 5.55 GB |
nvidia/GR00T-N1.7-3B (+ fine-tuned)Qwen3-VL-2B + AlternateVL-DiT (32L, 4-step) |
12.8 ms vs. 31.6 ms (2.5x) | 8 (33.9 ms vs. 75.8 ms) | 4.84 GB |
nvidia/GR00T-N1.5-3BEagle2-VLM + Cross-Attn DiT (16L, 4-step) |
8.8 ms vs. 24.8 ms (2.8x) | 20 (31.5 ms vs. 100.9 ms) | 3.89 GB |
lerobot/smolvla_base (+ fine-tuned)SmolVLM2 + SmolLM2 Expert (10-step Flow) |
8.7 ms vs. 98.6 ms (11.3x) | 12 (28.7 ms vs. 177.9 ms) | 0.98 GB |
To serve a custom System 1 + System 2 policy, subclass SlowBackbone and FastHead connected by a TemporalChannel (mode="hidden" or mode="kv"), register a Hugging Face loader via @ModelRegistry.register, or wire custom stages with @engine.stage—see examples/custom_model.py.
Benchmarks
Beyond single-GPU workstation serving, DuoRT disaggregates Slow VLMs and Fast action heads (1S : 1F, 1S : 3F) and pipelines large Slow backbones across GPUs—cutting 3B+ VLA cluster VRAM by 45–59% while scaling fleet capacity with zero control underruns:
| Model | Multi-GPU Placement | Concurrent Robots | Tail Latency (P99: DuoRT vs. PyTorch) |
|---|---|---|---|
pi05 (3.3B) |
4x H100 SXM (Colocated) |
4 | 26.8 ms vs. 2.94 s (109.7x lower) |
GR00T-N1.5 (3B) |
4x H100 SXM (1S : 3F) |
48 | 13.3 ms vs. 447.9 ms (33.6x lower) |
SmolVLA (450M) |
2x RTX PRO 6000 (1S : 1F) |
16 | 24.4 ms vs. 294.5 ms (12.1x lower) |
Full LIBERO-Dynamic and LIBERO results, RTX 4090 / RTX 5090 per-model tables, Slow/Fast disaggregation VRAM matrices, and reproduction commands → benchmarks/README.md.
License
Apache-2.0 — see LICENSE.
Metadata
Release files for duort 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| duort-0.1.0.tar.gz | 163.2 kB | Without provenance | Details for duort-0.1.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| duort-0.1.0-cp312-cp312-manylinux_2_35_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.35+ x86-64 | Details for duort-0.1.0-cp312-cp312-manylinux_2_35_x86_64.whl |
| duort-0.1.0-cp311-cp311-manylinux_2_35_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.35+ x86-64 | Details for duort-0.1.0-cp311-cp311-manylinux_2_35_x86_64.whl |
| duort-0.1.0-cp310-cp310-manylinux_2_35_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.35+ x86-64 | Details for duort-0.1.0-cp310-cp310-manylinux_2_35_x86_64.whl |
Total release size: 5.0 MB
Release files / duort-0.1.0.tar.gz
| Download URL | duort-0.1.0.tar.gz |
|---|---|
| Size | 163.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1286720dd43bdd294cfef72da2f9a345911521627392c66b8430c54d6eb1a0af
|
|
BLAKE2b-256 checksum How to use checksums |
ac69c435c93d4689d768f0ddd4013a357e066836acbb14cc682f4cd84a6e9dd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / duort-0.1.0-cp312-cp312-manylinux_2_35_x86_64.whl
| Download URL | duort-0.1.0-cp312-cp312-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.12 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
65e5f3dd9cf6b42e08836c17a3f4752cd1bd6ab241c6cf28386aef4af6465f41
|
|
BLAKE2b-256 checksum How to use checksums |
ef826468c12384567ad589d08821b68fa71542b8e5e59ffa93c807abcf2ae050
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / duort-0.1.0-cp311-cp311-manylinux_2_35_x86_64.whl
| Download URL | duort-0.1.0-cp311-cp311-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.11 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
144f1d70712660b644fa47ad8f51fd4e5bc5989fc4114582188f7569d6089d64
|
|
BLAKE2b-256 checksum How to use checksums |
dacfdf01eb20c454dcb20a41100cad5d09b45c127a011593d68d397472b9e43f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / duort-0.1.0-cp310-cp310-manylinux_2_35_x86_64.whl
| Download URL | duort-0.1.0-cp310-cp310-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
73375504c6604a7c981e1b72497ceefabbc17914f8425973ff1615192f3ee333
|
|
BLAKE2b-256 checksum How to use checksums |
eac67337ce0136a5ef391ba54b0766b952f6907d907cec96ea5d6b012934b5ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for duort 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.