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

generic_get_continuous_cache

def generic_get_continuous_cache[dtype: DType, kv_params: KVCacheStaticParams](blocks: LayoutTensor[dtype, Layout.row_major[6]()], cache_lengths: LayoutTensor[DType.uint32, Layout(IntTuple(-1))], lookup_table: LayoutTensor[DType.uint32, Layout(IntTuple(-1))], max_lengths: LayoutTensor[DType.uint32, Layout.row_major[2]()]) -> ContinuousBatchingKVCacheCollection[dtype, kv_params]

Returns:

ContinuousBatchingKVCacheCollection[dtype, kv_params]