Skip to content

vllm.v1.attention.ops.rocm_octave_rdna4.tuned

Dense attention dispatch for RDNA4 Octave.

Classes:

  • TunedHipOctave –

    Choose precompiled scalar/decode or matrix kernels for D=256/R=64.

Functions:

TunedHipOctave

Bases: HipOctave

Choose precompiled scalar/decode or matrix kernels for D=256/R=64.

Methods:

  • prefill_expanded –

    Expand the packed prefix into FP16 workspace for HIP WMMA prefill.

  • prefill_streamed –

    Attend to the paged prefix in place and merge the causal raw chunk.

  • streamed_workspace –

    Bound the prefix partials by the existing per-layer scratch budget.

prefill_expanded(query, key, value, cache, table, starts, lengths, signs, cache_dtype, *, key_tmp, value_tmp, query_tmp, repair=None, correction=None, out, scale)

Expand the packed prefix into FP16 workspace for HIP WMMA prefill.

prefill_streamed(query, key, value, cache, table, starts, lengths, signs, cache_dtype, *, buffers, out, scale)

Attend to the paged prefix in place and merge the causal raw chunk.

streamed_workspace(query, cache, requests, capacity, budget)

Bound the prefix partials by the existing per-layer scratch budget.

startup_scratch_bytes(*, tokens, heads, kv, dim, requests, capacity)

Budget shared by streamed, expanded, and split packed attention.