Skip to content

TopKValuesIndicesRowKernel costs 708 us/step; a radix top-k does it in 40 us #1867

Description

@localai-bot

From the #1857 kernel head-to-head: our per-step selector TopK (TopKValuesIndicesRowKernel, 8 rows x 248320 vocab, K=16) costs 708 us; SGLang's radix top-k does the equivalent in 40 us. −0.7 ms/step. Mirror the radix approach (FlashInfer's radix top-k is the upstream reference). Owner: SPEC-DFLASH2. Smallest of the three #1857 levers; ride it with whichever wave touches the selector next.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions