Embodied AI

Reducing overhead in an action sampler

Manual graph capture shortened the measured step time for a batch one action sampler.

1Batch size
10Sampling steps
Graph captureCompared with eager execution

STUDY OVERVIEW

Study overviewNVIDIA T4

Action-model sampling loop

Eager execution4.818 ms per step
Manual graph capture0.819 ms per step
Batch 1 · 10 sampling steps · Action model

Recorded on a T4 at batch one with ten sampling steps. Bar lengths use the measured step times.

NVIDIA Tesla T4

The study compares eager execution with manual graph capture.

The result uses a compact action expert on a T4 at batch one with ten sampling steps.

The problem

The action sampler called many short operations, so execution overhead affected its step time.

The method

Manual CUDA graph capture replayed the sampling loop. The study compared that path with eager execution and compiler graph capture.

Validation

The recorded checks cover exact graph replay, stale inputs and memory leaks. Separate low-bit experiments measured memory and latency.

Measurement methods

MethodTen sampling steps on a T4
Eager execution4.818 ms per step
Compiler graph capture0.955 ms per step
Manual graph capture0.819 ms per step

The separate low-bit experiments reduced weight storage but did not improve batch one latency. Both custom T4 kernels and the production L4 int4 path were slower than their reference paths.

Source material

Start with an operating problem

What needs to work better?