Anvil-1: π₀.₅ in real time on an 8 GB Jetson

I ported Physical Intelligence’s π₀.₅ to Rust and custom INT8 CUDA kernels (Anvil-1). On a $249 Jetson Orin Nano it runs in 323.4 ms inside 4.8 GB, and across 1,936 paired rollouts it scores within 2 points of the full-precision model.

How it got built · Oct 24 – Nov 30, 2026

✕ 7 dead ends✓ 6 things that worked

Page from SSD81 s a chunkToken caching1–4% reusable4-bit weightsgripper flipsPer-token INT8outliers winCopy in a burst25% stalledOne kernel size99 KB capUnbounded poolNvMap faults1Stock wallOct 242ShortcutsOct 25–27stay 8-bit3HadamardNov 1rotate first4GEMM v4Nov 1213.59 ms599 KB capNov 15auto fallback6NvMap, RustNov 27–29bounded cache7AnvilBenchNov 29–3088 vs 89

1 of 7 · Oct 24

Stock π₀.₅ takes 81 seconds a chunk

Linux and the GPU share 7,607 MiB on the 8 GB Jetson. Stock π₀.₅ does not fit. Paging its weights off the SSD gets an answer, 81 seconds later.

81 sper chunk with weights paged from the SSD
Anvil-1 in under 5 minutesShare link

1Two models, one 8 GB board

Anvil-1 is my Rust and CUDA runtime for π₀.₅, built around the tightest board on my desk: a $249, 8 GB Jetson Orin Nano Super. Linux and the GPU share 7,607 MiB of it.1

  1. 17,607 MiB is what Linux reports on this 8 GB board. Jetson numbers here come from it, in its fastest power mode, MAXN_SUPER.

I wanted two models resident at once: π₀.₅, a 3.3-billion-parameter vision-language-action policy, and Gemma 4 E2B for language.2 And the arm policy had to produce each chunk of actions inside a 500 ms real-time window, so the next chunk is ready before the arm runs out of the last one.3

  1. 2π₀.₅ is Physical Intelligence’s open vision-language-action model: it reads camera frames and an instruction and outputs arm motions.
  2. 3The 500 ms window follows Physical Intelligence’s real-time action chunking work, arXiv 2506.07339.

Out of the box nothing met both rules. Five bf16 policies, VLA-JEPA, NVIDIA Cosmos 3 Edge, stock π₀ 3.3B, stock π₀.₅ 3.3B and LingBot-VLA v2 6B, ran out of memory on the board. Keeping stock π₀.₅ alive by paging its weights off the SSD took 81 seconds a chunk, in a run with three cameras and 10 denoising steps; matched on both, Anvil-1 takes 505.4 ms. SmolVLA, at 0.45B, fits, but needs 967.6 ms, and on 50 two-arm tasks it passed 61.0% of episodes against Anvil-1’s 78.0% (p = 0.0015).

  • Anvil-1, 2 cameras323.4 ms

    p99 327.8 ms over 100 chunks

  • Anvil-1, 3 cameras432.2 ms

    p99 447.9 ms

  • X-VLA, 0.9B493.1 ms

    bf16, 2 cameras

  • SmolVLA, 0.45B967.6 ms

    bf16, 2 cameras

  • Stock π₀.₅, paged from SSD81 s

    3 cameras · off the end of the scale

Fig. 1. The same 8 GB Jetson for every row. The tick is the 500 ms real-time window. Anvil-1 runs 5 denoising steps, with its vision encoder in TensorRT; X-VLA and SmolVLA run 10 steps.

2What broke on real silicon

Before writing kernels I tried the published shortcuts. Two of them did not hold up.

The first was token caching. VLA-Cache skips image patches that look like the previous frame.4 On a fixed camera that can save work: 78 to 83% of its patches stayed still between chunks. A wrist camera moves with the arm, and only 1 to 4% stayed still, so there was almost nothing to skip.

  1. 4VLA-Cache, arXiv 2502.02175. It reuses vision tokens whose patches barely changed since the last step.

