Skip to content

[Feature] [Kernel] cursor warp decode kernel for low latency small batch MOE inference #32312

Description

@ZelinMa557

Checklist

Motivation

In cursor's blog https://cursor.com/blog/warp-decode, cursor designs a new type of MOE kernel for low latency small batch MOE inference.

TokenSpeed also dispatches warp decode style kernel at small batch size (https://pytorch.org/blog/lightseek-tokenspeed-kernel/):

Image

I tried to reproduce the result on Nvidia hopper GPUs under bf16 precision, and achieved up to 2.0x speedup on MOE ffn layer (https://github.com/ZelinMa557/warp_decode):

Image

Maybe sglang can consider integrate warp decode style MOE kernels?

Reference:

Related resources

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions