Mojo struct
OffsetPosition
struct OffsetPosition[config: MLA_SM100_Decode_Config, KVLUTType: MHAOperand, ragged: Bool, is_cache_length_accurate: Bool, ValidLengthType: OptionalPointer, decoding_warp_split_k: Bool = False, sparse: Bool = False, has_extra_kv: Bool = False, has_variable_topk: Bool = False]
Fieldsβ
- βseq_len (
Int): - βmax_seq_len (
Int): - βnum_keys (
Int): - βq_row_offset (
Int): - βout_row_offset (
Int): - βsplit_idx (
Int): - βbatch_idx (
Int): - βkv_start_row (
Int): - βnum_keys_this_split (
Int): - βq_token_idx (
Int):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methodsβ
__init__β
__init__(k: KVLUTType, valid_length: UnsafePointer[Scalar[ValidLengthType.dtype], ImmutAnyOrigin], max_seq_len: Int, num_partitions: Int, batch_size: Int, sparse_indices_stride: Int = 0, sparse_topk_lengths: OptionalReg[UnsafePointer[Int32, MutAnyOrigin]] = None, sparse_extra_indices_stride: Int = 0, sparse_extra_topk_lengths: OptionalReg[UnsafePointer[Int32, MutAnyOrigin]] = None) -> Self
cache_lenβ
start_posβ
q_row_offset_atβ
out_row_offset_atβ
q_token_idx_atβ
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!