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).
Mojo struct
Struct_kv_cache_gather_rows_ragged_paged
struct Struct_kv_cache_gather_rows_ragged_paged
Registers the kv_cache.gather_rows.ragged.paged graph op with the graph compiler.
Copies the key or value rows a per-row slot list names out of one layer
of a paged cache, one head per slot. See nn.kv_cache_gather.
Implemented traitsโ
Methodsโ
executeโ
static def execute[key_or_value: Int](output: T, slots: T, row_offsets: T, kv_blocks: T, page_stride: T, cache_lengths: T, kv_lookup_table: T, max_prompt_length: T, max_cache_length: T, layer_idx: UInt32, context: DeviceContext)