The second was plain 4-bit weights. In the language model or the action expert they carried 7 to 14 times the action error of 8-bit, and on 12 test chunks two variants flipped the gripper on the very first action. Then 100 paired episodes with a 4-bit language model came out 89 to 91, too few to tell either way, so I stayed at 8 bits.

3TensorRT was the number to beat

TensorRT is NVIDIA’s own compiler for running models fast on its chips, so it set the bar. On Oct 25 I built it properly on the same board: 16-bit weights, one engine per layer, its best settings. A full three-camera chunk with 10 denoising steps took 542–567 ms. My runtime took 826 ms. TensorRT was about one and a half times faster.5

  1. 5TensorRT’s figure is GPU compute time from its own tool, without a few small steps between its engines. Mine are timed from the host.

It had limits here. Building the whole 18-layer language model as one engine ran the board out of memory at 7.1 GB. Handed 8-bit weights, every engine came out at 210 MB, the 16-bit size, at the same 21.0–21.9 ms a layer: it had folded the weights back to 16 bits. Split layer by layer it fit, with about 1 GB left, not enough for a second model.

So I borrowed the part it did best. Anvil-1 runs the vision encoder as a TensorRT engine inside my own runtime. Over 100 LIBERO episodes on the same seeds, that hybrid passed 91 to stock’s 85, with no sign of a loss.6

  1. 6McNemar p = 0.73 on the spatial tasks and 0.34 on the long ones: no significant difference.
  • TensorRT, 16-bit542–567 ms

    Oct 25 · bar drawn at the low end

  • Anvil-1 on Oct 25826 ms

    behind by about one and a half times

  • Anvil-1 today505.4 ms

    Nov 30

Fig. 2. Three cameras and 10 denoising steps on the 8 GB Jetson. The tick is the 500 ms real-time window. TensorRT’s time counts GPU work only, which favours it.

Everything after the vision encoder is mine. NVIDIA also ships its own TensorRT port of π₀.₅. On a desktop RTX 3060 on Oct 26 it was 1.70× faster than my runtime was then. On the Orin its engines would not build with TensorRT 10.3, so I have no board number for it.

4Spreading out the outliers

The 18-layer Gemma 2B backbone inside π₀.₅ has to run both its weights and its activations in INT8 to use the Jetson’s integer tensor cores. Doing that directly goes wrong. A few activation channels are far larger than the rest, so they stretch the INT8 step until everything else lands in a handful of values around zero.

SpinQuant and QuaRot fix this by rotating activations with a Hadamard matrix and folding the inverse into the weights ahead of time.7 Run as its own kernel, the rotation costs an extra trip through memory, which is the thing this board has least of.

  1. 7A Hadamard matrix only adds and subtracts, and multiplied by its transpose gives the identity. Rotate the inputs, counter-rotate the weights, and the answer is unchanged.
  • Action error, language model in INT80.0014

    mean over 6 frames against full precision, lower is better

Fig. 3. The drawing is an example block, scaled to its largest value the way the INT8 step is. Three big channels flatten everything else; the rotation shares them out. The measured drop, 5.7×, comes from two changes together, the rotation and one scale per 128 channels. Either alone gets only part of the way.

So I fused a 128-point Walsh-Hadamard transform into the tail of the normalisation and feed-forward kernels, while the values are still in registers. It takes seven butterfly stages: two inside each thread’s registers, then five across the 32 threads of a warp with __shfl_xor_sync. No extra pass over memory. Together with giving every 128 channels their own scale, this takes the action error caused by running the language model in INT8 from 0.0081 down to 0.0014.

5GEMM v4 and the 99 KB cliff

NVIDIA’s cuBLAS library cannot apply a separate scale to every 128 channels inside an INT8 matrix multiply, so I wrote my own. My third version asked for all its memory copies in one burst, stalled about a quarter of the time on a full load queue, and then waited on a slow integer-to-float conversion.

Version four spaces two or three copies beside each tensor-core step, and replaces the conversion with a constant, 0x4B400000, that turns the integer into a float with one cheap subtraction.8 On the board it beats cuBLAS INT8 and matches an integer reference exactly.

  1. 80x4B400000 is the float 12,582,912. Adding a small integer to its bit pattern moves the float by exactly that integer, so subtracting the constant recovers it.

