flashinfer-bench  by flashinfer-ai

Benchmark suite for optimizing LLM inference kernels

Created 1 year ago
257 stars

Top 98.3% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

Summary

FlashInfer-Bench provides a benchmark suite and production workflow aimed at creating self-improving AI systems, specifically for Large Language Models (LLMs). It targets AI agents and engineers by enabling collaborative optimization of the underlying kernels that power LLMs, fostering a virtuous cycle where AI improves AI. The primary benefit is enhanced performance and efficiency of LLM systems through continuous kernel optimization.

How It Works

The project establishes a feedback loop for LLM kernel optimization. It utilizes the "FlashInfer-Trace" dataset, which comprises kernels and workloads derived from real-world AI system deployments. This dataset allows FlashInfer-Bench to measure and compare the performance of various kernels. The core approach facilitates a collaborative environment where AI agents and engineers can work together to refine these critical components, leading to a self-improving ecosystem for AI infrastructure.

Quick Start & Requirements

  • Installation: Install via pip: pip install flashinfer-bench.
  • Prerequisites: Python environment. Git LFS is required for cloning the dataset.
  • Dataset: The official "FlashInfer-Trace" dataset is available on HuggingFace (https://huggingface.co/datasets/flashinfer-ai/flashinfer-trace). Clone it using GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/datasets/flashinfer-ai/flashinfer-trace.
  • Running Benchmarks: Execute benchmarks using flashinfer-bench run --local flashinfer-trace.
  • Documentation: https://bench.flashinfer.ai/docs/
  • Blogpost: https://flashinfer.ai/2025/10/21/flashinfer-bench.html

Highlighted Details

  • Focuses on establishing a "virtuous cycle" for AI-driven LLM systems.
  • Employs the "FlashInfer-Trace" dataset, featuring real-world AI deployment kernels and workloads.
  • Collaborates with key players in the AI ecosystem, including NVIDIA (TensorRT-LLM), gpu-mode, sglang, vllm-project, and Bosch.

Maintenance & Community

Licensing & Compatibility

  • License: Apache 2.0.
  • Compatibility: The Apache 2.0 license is permissive and generally compatible with commercial use and closed-source linking.

Limitations & Caveats

No specific limitations or caveats are detailed in the provided README. The project appears to be presented as a foundational suite for LLM kernel optimization.

Health Check
Last Commit

2 months ago

Responsiveness

Inactive

Pull Requests (30d)
2
Issues (30d)
0
Star History
12 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.