vllm.models.step5.nvidia.ops.sparse_indexer
¶
Packing and stable region selection for the sparse indexer.
Functions:
-
pack_decode_summary_pages–Pack summaries and emit decode metadata in the same launch.
-
select_all_regions–Select all history and current without computing unused indexer scores.
-
select_regions–Select stable top-k historical regions and append current.
pack_decode_summary_pages(mean, block_table, regions, slots, seq_lens, *, num_sms=0, live_only=False)
¶
Pack summaries and emit decode metadata in the same launch.
Source code in vllm/models/step5/nvidia/ops/sparse_indexer.py
select_all_regions(current, capacity)
¶
Select all history and current without computing unused indexer scores.
Source code in vllm/models/step5/nvidia/ops/sparse_indexer.py
select_regions(scores, current, topk, backend='auto', *, topk_lengths=None, paged_prefill=None, sort=True)
¶
Select stable top-k historical regions and append current.
With sort=False selected regions keep top-k order, left-padded with -1.
Source code in vllm/models/step5/nvidia/ops/sparse_indexer.py
564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 | |