commit | 2bfc639d4258a9a89440da5fbfa466872341ae2f | [log] [tgz] |
---|---|---|
author | Ian Wood <ianwood2024@u.northwestern.edu> | Tue Nov 12 07:52:05 2024 -0800 |
committer | GitHub <noreply@github.com> | Tue Nov 12 07:52:05 2024 -0800 |
tree | 5b16f8c2d2e37c88733db15f52d02e465dcf645b | |
parent | e8f755d20720f4a1ec4ea6dc28a9cc2846a4dacb [diff] |
[DispatchCreation] Collapse `iree_linalg_ext.attention` (#19012) This change adds support for attention in `CollapseDimensionsPass` so that the attention op will be collapsed as much as possible. This is motivated by reducing the different variants of attention that the sdxl attention spec has to handle. Changes to LinalgExt/Transforms/ReshapeFusion.cpp are mostly taken directly from https://github.com/llvm/llvm-project/blob/002a0a27bc4702d6f34434c1838cb1698a0b0098/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp (attributed at the top of the file). I attempted to keep not modify the original logic as much as possible to keep it general in case it needs to be reused for other `LinalgExt` ops. --------- Signed-off-by: Ian Wood <ianwood2024@u.northwestern.edu>
IREE (Intermediate Representation Execution Environment, pronounced as “eerie”) is an MLIR-based end-to-end compiler and runtime that lowers Machine Learning (ML) models to a unified IR that scales up to meet the needs of the datacenter and down to satisfy the constraints and special considerations of mobile and edge deployments.
See our website for project details, user guides, and instructions on building from source.
IREE is still in its early phase. We have settled down on the overarching infrastructure and are actively improving various software components as well as project logistics. It is still quite far from ready for everyday use and is made available without any support at the moment. With that said, we welcome any kind of feedback on any communication channels
Package | Release status |
---|---|
GitHub release (stable) | |
GitHub release (nightly) | |
Python iree-base-compiler | |
Python iree-base-runtime |
Host platform | Build status |
---|---|
Linux | |
macOS | |
Windows |
For the full list of workflows see https://iree.dev/developers/general/github-actions/.
See our website for more information.
Community meeting recordings: IREE YouTube channel
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.