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 function
causal_conv1d_varlen_update_cpu
def causal_conv1d_varlen_update_cpu[x_dtype: DType, weight_dtype: DType, bias_dtype: DType, output_dtype: DType, conv_state_dtype: DType, cache_seqlens_dtype: DType, conv_state_indices_dtype: DType](batch: Int, dim: Int, seqlen: Int, width: Int, state_len: Int, x: TileTensor[x_dtype, Engine=x.Engine, address_space=x.address_space, linear_idx_type=x.linear_idx_type], weight: TileTensor[weight_dtype, Engine=weight.Engine, address_space=weight.address_space, linear_idx_type=weight.linear_idx_type], bias: TileTensor[bias_dtype, Engine=bias.Engine, address_space=bias.address_space, linear_idx_type=bias.linear_idx_type], conv_state: TileTensor[conv_state_dtype, Engine=conv_state.Engine, address_space=conv_state.address_space, linear_idx_type=conv_state.linear_idx_type], cache_seqlens: TileTensor[cache_seqlens_dtype, Engine=cache_seqlens.Engine, address_space=cache_seqlens.address_space, linear_idx_type=cache_seqlens.linear_idx_type], conv_state_indices: TileTensor[conv_state_indices_dtype, Engine=conv_state_indices.Engine, address_space=conv_state_indices.address_space, linear_idx_type=conv_state_indices.linear_idx_type], output: TileTensor[output_dtype, Engine=output.Engine, address_space=output.address_space, linear_idx_type=output.linear_idx_type], silu_activation: Bool, pad_slot_id: Int32, has_conv_state_indices: Bool, has_cache_seqlens: Bool, has_bias: Bool)
Update function for causal conv1d decode.
Updates the convolution state and computes output for decode steps. Supports circular buffer state management with cache_seqlens.