Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

Aryan95614/anvil-rt

Machine Learning

Rust + CUDA inference runtime that runs a 3.3B VLA policy in under 4.8GB on 8GB Jetson, RTX, and Mac devices.

151
4
Rust
MIT
4 days old
+43 stars in 11h

What it is

Anvil-1 is a from-scratch Rust + CUDA inference runtime for Physical Intelligence's 3.3B-parameter π0.5 Vision-Language-Action policy. It packages a Rust implementation (candle) with custom CUDA kernels for the VLM prefix, a BF16 action expert with CUDA-graphed flow denoising, a Python ctypes SDK with a LeRobot policy adapter, a zero-dependency C/C++ ABI, and the AnvilBench regression suite. The headline result: 323.4 ms p50 on a physical 8 GB Jetson Orin Nano Super while keeping peak unified RAM around 4.8 GB, where stock PyTorch bf16 models of this class swap and stall.

It targets robotics engineers deploying VLA policies on constrained edge hardware, plus researchers who want a measurable, quantized baseline for LIBERO-family and related benchmark comparisons.

Quickstart

The zero-Python CLI is the fastest end-to-end check. Requirements: a Rust toolchain, an NVIDIA GPU with a supported compute capability (the build script auto-detects it), and network access to Hugging Face. On an 8 GB Jetson Orin, run the allocator setup script once before building.

cargo build --release --manifest-path brain/rt/Cargo.toml --features cuda
./brain/rt/target/release/brain-rt --fast doctor --device cuda

hf download Aryan95614/pi05-libero-anvil-w8t --local-dir ./pi05-libero-anvil-w8t
./brain/rt/target/release/brain-rt --fast run \
  --weights ./pi05-libero-anvil-w8t \
  --obs assets/sample_obs.safetensors \
  --out /tmp/actions.json \
  --device cuda --dtype bf16 --repeat 20

The second command writes a 50 × 32 action chunk to /tmp/actions.json using the bundled 597 KB deterministic observation fixture, so no PyTorch or lerobot install is needed. For Apple Silicon and CPU-only hosts, drop --features cuda and use --device cpu --dtype f32. The Python SDK path is pip install "git+https://github.com/Aryan95614/anvil-rt.git#subdirectory=sdk/python", then AnvilEngine plus AnvilPi05Policy for a LeRobot-compatible select_action call. Cloud runners (NVIDIA Brev and Colab) and a Modal benchmark for Ada L4 vs Ampere A100 are also provided.

Constraints and caveats

  • The runtime only runs pre-quantized W8T weights; the README points to the pre-rotated checkpoint on Hugging Face, so you cannot simply point it at an arbitrary π0.5 checkpoint without the preparation path.
  • GPU paths require specific compute capabilities (sm_80+ PTX for the unified wheels, with fallbacks for T4/V100) and are tier-routed by shared-memory size; behavior and performance differ between the 99 KB and 164–228 KB tiers.
  • Jetson Orin users must run brain/rt/jetson-sync-alloc.sh before building to address the NvMap error 12 allocator issue.
  • Accuracy parity claims come from 1,936 paired simulation rollouts, which the README itself says cannot prove real-world robot behavior.
  • The repository was extracted from a larger private codebase and public history is shorter than the underlying development; fork counts and external independent replication are limited.

HotRepo's take

Anvil-1 appeared on HotRepo's new-project board on 2026-12-04, gaining 30 stars in about 1.5 hours with 4 forks. That is early traction on a topic where credible claims are usually tied to a specific board, frame count, and benchmark split — and the project does report those details, including committed raw JSON artifacts and a pre-registered hashed test split. The interesting signal is not the star count but the specificity of the engineering report: a real measured failure (NvMap error 12) with a committed fix and post-fix verification. Readers with the matching hardware can check the claims directly; those without it should treat the headline 323 ms number as Jetson Orin Nano Super-specific until reproduced.

Project source and documentation

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.