iree-org/iree

GitHub: iree-org/iree

基于 MLIR 的端到端机器学习编译器与运行时,将模型编译为多硬件平台原生代码。

Stars: 3629 | Forks: 854

# IREE: 中间表示执行环境

IREE (**I**ntermediate **R**epresentation **E**xecution **E**nvironment,发音为 "eerie") 是一个基于 [MLIR](https://mlir.llvm.org/) 的端到端编译器和运行时,它将机器学习 (ML) 模型降低为统一的 IR,既能向上扩展以满足数据中心的需求,也能向下缩减以满足移动和边缘部署的约束及特殊考量。 请访问 [我们的网站](https://iree.dev/) 获取项目详情、用户指南以及从源代码构建的说明。 [![IREE Discord 状态](https://discordapp.com/api/guilds/689900678990135345/widget.png?style=shield)]([https://discord.gg/wEWh6Z9nMU](https://discord.gg/wEWh6Z9nMU)) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit) [![OpenSSF 最佳实践](https://www.bestpractices.dev/projects/8738/badge)](https://www.bestpractices.dev/projects/8738) ## 项目新闻 * 2025-04-02: [AMD 向 MLPerf 基准测试套件提交了基于 IREE 的 SDXL 实现](https://rocm.blogs.amd.com/artificial-intelligence/mi325x-accelerates-mlperf-inference/README.html#stable-diffusion-xl-sdxl-text-to-image-mlperf-inference-benchmark) * 2024-05-23: [IREE 作为沙箱阶段项目加入 LF AI & Data 基金会](https://lfaidata.foundation/blog/2024/05/23/announcing-iree-a-new-initiative-for-machine-learning-deployment/) ## 项目状态 ### 发布状态 发布说明已[在 GitHub releases 上发布](https://github.com/iree-org/iree/releases?q=prerelease%3Afalse)。 | 软件包 | 发布状态 | | -- | -- | GitHub release (稳定版) | [![GitHub Release](https://img.shields.io/github/v/release/iree-org/iree)](https://github.com/iree-org/iree/releases/latest) GitHub release (每日构建) | [![GitHub Release](https://img.shields.io/github/v/release/iree-org/iree?include_prereleases)](https://github.com/iree-org/iree/releases) `iree-base-compiler` | [![PyPI version](https://badge.fury.io/py/iree-base-compiler.svg)](https://pypi.org/project/iree-base-compiler) `iree-base-runtime` | [![PyPI version](https://badge.fury.io/py/iree-base-runtime.svg)](https://pypi.org/project/iree-base-runtime) 有关发布流程的更多详情,请参阅 https://iree.dev/developers/general/release-management/。 ### 构建状态 [![CI](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/6af1b3879c232330.svg)](https://github.com/iree-org/iree/actions/workflows/ci.yml?query=branch%3Amain+event%3Apush) [![PkgCI](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/ce680954c4232333.svg)](https://github.com/iree-org/iree/actions/workflows/pkgci.yml?query=branch%3Amain+event%3Apush) #### 每夜构建状态 | 操作系统 | 构建状态 | | -- | --: | Linux | [![CI - Linux arm64 clang](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/e71108e626232334.svg)](https://github.com/iree-org/iree/actions/workflows/ci_linux_arm64_clang.yml?query=branch%3Amain+event%3Aschedule) macOS | [![CI - macOS x64 clang](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/4cd4ee9b2a232335.svg)](https://github.com/iree-org/iree/actions/workflows/ci_macos_x64_clang.yml?query=branch%3Amain+event%3Aschedule) macOS | [![CI - macOS arm64 clang](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/2a7d6f4961232337.svg)](https://github.com/iree-org/iree/actions/workflows/ci_macos_arm64_clang.yml?query=branch%3Amain+event%3Aschedule) 完整的工作流列表请参阅 https://iree.dev/developers/general/github-actions/。 ## 沟通渠道 * [GitHub issues](https://github.com/iree-org/iree/issues): 功能请求、错误及其他工作追踪 * [IREE Discord 服务器](https://discord.gg/wEWh6Z9nMU): 与核心团队和协作者进行的日常开发讨论 * (新) [iree-announce 邮件列表](https://lists.lfaidata.foundation/g/iree-announce): 公告 * (新) [iree-technical-discussion 邮件列表](https://lists.lfaidata.foundation/g/iree-technical-discussion): 通用及低优先级讨论 * (旧) [iree-discuss 邮件列表](https://groups.google.com/forum/#!forum/iree-discuss): 公告、通用及低优先级讨论 ### 相关项目渠道 * [LLVM Discourse 中的 MLIR 主题](https://llvm.discourse.group/c/llvm-project/mlir/31): IREE 依赖于并大量使用了 [MLIR](https://mlir.llvm.org)。在某些 MLIR 讨论中有时会提及 IREE。如果您也对 MLIR 的演进感兴趣,这会很有用。 ## 架构概览 ![IREE Architecture](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/9f31c66d89232340.svg) ![IREE Architecture](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/864536822a232342.svg) 访问 [我们的网站](https://iree.dev/) 了解更多信息。 ## 演讲与访谈 社区会议录像: [IREE YouTube 频道](https://www.youtube.com/@iree4356) 日期 | 标题 | 录像 | 幻灯片 ---- | ----- | --------- | ------ 2025-06-10 | Data-Tiling in IREE: Achieving High Performance Through Compiler Design (AsiaLLVM) | [录像](https://www.youtube.com/watch?v=iANJWUL_SOo) | [幻灯片](https://llvm.org/devmtg/2025-06/slides/technical-talk/wang-data-tilling.pdf) 2025-05-17 | Introduction to GPU architecture and IREE's GPU CodeGen Pipeline | [录像](https://www.youtube.com/watch?v=9Fy2jxj0ARE) | [幻灯片](https://drive.google.com/file/d/1xbABUy3kQxxBzOUb3WjBOFCSY_sQYdGo/view) 2025-02-12 | The Long Tail of AI: SPIR-V in IREE and MLIR (Vulkanised) | [录像](https://youtu.be/0zwfc6UkxeE) | [幻灯片](https://www.vulkan.org/user/pages/09.events/vulkanised-2025/T12-Jakub-Kuderski-AMD-IREE-MLIR.pdf) 2024-10-01 | Unveiling the Inner Workings of IREE: An MLIR-Based Compiler for Diverse Hardware | [录像](https://www.youtube.com/watch?v=a3T74I9gGH8) | 2021-06-09 | IREE Runtime Design Tech Talk | [录像](https://drive.google.com/file/d/1p0DcysaIg8rC7ErKYEgutQkOJGPFCU3s/view) | [幻灯片](https://drive.google.com/file/d/1ikgOdZxnMz1ExqwrAiuTY9exbe3yMWbB/view?usp=sharing) 2020-08-20 | IREE CodeGen (MLIR Open Design Meeting) | [录像](https://drive.google.com/file/d/1325zKXnNIXGw3cdWrDWJ1-bp952wvC6W/view?usp=sharing) | [幻灯片](https://docs.google.com/presentation/d/1NetHjKAOYg49KixY5tELqFp6Zr2v8_ujGzWZ_3xvqC8/edit) 2020-03-18 | Interactive HAL IR Walkthrough | [录像](https://drive.google.com/file/d/1_sWDgAPDfrGQZdxAapSA90AD1jVfhp-f/view?usp=sharing) | 2020-01-31 | End-to-end MLIR Workflow in IREE (MLIR Open Design Meeting) | [录像](https://drive.google.com/open?id=1os9FaPodPI59uj7JJI3aXnTzkuttuVkR) | [幻灯片](https://drive.google.com/open?id=1RCQ4ZPQFK9cVgu3IH1e5xbrBcqy7d_cEZ578j84OvYI) ## 许可证 IREE 根据包含 LLVM 例外的 Apache 2.0 许可证条款授权。 有关更多信息,请参阅 [LICENSE](LICENSE)。
标签:AMD, Apex, DNS解析, IREE, LLVM, MLIR, ROCm, Vectored Exception Handling, 中间表示, 人工智能, 代码生成, 嵌入式系统, 开源项目, 异构计算, 张量计算, 数据中心, 机器学习, 模型优化, 模型部署, 深度学习, 渗透测试工具, 用户模式Hook绕过, 移动端推理, 编译器, 边缘计算, 运行时环境, 逆向工具, 高性能计算