Embodied AI
Reducing overhead in an action sampler
Manual graph capture shortened the measured step time for a batch one action sampler.
STUDY OVERVIEW
Action-model sampling loop
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
| Method | Ten sampling steps on a T4 |
|---|---|
| Eager execution | 4.818 ms per step |
| Compiler graph capture | 0.955 ms per step |
| Manual graph capture | 0.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