IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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 module

varlen_selective_scan_ops

Varlen selective scan operation registrations for Mamba SSM.

This module registers operations for variable-length selective scan:

  • varlen_selective_scan_fwd: Forward pass for varlen sequences
  • varlen_selective_state_update: State update for decode/autoregressive inference

comptime values

Strides1D

comptime Strides1D = IndexList[Int(1)]

Strides2D

comptime Strides2D = IndexList[Int(2)]

Strides3D

comptime Strides3D = IndexList[Int(3)]

Strides4D

comptime Strides4D = IndexList[Int(4)]

Structs

Functions