IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/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. /max/get-started.md).

Mojo function

kv_cache_row_offsets_ragged_paged_kernel

def kv_cache_row_offsets_ragged_paged_kernel[CacheRowOffsetsLayoutType: TensorLayout, InputRowOffsetsLayoutType: TensorLayout, CacheLengthsLayoutType: TensorLayout](cache_row_offsets: TileTensor[DType.uint32, CacheRowOffsetsLayoutType, MutUntrackedOrigin], input_row_offsets: TileTensor[DType.uint32, InputRowOffsetsLayoutType, ImmutUntrackedOrigin], cache_lengths: TileTensor[DType.uint32, CacheLengthsLayoutType, ImmutUntrackedOrigin])