For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
GatedDeltaRecurrenceFwd
struct GatedDeltaRecurrenceFwd
Gated DeltaNet recurrence forward pass (Pass 2 of two-pass prefill).
Reads/writes a single mutable recurrent-state pool of shape
[max_slots, num_value_heads, key_head_dim, value_head_dim] in place
at slot slot_idx[batch_item]. No state-out tensor; the only output
is the per-token recurrence output.
Tensor Shapes: - recurrence_output : [total_seq_len, value_dim] (OUT) - qkv_conv_output : [total_seq_len, conv_dim] - decay_per_token : [total_seq_len, num_value_heads] - beta_per_token : [total_seq_len, num_value_heads] - recurrent_state : [max_slots, num_value_heads, KD, VD] (MUT) - slot_idx : [batch_size] uint32 - input_row_offsets : [batch_size + 1] uint32
Implemented traitsโ
Methodsโ
executeโ
static def execute(recurrence_output: T, qkv_conv_output: T, decay_per_token: T, beta_per_token: T, recurrent_state: T, slot_idx: T, input_row_offsets: T, ctx: DeviceContext)