Skip to content

vllm.v1.attention.ops.rocm_octave_rdna4

Independent native RDNA4 Octave runtime, compiled before graph capture.

Modules:

  • geometry –
  • hip –

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

  • splits –

    Workload-aware, graph-stable split selection with a bounded workspace.

  • tuned –

    Dense attention dispatch for RDNA4 Octave.

Classes:

  • OctaveGeometry –

    Map logical Q/K/V dimensions onto the existing Octave wire layouts.

  • TunedHipOctave –

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

OctaveGeometry dataclass

Map logical Q/K/V dimensions onto the existing Octave wire layouts.

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.