In this article
The v0.4.0 CausalConv state-update contract zeroes inactive capture rows; test a short call after a longer one with the same reused output storage.
CUDA Plugin EP v0.4.0 extends CausalConvWithState with compact state_update output. The linked PR specifies zero-filled unused rows when the actual sequence is shorter than capture capacity. This detail matters for replay and buffer reuse: allocated output space can contain bytes from a previous call unless the implementation defines and writes the inactive tail.
Capacity does not mean every row is active
A fixed capture buffer can be larger than the current sequence. The logical result therefore includes both active updates and a defined unused region. A proposed test sets capture capacity above actual length and checks every output row, not only the prefix. A consumer should still respect actual length, but a producer’s promised zero-fill remains independently testable. Undefined stale values should not be mistaken for valid extra candidate states.
A long-to-short transition exposes stale bytes
First fill the capture output through a longer valid call, then reuse it for a shorter call with distinct inputs. This makes inactive tail contamination visible. Running only short calls on freshly zeroed allocations can accidentally hide a missing write. A poisoned-buffer unit case is another useful control, provided the test follows supported buffer ownership and compares active state separately with a convolution reference.
Graph capture includes auxiliary memory operations
The PR uses a graph-capturable zero-fill path. Qualification should therefore include captured and ordinary execution, with changing valid lengths that the captured configuration supports. Confirm that replay performs the intended clearing rather than relying on a one-time initialization before capture. This distinguishes correctness of the captured work from correctness of an uncaptured setup phase. Keep capacity fixed unless the application deliberately recreates the graph for another shape.
A defined tail is a narrow guarantee
Zeroing inactive capture rows does not mean those rows represent extra processed tokens or that every provider implements the extended output. Check the actual CUDA build and schema combination. This article reports the output contract and proposed long-to-short replay regression without new measurements. It complements state-commit testing by validating the producer’s unused region, rather than assuming correct prefix selection proves every allocated byte was written.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.