A robot arm needs a new command every 20 ms, but a VLA takes 44 to 94 ms to think. Overlap the next chunk’s thinking with the current chunk’s motion, and the arm keeps moving.
Learn how a vision-language-action model (VLA: a network that turns camera images and a spoken instruction into robot motion) runs on the computer inside a robot, and where every millisecond goes.
Pick Wait, then Overlap, then RTC. Raise the chunk size until the red gaps vanish. Then we build, piece by piece, the arithmetic underneath: bandwidth, tokens, cache, precision and the loop.
You need a rough idea of what a neural network does and what a millisecond is. We build the rest from zero.
Built from primary sources: the real-time chunking paper, VLA-Perf, the pi0 paper, the GR00T N1.7 model card and NVIDIA’s Jetson Thor pages. Each latency is one measured example with its setup stated. The timeline below is a model, not a recording.
The three latencies are measured examples: GR00T N1.7 on an H100 with TensorRT, 4 denoising steps, 1 camera, 27.9 ms (model card); pi0.5 on Jetson AGX Thor with a hand-written engine, 44 ms (NVIDIA developer forum, project page: 2 camera views, FP8); GR00T N1.7 on AGX Thor with TensorRT, 93.8 ms (model card). The slowest think, and the 15% of cycles that hit it, are illustrative. RTC costs 28% more per inference here: the paper measured 76 ms without it and 97 ms with it for pi0.5.
Chapter 0
See why a model that is fast on average can still freeze an arm, and how overlapping the thinking with the moving fixes it
An arm reaches for a cup. It moves, stops for a blink, moves again, stops again. The camera works. The model picks the right cup. Nothing is broken. The arm just runs out of commands, waits for the next batch, and the cup wobbles.
This lesson explains that stall, and everything else that decides whether a big model can steer a real robot. First we need five plain words.
A VLA (vision-language-action model) is one neural network. It reads camera images, the robot’s joint angles and a line of text such as “put the cup on the shelf”. It writes what the robot should do next.
What it writes is an action: one list of numbers, one target angle for every joint, for the next tick of the controller. A two-arm robot with six joints and a gripper on each arm needs 14 numbers per action (the setup VLA-Perf uses for pi0).
The control rate f is how many actions the arm needs each second. At 50 Hz the arm needs a new action every 20 ms. A model that thinks for 44 ms cannot give one action per tick. So the model writes many actions at once.
That batch is an action chunk: K actions, shape [K, 14]. The pi0 paper uses K = 50 and runs the first 25 at 50 Hz before it asks again (every 0.5 s). A chunk of K actions at rate f covers K / f seconds of motion. That one division is the key to this chapter.
The latency L is the time from taking a camera picture to having the new chunk ready. It includes the model and everything around it. Chapter 7 adds up the rest.
The simplest robot loop is: look, think, move the whole chunk, then look again. Call it wait mode. While the model thinks, no new action arrives, so the arm stands still.
Work it through with K = 10 and f = 50 Hz, and a model that takes 44 ms (a tuned pi0.5 on Jetson Thor).
Now the fix. Overlap mode starts thinking about the next chunk while the arm still plays the current one. The arm has 200 ms of actions stored, and the model needs only 44 ms. The next chunk lands with 156 ms to spare, so the arm never waits. Idle share: 0%.
Averages hide the problem. Say one think in seven takes 250 ms. It may be a busy Linux scheduler, a network hiccup, or a power-mode change. A 250 ms think is longer than the 200 ms of coverage, so the arm runs dry for 250 − 200 = 50 ms.
The cure is more coverage, not a faster model. You need K ≥ 250 ms × 50 Hz = 12.5, so K = 13 actions (260 ms). A model that is twice as fast cuts the 44 ms to 22 ms but leaves a stall that comes from somewhere else exactly as long as before. Play with this in the first device below.
The yellow line is how long one chunk covers. The warm bar is a typical think. The second bar is a slow one, with 200 ms of outside delay added. Move K and the control rate, then try a faster model.
Illustrative: a typical think of 44 ms (the tuned pi0.5 engine on Jetson Thor, NVIDIA developer forum), and a slow think that adds 200 ms of outside delay. A faster model divides the 44 ms only. The 200 ms does not shrink, because it does not come from the model.
The latencies in the hero are real, but they are not interchangeable. GR00T N1.7 (a 3 B-parameter model) took 27.9 ms on an H100 with TensorRT, using 4 denoising steps and 1 camera (35.9 Hz). The same model took 93.8 ms (10.7 Hz) on a Jetson AGX Thor with TensorRT. One forum post reports pi0.5 at 44 ms (23 Hz) on Thor with a hand-written engine, and its project page lists the setup as 2 camera views and FP8 (steps not stated).
Read each number with its setup. The rest of the lesson explains why the same chip can give 44 or 94 ms.
Chapter 1
Work out the least time one pass of a model can take, from two numbers on the chip and one number in the model
You buy a robot computer with 128 GB of memory. Your model has 3 billion numbers, which is 3 GB if each takes one byte. It fits more than forty times over. You expect it to fly. It does not, and the reason is not the size of the memory but the width of the door into it.
Capacity is how much the memory holds, like the floor area of a warehouse. Bandwidth is how many bytes per second can move from memory to the compute units, like the width of the loading door. A Jetson AGX Thor has 128 GB of LPDDR5X memory and 273 GB/s of bandwidth (NVIDIA Jetson Thor specification). Reading all of its memory once would take 128 / 273 = 0.47 s.
A model’s numbers are its parameters (the weights it learned). Their size in bytes is the parameter count times the bytes per parameter: 2 for BF16, 1 for FP8, 0.5 for FP4 (4 bits). A 3 B model is 6 GB in BF16, 3 GB in FP8 and 1.5 GB in FP4.
A language model writes text one token (a small piece of text, or of an action) at a time. This is decode. To produce one token, the network multiplies its input by every weight, layer after layer. So each decode step must read all the weights from memory. The next token depends on the last, so the steps cannot run side by side.
Prefill is the other phase. The model reads the whole prompt (the instruction, the camera tokens) in one pass. It still reads each weight once, but it uses that weight for hundreds of tokens before it moves on. Chapter 2 prices prefill.
That gives a floor that no clever code can beat: time per step ≥ bytes of weights ÷ bandwidth. The worked numbers below use the 3 B model.
The top bar shows how much of the memory the weights fill. The bottom bar shows the least time for one step. The yellow line is one 50 Hz tick (20 ms). Change the size, the precision and the chip.
Bandwidths: Jetson Thor 273 GB/s (NVIDIA), RTX 4090 1,008 GB/s and H100 SXM 3,350 GB/s (vendor specifications). The floor assumes every weight is read once and the chip reaches its peak bandwidth. Real engines get 70 to 80% of a roofline at best: VLA-Perf measured 73.3 to 82.6% for pi0 on an RTX 4090.
Each weight read from memory does only two operations in decode: one multiply and one add. That is 2 operations per byte in FP8. The ratio of operations to bytes is the arithmetic intensity. A chip also has a ratio of its own, its peak operations per second divided by its bandwidth. Thor’s dense FP8 peak is 517 TFLOPS, so 517 × 1012 ÷ 273 × 109 = 1,894 operations per byte.
Decode asks for 2 and the chip can do 1,894. It uses 2 ÷ 1,894 = 0.1% of its arithmetic. Such a step is bandwidth-bound: memory sets the time, and compute waits. The sibling lesson on edge roofline and thermals draws this line as a picture. The LLM inference lesson covers the serving side.
Many VLAs do not decode word by word. pi0 uses a small action expert (about 0.3 B parameters) that turns noise into an action chunk in a few denoising steps. It reads its own weights once per step. At BF16 that is 0.6 GB ÷ 273 GB/s = 2.2 ms per step, so 10 steps cost 22 ms before anything else. VLA-Perf finds the same thing: the expert handles only about 50 tokens, with an arithmetic intensity of 54 operations per byte, far under any ridge, so it is memory-bound.
Some VLAs, such as pi0-FAST, do write action tokens one at a time. The forum post that reports 44 ms for pi0.5 on Thor also reports 8.1 ms per token for pi0-FAST (123 tokens/s). A chunk that needs 30 tokens (an illustrative count) would then take 30 × 8.1 = 243 ms. That is longer than the 200 ms coverage in Chapter 0.
The symptom: a 13 B model loads without error and the arm stutters. The measurement: a profiler shows the compute units almost idle and the memory system near its peak. The floor says why: 13 B in BF16 is 26 GB, which fits in 128 GB, but 26 ÷ 273 = 95 ms per pass, almost five ticks at 50 Hz.
The fixes, in order of effect: fewer bytes (a smaller number format, Chapter 6), fewer passes (fewer denoising steps, longer chunks), or a chip with a wider door. Batching many requests is how data centres hide the cost, but one robot sends one request at a time.
On real hardware. On a Jetson AGX Thor developer kit, run a fixed-size matrix-vector multiply in a loop and read the memory throughput from the profiler. It should approach 273 GB/s, and the time should scale with the bytes, not the FLOPs.
Chapter 2
Count the tokens a camera adds, turn them into operations, and see when thinking about the picture stops waiting on memory
The arm works with one camera, and the loop runs at a steady rate. You mount a second camera on the wrist, and the loop slows down. Nothing in the model changed. The model simply has more to read before it can act.
A transformer cannot read pixels. It reads tokens: a row of vectors. For an image, the front end cuts the picture into small squares called patches, and turns each patch into one token. A 224 × 224 image cut into 14 × 14-pixel patches gives 16 × 16 = 256 tokens. That is the setup VLA-Perf uses for pi0.
Now follow the shapes. Three cameras give images of shape [3, 3, 224, 224]. The patch step turns them into [3, 256, D], where D is the width of a token vector. Add 32 tokens for the text instruction and you get 3 × 256 + 32 = 800 tokens in one sequence, the sequence VLA-Perf analyses.
The cost grows with tokens, not pixels. A bigger image with bigger patches can give the same token count. A 336-pixel image with the same 14-pixel patches gives 24 × 24 = 576 tokens, more than twice as many.
Every token passes through every weight of the network once. Each weight does one multiply and one add for that token. So a network with N parameters does about 2 × N operations per token. For T tokens in one pass, the cost is 2 × N × T operations. This is prefill: all tokens are processed together, so each weight is read once and used T times.
Take the pi0-style split from VLA-Perf: a vision encoder with 0.4 B parameters and a language backbone with 2.0 B. Three cameras, BF16, on a Thor with a dense BF16 peak of 258.5 TFLOPS (half of the 517 TFLOPS sparse FP16 figure).
VLA-Perf’s own model gives 52.57 ms (19.0 Hz) for pi0 on Thor. Our sum is lower because it leaves out attention over the long sequence, activations and the time to launch work. It is a floor, and a useful one.
Each row has two bars: compute time (warm) and the time to read the weights (purple). The longer one sets the time for that part. Add cameras and watch the backbone cross over from memory-bound to compute-bound.
A back-of-envelope in the style of VLA-Perf, not their model. Parts: SigLIP 0.4 B, Gemma backbone 2.0 B, action expert 0.3 B with 50 tokens and 10 steps (VLA-Perf, pi0). Peaks: Thor dense 258.5 TFLOPS BF16 and 517 TFLOPS FP8, 273 GB/s. It ignores attention, activations and launch time, and assumes 100% of peak, so real engines are slower.
A part is compute-bound when its operations take longer than its weight traffic. Set 2 × N × T ÷ peak equal to N × bytes ÷ bandwidth. N cancels, and T = peak × bytes ÷ (2 × bandwidth). For BF16 on Thor: 258.5 × 1012 × 2 ÷ (2 × 273 × 109) = about 947 tokens. FP8 gives the same 947, because the peak doubles and the bytes halve.
The 800-token pi0 sequence sits just below the line. One more 256-token camera pushes the backbone over it. From there each extra camera adds real compute: 2 × 2.0 × 109 × 256 ÷ 258.5 × 1012 = 4.0 ms in the backbone plus 0.8 ms in the vision encoder, about 4.8 ms per camera at perfect efficiency.
The symptom is a loop that slows down after a camera is added. The measurement is the token count of the prefill. The fix is a budget: decide how many tokens each camera may use, then pick resolution, patch size and camera count together. Fewer tokens per image, a smaller image, or dropping a view that adds little all help.
Read published numbers with this in mind. The GR00T N1.7 benchmark is one camera and four denoising steps. On a setup with three cameras and ten steps, the same model costs more. VLA-Perf measured that going from 10 to 50 denoising steps raises the action expert’s time five times and the whole pass 2.15 times (on a B100).
For the full model, see the pi0 lesson. Chapter 5 shows how to avoid doing the prefill more than once.
On real hardware. On a Jetson AGX Thor, log the number of tokens entering the backbone and the engine time for 1, 2 and 3 cameras. Plot time against tokens. The line should bend near 950 tokens in BF16.
Chapter 3
Split a chunk into frozen, blended and free actions, so a plan made from an old picture still joins the motion in progress
You read a recipe aloud to a friend who is cooking. You always read five steps ahead. While your friend does steps one to five, you read steps six to ten. But you chose steps six to ten when the pan was in a different place. If your friend has moved it since, step six may no longer fit step five.
That is the problem of overlapping a robot’s thinking with its moving. Chapter 0 showed that overlap removes the stall. This chapter shows how to remove the jump.
A policy that writes one action per tick would need a full model pass every 20 ms. Writing a chunk of H actions in one pass spreads that cost over many ticks. It also keeps the motion smooth, because the actions in one chunk were planned together. The pi0 paper uses H = 50 at 50 Hz and plays the first 25 before it asks again.
Three terms give the whole picture. The control tick is Δt = 20 ms. The inference delay d is how many ticks pass while the model works: d = ⌊δ / Δt⌋, where δ is the time to make a chunk. The execution horizon s is how many actions of a chunk the arm plays before the next chunk takes over.
In the synchronous loop the arm plays s actions, stops, thinks for δ, then plays again. In the naive asynchronous loop the model starts thinking early. The new chunk arrives while the arm is still moving, and the arm switches to it. The abstract of the RTC paper names the result: the switch can cause pauses or jerky motion at chunk boundaries.
Real-time chunking (RTC; Black, Galliker and Levine, arXiv 2506.07339, NeurIPS 2025) keeps the early start and fixes the switch. The paper’s rule: if the arm plays s actions per chunk, start the next inference after s − d actions. The new chunk then arrives exactly when the old one ends its s actions. And during those d ticks of thinking, the arm will play d actions from the old chunk no matter what the new chunk says. So the new chunk is told to start with exactly those d actions.
The policies in this lesson are flow policies: they start from random noise shaped like a chunk, and clean it up over a few denoising steps. That allows inpainting, the same trick that fills a hole in a photo. You fix part of the output and let the model fill the rest so the whole thing agrees. RTC fixes the first d actions to the old plan and adds a guidance term at each denoising step that pulls the generated chunk toward the old one. A weight Wi says how hard to pull on action i:
H = 50, d = 5, s = 25: W5 = 0.88, W10 = 0.43, W15 = 0.17, W20 = 0.04, W24 = 0.001
So a chunk has three zones. The first d actions are frozen (copied from the old plan). The next H − s − d are blended (a smooth fade from copying to freedom). The last s are free. The decay is exponential, so the pull releases quickly once it passes the frozen part.
Each bar is one of the 50 actions; its height is the weight Wi. Green is frozen, warm is blended, and the flat tail is free. Slide the think time and the execution horizon.
The weights follow Eq. 5 of the RTC paper exactly, with H = 50 and a 20 ms tick (the paper’s real-robot setup). The paper reports an inference delay of about 6 at the start, and about 11 and 16 with 100 ms and 200 ms of injected delay. s is held inside d ≤ s ≤ H − d.
A later paper from the same lab (arXiv 2512.05964, December 2025) moves the freeze into training. It simulates the delay while training, so the model learns to continue from a prefix of actions. At run time there is no extra guidance work. On real robots with pi0.6 it kept task performance and speed equal to RTC at lower compute. The cost: the delay is baked in at training time, so the model must be trained with it. The RTC lesson and the Helix lesson follow these ideas further.
One honest limit comes from VLA-Perf. Asynchronous inference raises throughput, but it does not reduce end-to-end latency. The arm moves smoothly, yet each action still comes from a picture that is d ticks old. Chapter 7 puts that age on the budget.
The failure mode, in order: the symptom is gaps and jerks in the arm. The measurement is the histogram of think times against the chunk’s coverage, as in Chapter 0, plus the logged d for each chunk. The fix is RTC, or training-time conditioning, or more coverage.
On real hardware. On a robot arm with a 50 Hz controller, log δ and d for every chunk for ten minutes. Plot the histogram. If any chunk has d larger than H − d, the controller will starve.
Chapter 4
Assign each stage of the loop to the engine that fits it, and price the hand-over every time a tensor changes engines
A busy kitchen has stations: a grill, an oven, a prep table. A good cook does not use the grill for everything. A robot computer is the same. It is one chip package with several kinds of compute engines, and a smart plan gives each stage of the loop to the right one.
The CPU runs general code: reading sensors, safety checks, the control loop. It is flexible and slow at large matrix maths. The GPU runs thousands of small multiply-adds at once and is the usual home of a transformer. An NPU (neural processing unit) is a fixed-function block for neural nets. It uses little power but supports a limited list of operations. A DSP (digital signal processor) is built for streams of numbers such as audio and image filters.
Real chips differ. Jetson Thor carries a 2,560-core Blackwell GPU and, according to an NVIDIA staff reply on the developer forum, no deep learning accelerator (DLA); that work moved to the GPU because transformers run well there. Jetson AGX Orin does carry DLAs beside its GPU (two NVDLA cores, per the Orin comparison tables). Sources differ on the vision accelerator (PVA) details, so check the datasheet for your exact module.
Four questions decide it. Can the engine run every operation in the stage? How long does it take there? How much power does it use? Does the stage fit the engine’s memory? The stages of a VLA loop have different answers. Resizing and normalising a camera frame is simple and may suit a vision engine or the CPU. The backbone is big and full of attention, so it wants the GPU. The final clamp that keeps joint targets inside safe limits is tiny and belongs on the CPU, next to the safety code.
The price of a split is the hand-over. When stage A runs on one engine and stage B on another, the tensor between them must be made ready for B. The data may already sit in the same memory. On Thor, the CPU and GPU share one pool of LPDDR5X, so there is no long copy. But the producer must finish, caches must be flushed, the layout or number format may change, and the second engine must be started.
Look at the size of the data. Three camera frames at 224 × 224 × 3 bytes are 3 × 150,528 = 0.45 MB. At 273 GB/s that moves in 0.45 × 106 ÷ 273 × 109 = 1.7 µs. Bandwidth is not the cost. The cost is the wait, the sync and the conversion. We model it as 2 ms per hand-over, an illustrative figure. Measure yours.
Pick an engine for each stage. The bar shows the time of each stage and each hand-over. All numbers are illustrative; try moving the vision encoder to the NPU.
Illustrative numbers, not a benchmark: stage times per engine, engine power (GPU 30 W, NPU 5 W, CPU 8 W while active) and 2 ms per hand-over are made up to show the shape of the trade. The GPU column is close to the 40 ms floor of Chapter 2. Time and energy are computed from the table in the page source.
The failure that bites most is the fallback cliff. A compiler gives a stage to the NPU, finds one operation the NPU cannot run, and sends just that operation back to the CPU. Now the tensor crosses a boundary twice in the middle of a layer. The export, partition and fallback lesson shows this in detail. The symptom is a model that is far slower than the engine’s peak suggests. The measurement is a per-layer timeline that shows engine switches. The fix is to cut the graph at the narrowest tensor, or to rewrite the operation.
Plan the partition by answering two things: what runs where, and who owns the deadline. The control loop and safety clamp stay on the CPU side, in a real-time setting (see real-time Linux). The model stages go where they are fastest at the quality you proved in the parity lesson.
On real hardware. On a Jetson AGX Orin, build the same model with and without DLA offload in TensorRT, with GPU fallback allowed. Compare the per-layer timeline and count the engine switches. Then measure board power in both runs.
Chapter 5
Reuse the work the model already did, and use three tools from LLM serving where they fit a robot
The camera frame arrives. The model reads it and the instruction, and spends 32 ms doing so. Then it starts to make the action chunk, ten denoising steps. Each of those steps needs to know what the model read. Does the model read it again ten times?
It should not. This chapter is about the one trick that stops that, and three other tools that LLM serving engines use, with an honest note on when each helps a single robot.
In attention, every token looks back at the tokens before it. To do that it needs two vectors from each earlier token in each layer: a key (a label to match against) and a value (the content to copy). Together they form the KV cache. If the earlier tokens do not change, their keys and values do not change either. So compute them once and keep them.
The size of the cache for one token is 2 (key and value) × layers × KV heads × head size × bytes. For an illustrative model with 18 layers, 1 KV head of size 256, in BF16: 2 × 18 × 1 × 256 × 2 = 18,432 bytes. An 800-token prompt then holds 14.7 MB. That is small next to the weights, so keeping it costs little memory.
In a flow-based VLA the action expert attends to the prefix (the images and text) at every denoising step. The prefix does not change within one control cycle. So the observation pass runs once, and the ten steps reuse its keys and values. The pi0 paper’s timing on an RTX 4090 with 3 cameras shows the effect.
Each block is a piece of one control cycle. Purple is the prefix pass that builds the cache, warm is one denoising step. Switch between rebuilding and reusing, and change the number of steps.
Times are from the pi0 paper (RTX 4090, 3 camera images): 14 ms image encoders, 32 ms observation forward pass, 27 ms for 10 action steps, which is 2.7 ms each. The 4090 is not a robot board; the shape of the saving carries over, the milliseconds do not. The rebuild bars are what you would pay without the cache.
A new camera frame means new image tokens. If the model lets prefix tokens see each other in both directions, a change in any image changes the keys and values of every prefix token. Then the whole prefix must be rebuilt every frame. If the backbone is strictly causal, tokens only see earlier tokens, and a text instruction placed before the images keeps its cache from frame to frame. For 32 text tokens out of 800 that saves 4% of the prefix, so check whether it is worth the extra care.
FlashAttention (Dao et al., arXiv 2205.14135) computes attention in small tiles that stay in fast on-chip memory. It never writes the full token-by-token score table to main memory. With 800 tokens, one head in one layer would otherwise write 800 × 800 × 2 bytes = 1.28 MB. Attention is memory-bound, so skipping that traffic is a direct gain. It helps most with long sequences, such as many cameras or a long video history.
PagedAttention (Kwon et al., arXiv 2309.06180, the base of vLLM) stores the KV cache in fixed-size blocks, like pages in an operating system, so there is no wasted space between requests. The authors report 2 to 4 times higher throughput than earlier serving systems. For one robot with a fixed 800-token sequence, a pre-allocated buffer already does the job. Paging pays off when one edge box serves many robots at different lengths.
Speculative decoding (Leviathan et al., arXiv 2211.17192) helps VLAs that write action tokens one by one. A small draft model guesses γ tokens. The big model checks all of them in one pass, which costs about the same as one step because that step is bandwidth-bound (Chapter 1). If the draft agrees with probability α per token, the expected tokens per big pass are (1 − αγ+1) ÷ (1 − α). The paper reports 2 to 3 times speed-up on T5-XXL, with identical output.
The flow-based experts of Chapter 1 do not use speculation; they already make a whole chunk in a handful of steps. The speculative decoding lesson, the KV cache article and the FlashAttention and PagedAttention article cover the three tools in depth.
The failure mode, in order: the symptom is a prefill that dominates the loop. The measurement is a timeline in which the prefix kernels repeat. The fix is to compute the prefix once per cycle and pass its keys and values to every step.
On real hardware. On a Jetson AGX Thor, run your policy with the cache on and off and read the kernel timeline in the profiler. With reuse on, the backbone kernels should appear once per cycle.
Chapter 6
Shrink the numbers where it is safe, keep them fine where they steer the arm, and judge the result by trajectory error
An engineer converts a whole policy to 4-bit numbers. Language tests still pass. The model still names the right cup. Then the arm shakes as it reaches. Nothing is wrong with the words. The error sits in the numbers that go straight to the motors.
A number format with fewer bits stores fewer distinct values. BF16 uses 16 bits, FP8 uses 8, and FP4 uses 4 (16 values, spread on a floating scale). Chapter 1 showed why fewer bits help: a memory-bound step takes time in proportion to the bytes, so halving the bytes halves the floor. For the 3 B model on Thor, a pass over the weights takes 21.98 ms in BF16, 10.99 ms in FP8 and 5.49 ms in FP4.
Compute gets faster too. Here are the Jetson Thor T5000 peaks from NVIDIA’s table:
| Format | Dense TFLOPS | Sparse TFLOPS |
|---|---|---|
| FP4 | 1,035 | 2,070 |
| FP8 | 517 | 1,035 |
| INT8 | not listed | 1,035 |
| FP16 | 258.5 (half of the sparse figure) | 517 |
“Sparse” means the weights follow a pruning pattern the hardware can skip. Ordinary models do not, so plan with the dense column. Each halving of the bits doubles the dense peak.
Real gains are smaller than the arithmetic. The NVIDIA Jetson AI Lab tutorial for openpi on Thor (pi05_libero, action horizon 10, MAXN mode) lists about 132 ms end to end with PyTorch in BF16, about 54 ms with TensorRT in FP8, and about 49 ms with FP8 plus NVFP4. The step from FP8 to FP4 saves about 9%, not half, because only some weights moved, and attention, the vision front end and launch time did not shrink. Note too that the first jump changed the engine as well as the format.
A big weight matrix has millions of numbers. Rounding errors in each one are small and random, and they average out in the sums. These weights tolerate 8 bits well and often 4. The action head is different. Its output goes straight to the joint controllers. An error there is not averaged with anything: it shows up as an arm that is a little off, and a little different between two ticks.
The head is the risky part. Say the head outputs joint targets on a grid, and the grid step for a joint with a range of ±π rad at 8 bits is 2π ÷ 255 = 0.0246 rad. Two neighbouring ticks (20 ms apart) may land on levels one step apart. That is a speed jump of 0.0246 ÷ 0.02 = 1.23 rad/s, and a change of that speed in one tick is an acceleration of 1.23 ÷ 0.02 = 61.6 rad/s². A smooth 1.2 rad reach in 1 s (minimum-jerk) peaks at only 5.77 × 1.2 = 6.9 rad/s². One grid step asks for nine times the planned acceleration. A uniform grid is the harsh case: floating-point formats are finer near zero, so measure your own head.
The blue line is a smooth reach for one joint. The warm steps are the same reach rounded to the chosen number of bits. Slide the bits down and watch the staircase grow. The bar below shows how fast the weights can be read at the chosen precision.
A toy of one effect: rounding the head’s outputs to a uniform grid over ±π rad (50 ticks, 50 Hz, a 1.2 rad minimum-jerk reach). Real FP4 weights do not put the outputs on a 16-level grid; what carries over is that output error is not averaged away and grows into acceleration. The weight bar uses 3 B parameters and 273 GB/s.
The test for a smaller format is not a language score. It is the difference between the new policy’s action chunk and the BF16 chunk, for the same observations: the largest joint error in degrees, the largest change from one tick to the next, and the final task success. The quantize, compile and prove parity lesson builds that test.
The failure mode, in order: the symptom is a jerky arm after quantising. The measurement is the second difference of the joint targets, compared with the BF16 run. The fix is to keep the action head in FP8 or BF16, quantise the large layers, and calibrate with real robot observations.
On real hardware. On a Jetson AGX Thor, run the same 100 recorded observations through BF16 and FP8 engines. Plot the joint-target difference and its second difference per tick before you commit to a format.
Chapter 7
Add up every stage from the camera’s exposure to the motor command, and learn how old each action’s picture really is
A benchmark says the model takes 44 ms. The arm still reacts to a moving cup a quarter of a second late. Both facts are true. The 44 ms is one stage of a longer chain, and the rest of the chain is not in the benchmark.
The loop that matters starts when light from the scene reaches the sensor and ends when the motor moves. The robot’s view of the world is only as fresh as the oldest part of that chain. So we measure observation age: the time between the world being as the picture shows it and the action that uses the picture going out.
Start the clock at the exposure midpoint, the middle of the time the sensor was collecting light. A picture is a blur of everything the sensor saw during the exposure, so the midpoint is the fairest single time for it. The camera lessons, sensor to CSI and low-latency video, show how to read that timestamp in hardware.
Then list every stage the picture passes through:
5 + 15 + 16.7 + 1.5 + 44 + 0.5 + 1 = 83.7 ms. Inference is 53% of the loop.
Each block is one stage of the loop. The lower line shows how old the picture is for each action in a chunk: the first action is the freshest, and every later one is 20 ms older. Change the camera, the model and the chunk size.
Measured: the 44 ms and 94 ms inference times (Chapter 0 sources) and the 28 ms H100 time. Illustrative: the 5 ms half-exposure, the camera path (readout, link, ISP, driver), 1.5 ms pre-processing, 0.5 ms post-processing and 1 ms bus. Replace them with your own timestamps. The control rate is fixed at 50 Hz here.
The 83.7 ms is the age of the first action of a new chunk. The next action goes out 20 ms later on the same picture, so it is 103.7 ms old. The tenth is 83.7 + 9 × 20 = 263.7 ms old. A longer chunk gives coverage (Chapter 0) but pays for it in age. This is the true trade of chunking, and the sliders above show it. Asynchronous inference does not remove it: VLA-Perf notes that asynchrony raises throughput but does not lower end-to-end latency.
VLA-Perf (Jiang, Clemons, Sankaralingam and Kozyrakis, arXiv 2602.18397) gives the method to predict a model’s time before you build it. Each operator takes the larger of its compute time and its memory time, T = max(FLOPs ÷ peak, bytes ÷ bandwidth). A component is the sum of its operators. The loop is the sum of the components plus data movement. This is the very calculation of Chapters 1 and 2.
The paper checks the method against a real Triton implementation of pi0 on an RTX 4090. The real system reached 73.3 to 82.6% of the model’s peak prediction, so the model is an upper bound on speed, not a promise. Its predictions for pi0 with no network, three cameras, 10 steps:
| Hardware | Latency | Rate |
|---|---|---|
| Jetson Thor | 52.57 ms | 19.0 Hz |
| RTX 4090 | 31.06 ms | 32.2 Hz |
| A100 | 16.20 ms | 61.7 Hz |
| H100 | 6.15 ms | 162.6 Hz |
Two of its other findings shape a loop. Server-side inference, even on a consumer GPU over WiFi, usually beats on-device inference unless the network is very poor. And a design that puts the language model on a server and the action expert on the robot is often slower than running on the robot alone, and always slower than the server alone. Downloading the KV cache is the bottleneck: 12.4 ms on 10 Gb Ethernet, 43.7 ms on WiFi 7, 257.7 ms on 5G (VLA-Perf, B100 server and Jetson Thor).
The symptom is a loop slower than its benchmark. The measurement is a timestamp at each stage, taken on one clock. Put a small LED in the camera’s view and switch it with a GPIO pin. Log when the pin changes, when the pixels change, when the model outputs, and when the bus message leaves. The differences are your stage times. The fix is to attack the biggest block, which is often not the model.
The robot real-time performance lesson and the bench and root-cause lesson cover the tools. The planned real-time budget lesson in this track will turn the list above into a formal budget.
On real hardware. On a Jetson AGX Thor with a CSI camera and a Nucleo board on the bus, toggle an LED in view, then read the first CAN message that changes after the model sees it, on a logic analyser. Repeat 100 times and plot the histogram, not the mean.
Chapter 8
Keep the numbers, the checklist and the core code, and see where each idea goes next
You can now say why an arm stalls between chunks, and you can do the arithmetic that prevents it. Every part of the answer is a division you can do on paper.
A chunk of K actions at rate f covers K / f seconds. Thinking that outlasts the coverage stalls the arm. Overlap starts the next think early, so only the part of a think beyond the coverage shows. RTC freezes the d = ⌊δ / Δt⌋ actions that will run anyway and blends the rest, so the hand-over is smooth. A step costs at least bytes ÷ bandwidth when it is memory-bound (decode, the action expert) and at least 2 × N × tokens ÷ peak when it is compute-bound (a long prefill). The KV cache is computed once per cycle. Smaller number formats help weights but must be judged on action error. The whole loop is longer than the model.
Every latency below is one measured example with its setup; none is a specification.
| What | Number | Setup and source |
|---|---|---|
| Chunk coverage | K ÷ f; 10 at 50 Hz = 200 ms | Arithmetic |
| K to hide a 250 ms think | ⌈250 × 50 ÷ 1000⌉ = 13 | Arithmetic, 50 Hz |
| pi0 chunk | H = 50; plays 25 at 50 Hz, replans every 0.5 s | pi0 paper, arXiv 2410.24164 |
| RTC real robot | 76 ms without, 97 ms with; d about 6, 11, 16 | pi0.5, 5 steps, 50 Hz, +100 and +200 ms injected; arXiv 2506.07339 |
| Jetson Thor T5000 | 128 GB, 273 GB/s; 2,070 FP4 sparse; 517 FP8 dense | NVIDIA Jetson Thor pages |
| Decode floor, 3 B FP8 | 11.0 ms per token | 3 GB ÷ 273 GB/s |
| Compute-bound from about | 947 tokens | Thor dense peak × bytes ÷ (2 × bandwidth), BF16 or FP8 |
| pi0, three images, RTX 4090 | 14 + 32 + 27 = 73 ms | Encoders, prefix pass, 10 action steps; pi0 paper |
| pi0 model, Thor | 52.57 ms (19.0 Hz) | VLA-Perf roofline model, arXiv 2602.18397 |
| GR00T N1.7, H100 | 27.9 ms (35.9 Hz) | TensorRT, 4 steps, 1 camera; model card |
| GR00T N1.7, AGX Thor | 93.8 ms (10.7 Hz) | TensorRT full pipeline, same setup; model card |
| pi0.5, AGX Thor | 44 ms (23 Hz); pi0 46 ms (22 Hz) | Hand-written engine; NVIDIA forum post, project page: 2 camera views, FP8; steps not stated |
| pi05_libero, AGX Thor | about 132, 54, 49 ms | BF16, TensorRT FP8, FP8 plus NVFP4; horizon 10; Jetson AI Lab |
| Cloud and edge interleave | 7.4 M local predictor, 20.7 ms on Orin Nano | VLA-ULAP, arXiv 2609.18663; GR00T on an RTX A6000 takes 289.3 ms |
| Example loop | 83.7 ms to the first action | Chapter 7, 30 fps, partly illustrative |
A short sketch of the arithmetic in this lesson. It runs as plain Python. The scheduler follows the overlap rule of Chapter 0.
pythonimport math def coverage_ms(K, f_hz): # Ch 0: a chunk covers K / f return K * 1000.0 / f_hz def inference_delay(latency_ms, tick_ms=20): # Ch 3: d = floor(delta / dt) return math.floor(latency_ms / tick_ms) def rtc_weights(H, d, s): # Ch 3: Eq. 5 of the RTC paper w = [] for i in range(H): if i < d: w.append(1.0) # frozen elif i >= H - s: w.append(0.0) # free else: c = (H - s - i) / (H - s - d + 1) w.append(c * (math.exp(c) - 1) / (math.e - 1)) # blended return w def step_floor_ms(params_b, bytes_per_param, bw_gbs=273): # Ch 1: memory-bound step return params_b * bytes_per_param / bw_gbs * 1000 def prefill_ms(params_b, tokens, bytes_per_param, peak_tflops, bw_gbs=273): # Ch 2 compute = 2 * params_b * 1e9 * tokens / (peak_tflops * 1e12) * 1000 memory = step_floor_ms(params_b, bytes_per_param, bw_gbs) return max(compute, memory) # the larger one sets the time def stall_ms(think_ms, K, f_hz): # Ch 0: overlap hides all but the excess return max(0.0, think_ms - coverage_ms(K, f_hz)) # the numbers of this lesson print(coverage_ms(10, 50)) # 200.0 print(stall_ms(250, 10, 50)) # 50.0 print(inference_delay(130)) # 6 print(step_floor_ms(3, 1)) # 10.989... ms print(prefill_ms(2.0, 800, 2, 258.5)) # 14.65... ms, memory-bound
This lesson is the on-robot end of a longer story. The policies are covered in pi0, pi0.5, Helix and ACT and ALOHA, and the broader VLA lesson. Real-time chunking has its own lesson: RTC. The serving tools come from LLM inference, serving engines and LLM deployment on small devices.
Next in the edge track: export, partition and fallback, quantize, compile and prove parity and edge roofline and thermals. For the camera side: sensor to CSI and low-latency video. For the operating system: real-time Linux.
Cloud and edge can also share a loop: VLA-ULAP (arXiv 2609.18663, September 2026) calls a remote VLA only some of the time and fills the rest with a 7.4 M-parameter local predictor. In simulation it removed 45.3 to 77.3% of the VLA calls and kept 95.0 to 98.5% of the baseline success rate.
This lesson has no slides. It is built from primary sources: Black, Galliker and Levine, Real-Time Execution of Action Chunking Flow Policies (NeurIPS 2025); Black, Ren, Equi and Levine, Training-Time Action Conditioning for Efficient Real-Time Chunking; Jiang, Clemons, Sankaralingam and Kozyrakis, How Fast Can I Run My VLA? (VLA-Perf); Physical Intelligence, pi0; the GR00T N1.7 model card; NVIDIA, Introducing Jetson Thor and the Jetson Thor page; the Jetson AI Lab openpi tutorial and the developer forum thread on pi0.5 on Thor (one measured example); Dao et al., FlashAttention; Kwon et al., PagedAttention; Leviathan et al., Speculative Decoding; and Cao et al., VLA-ULAP. The timelines and device plans on this page are models, not recordings. Illustrative numbers are labelled where they appear.
Now press Present or Teach and explain, from memory, why a 250 ms think stalls a 200 ms chunk, what RTC freezes, and where the 83.7 ms of the loop goes. Then go back to the instrument and make the red gaps vanish with the smallest chunk that works.