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).
Python class
AttentionMaskVariant
AttentionMaskVariantβ
class max.nn.attention.AttentionMaskVariant(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Defines the string mask variant identifiers used in attention configuration.
CAUSAL_MASKβ
CAUSAL_MASK = 'causal'
CHUNKED_CAUSAL_MASKβ
CHUNKED_CAUSAL_MASK = 'chunked_causal'
NULL_MASKβ
NULL_MASK = 'null'
SLIDING_WINDOW_CAUSAL_MASKβ
SLIDING_WINDOW_CAUSAL_MASK = 'sliding_window_causal'
SLIDING_WINDOW_NONCAUSAL_MASKβ
SLIDING_WINDOW_NONCAUSAL_MASK = 'sliding_window_noncausal'
TENSOR_MASKβ
TENSOR_MASK = 'tensor_mask'
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!