Skip to content

Bug: Kernels can cheat the benchmark by caching their outputs. #228

Description

@tripplyons

Because there is a fixed set of inputs that are reused by flashinfer-bench, a kernel can just remember what it previously output for each input and return that without needing to do any computation, resulting in much lower measured latency than is realistic.

I made a minimal reproducible example based on flashinfer-bench-starter-kit: https://github.com/tripplyons/flashinfer-bench-bug

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