vllm.models.step5.nvidia.ops.sparse_indexer_scores
¶
FP8 indexer scores directly from paged summary keys.
Functions:
-
decode_summary_scores–Read raw FP8 summaries without repacking keys or allocating unit scales.
-
paged_mqa_logits_sm90–Score Step5's packed FP8 summary pages on Hopper.
decode_summary_scores(query, weights, mean, block_table, slots, seq_lens, capacity, *, num_sms, row_groups=1, query_len=1)
¶
Read raw FP8 summaries without repacking keys or allocating unit scales.
Only the 128-region rounded live prefix is written. Consumers must use
lengths/topk_lengths to ignore the unspecified score tail. Each group of
row_groups query rows is one token of slots; each query_len
tokens are one request of block_table/seq_lens.
Source code in vllm/models/step5/nvidia/ops/sparse_indexer_scores.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | |
paged_mqa_logits_sm90(q, kv_fused, weights, block_tables, seq_lens, max_seq_len, *, schedule_meta=None)
¶
Score Step5's packed FP8 summary pages on Hopper.
The packed page holds all FP8 keys followed by one FP32 scale per key. Query pairs share a page table and length, as in FlashInfer's interface.