For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
FlashAttentionAlgorithm
struct FlashAttentionAlgorithm
Implemented traitsβ
AnyType,
Copyable,
Defaultable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable,
Writable
comptime membersβ
FLASH_ATTENTION_1β
comptime FLASH_ATTENTION_1 = FlashAttentionAlgorithm(Int(1))
FLASH_ATTENTION_2β
comptime FLASH_ATTENTION_2 = FlashAttentionAlgorithm(Int(2))
FLASH_ATTENTION_3β
comptime FLASH_ATTENTION_3 = FlashAttentionAlgorithm(Int(3))
NAIVEβ
comptime NAIVE = FlashAttentionAlgorithm(Int(0))
Methodsβ
__init__β
def __init__() -> Self
def __init__(value: Int) -> Self
__eq__β
__ne__β
initβ
def init(self, dtype: DType) -> Self
write_toβ
def write_to(self, mut writer: T)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!