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
kn_generate_ps_metadata
def kn_generate_ps_metadata(seqlens_qo_indptr: List[Int32], pages_kv_indptr: List[Int32], context_lens: List[Int32], num_heads_k: Int32, qhead_granularity: Int32, qlen_granularity: Int32, kvlen_granularity: Int32, block_size: Int32, is_causal: Bool, available_tgs: Int32, cluster_id: Int32) -> PsMetadata
Faithful port of v1_2_host.cuh:61-241 (single-cluster: cluster_id=0, current_work_idx=0 -- the nkv=1 prefill case).
Returns:
PsMetadata
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!