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

Mojo function

paged_record

def paged_record[value_bytes: Int, scale_bytes: Int](cache: MutPointer[UInt8, MutAnyOrigin], slot: Int, page_size: Int, page_stride: Int) -> Tuple[Pointer[UInt8, MutAnyOrigin], Pointer[UInt8, MutAnyOrigin]]

Locates a slot's values and scales in a paged cache.

Parameters:

  • ​value_bytes (Int): The bytes of values in one record.
  • ​scale_bytes (Int): The bytes of scales in one record.

Args:

Returns:

Tuple[Pointer[UInt8, MutAnyOrigin], Pointer[UInt8, MutAnyOrigin]]: The slot's values and its scales.

Was this page helpful?