Skip to content

Benchmark important kernels and report results in the system card (/kernel-bot benchmark) #1111

Description

@moon-bot-app

Motivation

We want reliable, comparable performance numbers for the kernels under hf.co/kernels-community. Rather than building a full leaderboard, keep it deliberately simple: pick a handful of important kernels, always report their benchmark results in the system card, and track whether a new version caused a speed deviation.

Prior art for the "track deviations across versions" part: https://huggingface.co/datasets/diffusers/benchmarks

Proposal

  • Select a small set of important kernels under kernels-community to start with.
  • Run a fixed benchmark per kernel and publish the results into the kernel's system card.
  • Persist historical results (e.g. a dataset on the Hub) so version-over-version speed deviations are visible.
  • Trigger: not nightly. Run after a PR is opened against an important kernel and build-upload has completed.
  • Expose it as /kernel-bot benchmark, implemented as a GitHub Actions workflow with workflow_dispatch.

Notes

Discussed in Slack: @sayakpaul has a concrete idea for how to set this up; @danieldk agreed on the /kernel-bot benchmark entry point. @drbh previously worked on benchmarks (see also huggingface/kernels-benchmarks) and may have reusable pieces.


Requested by Sayak Paul - Slack thread - Agent trace

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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