Per layer, GEMM v4 (cuBLAS: 14.50 ms)

13.59 ms

GeForce fallback multiply (Orin: 111 KB)

74 KB

Moving to desktop cards broke it. Orin has room for my 111 KB multiply and my 161 KB attention kernel in fast on-chip memory. GeForce RTX 30, 40 and 50 series cards stop at 99 KB.9 The runtime now checks the limit at startup and switches to a 74 KB multiply with identical output and a 97 KB attention kernel that stays within one bf16 rounding step. On Apple Silicon it runs on the CPU through Accelerate, in 4.73 GB at 3.56 seconds a chunk.

  1. 9This is shared memory: a small scratchpad on each block of the GPU. A kernel that asks for more than the card allows refuses to launch.

680,662 allocator faults, and Rust on the GPU

A fast median means little if episode 400 freezes the arm mid-grasp. Across 600 LIBERO-family episodes on the board, a memory pool with no upper bound logged 80,662 NvMap error-12 faults.10

  1. 10NvMap is the Jetson’s kernel-level GPU memory manager. Error 12 means it could not find the memory it was asked for.

A bounded cache that drops the least recently used block, capped at 256 MiB on its own or 64 MiB beside a simulator, fixed the growth. Timed runs of the policy alone now log 0 of those faults, at 323.4 ms in the median and 327.8 ms at p99. With the simulator sharing the same 8 GB, faults are much rarer but not gone.

NvMap faults, timed policy-only runs

0

Scaled vector add in Rust (plain C++: 66.0 ms)

21.6 ms

I also compiled Rust with no standard library straight to GPU code for the Orin, using NVIDIA’s cuda-oxide backend, for the kernels that are limited by memory speed.11 In C++, leaving out one __restrict__ keyword makes the compiler assume two arrays might overlap: 66.0 ms. Rust’s borrow checker already guarantees they don’t, so the fast loads come for free: 21.6 ms. On the weight-unpacking kernel it lands at 1.113 ms against 1.102 ms from NVIDIA’s own C++ compiler.

  1. 11If two pointers might refer to the same memory, the GPU has to load carefully. Knowing they can’t lets it use faster read-only loads.

7Did it get dumber?

Speed is worthless if 8-bit arithmetic and half the denoising steps quietly cost skill. So I built AnvilBench: 2,000 episodes across seven simulated benchmarks, half open and half held out from tuning.

  • LIBERO95.8%

    tick = stock bf16, 96.5%

  • LIBERO-Plus85.7%

    tick = stock bf16, 86.7%

  • RoboTwin 2.074.0%

    tick = stock bf16, 68.5%

  • LIBERO-PRO54.3%

    tick = stock bf16, 54.0%

  • RoboCasa 36518.5%

    tick = stock bf16, 16.0%

  • VLABench17.2%

    tick = stock bf16, 22.9%

  • BEHAVIOR-1K0.0%

    tick = stock bf16, 0.0%

Fig. 4. Pass rate on each of the seven benchmarks, same seeds for both runtimes, 1,936 paired episodes. Anvil-1 runs 8-bit with 5 steps; stock runs bf16 with 10.

Across 1,936 episodes that finished under both runtimes, Anvil-1 passed 58.47% and stock bf16 passed 58.52%. Where they disagreed, Anvil-1 won 88 and stock won 89. An equivalence test puts the gap inside ±2 points (p = 0.0023).12

  1. 12Two one-sided tests. Instead of failing to find a difference, it rejects a difference bigger than 2 points in either direction.

One benchmark goes the other way. On VLABench, Anvil-1 trails by 5.73 points, 17.2% against 22.9% (p = 0.18), although partial progress on the held-out half is level, 36.7% against 36.1%.

8What I’d tell someone starting this

Don’t trust an average error on a robot policy. Plot the channels that flip a switch, the gripper first, on the first frame. Time the slow tail on the real memory allocator, not ten warm runs on an empty board. And if a fix can live inside a step you already pay for, put it there.

Next: AnvilBench (1,936 paired episodes) →