FlashInfer:LLM服务内核库 是 AI Skill Hub 本期精选AI工具之一。已获得 5.7k 颗 GitHub Star,综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
FlashInfer是一款开源AI工具,提供了一个高性能的内核库,用于支持大规模的LLM服务。它通过优化内核和使用GPU加速,显著提高了模型推理的效率和吞吐量。
FlashInfer:LLM服务内核库 是一款基于 Python 开发的开源工具,专注于 installable、attention、cuda 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
FlashInfer是一款开源AI工具,提供了一个高性能的内核库,用于支持大规模的LLM服务。它通过优化内核和使用GPU加速,显著提高了模型推理的效率和吞吐量。
FlashInfer:LLM服务内核库 是一款基于 Python 开发的开源工具,专注于 installable、attention、cuda 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install flashinfer
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install flashinfer
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/flashinfer-ai/flashinfer
cd flashinfer
pip install -e .
# 验证安装
python -c "import flashinfer; print('安装成功')"
# 命令行使用
flashinfer --help
# 基本用法
flashinfer input_file -o output_file
# Python 代码中调用
import flashinfer
# 示例
result = flashinfer.process("input")
print(result)
# flashinfer 配置文件示例(config.yml) app: name: "flashinfer" debug: false log_level: "INFO" # 运行时指定配置文件 flashinfer --config config.yml # 或通过环境变量配置 export FLASHINFER_API_KEY="your-key" export FLASHINFER_OUTPUT_DIR="./output"
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://github.com/flashinfer-ai/web-data/blob/main/logo/FlashInfer-black-background.png?raw=true"> <img alt="FlashInfer" src="https://github.com/flashinfer-ai/web-data/blob/main/logo/FlashInfer-white-background.png?raw=true" width=55%> </picture> </p> <h1 align="center"> High-Performance GPU Kernels for Inference </h1>
<p align="center"> | <a href="https://docs.flashinfer.ai"><b>Documentation</b></a> | <a href="https://github.com/flashinfer-ai/flashinfer/releases/latest"><b>Latest Release</b></a> | <a href="https://flashinfer.ai"><b>Blog</b></a> | <a href="https://join.slack.com/t/flashinfer/shared_invite/zt-379wct3hc-D5jR~1ZKQcU00WHsXhgvtA"><b>Slack</b></a> | <a href="https://github.com/orgs/flashinfer-ai/discussions"><b>Discussion Forum</b></a> | </p>
FlashInfer is a library and kernel generator for inference that delivers state-of-the-art performance across diverse GPU architectures. It provides unified APIs for attention, GEMM, and MoE operations with multiple backend implementations including FlashAttention-2/3, cuDNN, CUTLASS, and TensorRT-LLM.
Quickstart:
pip install flashinfer-python
Package Options:
For faster initialization and offline usage, install the optional packages to have most kernels pre-compiled:
```bash pip install flashinfer-python flashinfer-cubin
flashinfer show-config
git clone https://github.com/flashinfer-ai/flashinfer.git --recursive
cd flashinfer
python -m pip install -v .
For development, install in editable mode:
python -m pip install --no-build-isolation -e . -v
Note: When using--no-build-isolation, pip does not automatically install build dependencies. FlashInfer requiressetuptools>=77. If you encounter an error likeAttributeError: module 'setuptools.build_meta' has no attribute 'prepare_metadata_for_build_editable', upgrade pip and setuptools first:> python -m pip install --upgrade pip setuptools >
Build optional packages:
```bash
```bash pip install -U --pre flashinfer-python --index-url https://flashinfer.ai/whl/nightly/ --no-deps pip install flashinfer-python # Install dependencies from PyPI pip install -U --pre flashinfer-cubin --index-url https://flashinfer.ai/whl/nightly/
flashinfer show-config
flashinfer export-compile-commands [output_path] ```
For complete documentation, see the CLI reference.
```python import torch import flashinfer
FlashInfer powers inference in:
FlashInfer provides several CLI commands for configuration, module management, and development:
```bash
FlashInfer provides comprehensive API logging for debugging. Enable it using environment variables:
```bash
flashinfer list-modules flashinfer module-status
FlashInfer是一款高质量的开源AI工具,提供了一个高性能的内核库,用于支持大规模的LLM服务。它通过优化内核和使用GPU加速,显著提高了模型推理的效率和吞吐量。值得推荐。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,FlashInfer:LLM服务内核库 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | flashinfer |
| 原始描述 | 开源AI工具:FlashInfer: Kernel Library for LLM Serving。⭐5.7k · Python |
| Topics | installableattentioncudadistributed-inferencegpujitpython |
| GitHub | https://github.com/flashinfer-ai/flashinfer |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-05-29 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。