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).

Python class

MSAAttnKey

MSAAttnKey​

class max.nn.kv_cache.MSAAttnKey

source

Bases: AttnKeyInterface

Decode dispatch metadata for multi-step attention (MSA).

pack_into_buffer()​

pack_into_buffer(device, max_cache_valid_length)

source

Returns a single sentinel int as a placeholder, since MSA kernels do not consume dispatch metadata.

Parameters:

  • device (Device)
  • max_cache_valid_length (int)

Return type:

Buffer