flashinfer.gdn_paged.GDNPagedPrefillSlots¶
- class flashinfer.gdn_paged.GDNPagedPrefillSlots(state_indices: Tensor, output_state_indices: Tensor, checkpoint_cu_starts: Tensor, prefix_lens: Tensor)¶
Per-sequence pool rows of a paged prefill batch, all
[num_seqs]int32. Seegdn_paged_prefill_slots().- __init__()¶
Methods
__init__()count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
checkpoint_cu_startspage_indicesentry of the first page boundary the new tokens cross.output_state_indicesLast page, written with the final state.
prefix_lensTokens before the new ones.
state_indicesPage holding the last prefix token, read as the initial state (
-1: empty prefix, zero state).