Mila
Deep Neural Network Library
Loading...
Searching...
No Matches
Mila::Dnn::Compute::GqaState Struct Referenceexport

Non-owning pointers to shared transient GQA scratch buffers. More...

Public Attributes

ITensoratt { nullptr }
ITensoratt_decode { nullptr }
ITensorpreatt { nullptr }
ITensorpreatt_decode { nullptr }
ITensorq_permute { nullptr }
ITensorv_out { nullptr }
ITensorv_out_decode { nullptr }

Detailed Description

Non-owning pointers to shared transient GQA scratch buffers.

All slots are nullable. CudaGqaOp::setState() accepts a partially populated state – only non-null slots replace the previously wired pointers.

Prefill slots: q_permute [B, NH, chunk, HS] preatt [B, NH, chunk, T] att [B, NH, chunk, T] v_out [B, NH, chunk, HS]

Decode slots: preatt_decode [B, NH, 1, T] att_decode [B, NH, 1, T] v_out_decode [B, NH, 1, HS]

Ownership: caller retains ownership and must ensure tensors outlive all GQA layers that reference them.


The documentation for this struct was generated from the following file: