Skip to content

vllm.v1.attention.ops.rocm_octave_rdna4.hip

Tensor wrappers for the RDNA4 Octave ops registered in vLLM's _C extension.

Classes:

  • HipOctave –

    Paged Octave on gfx1200/gfx1201, with FP32 attention output.

HipOctave

Paged Octave on gfx1200/gfx1201, with FP32 attention output.

Callers supply valid page indices and unique live write slots. Q and K are post-RoPE. The contiguous int32 sign words follow the Octave format.

Methods:

  • decode_sparse –

    FP32 sparse attention over selected logical positions and holes.

  • window_store –

    Keep exact K/V for selected recent and leading QSA positions.

decode_sparse(query, cache, block_table, q_to_req, indices, signs, cache_dtype, *, positions=None, wtab=None, wtags=None, stab=None, stags=None, scale=None, splits=1, out=None, scratch=None)

FP32 sparse attention over selected logical positions and holes.

Optional exact tables preserve the first four and last 64 selected positions. Missing or evicted tags use the packed cache. No prefix is expanded to a dense K/V tensor. All buffers may be supplied for capture.

window_store(key, value, slots, positions, wtab, wtags, wlocks, stab, stags, slocks)

Keep exact K/V for selected recent and leading QSA positions.

Direct-mapped tables use physical-slot tags. Collisions evict complete rows, so sparse attention can safely fall back to packed KV.