commit | e6ff0b99c8ba6ade02a8a44f06f7920f7033133a | [log] [tgz] |
---|---|---|
author | Stanley Winata <68087699+raikonenfnu@users.noreply.github.com> | Thu Aug 29 07:05:18 2024 -0700 |
committer | GitHub <noreply@github.com> | Thu Aug 29 15:05:18 2024 +0100 |
tree | 5c5d19c6bc7d6e6dce5c1798222944c2d3c3dc65 | |
parent | dfaf12c1a56f1ff69bda1fdb7a42399eb1c9d96e [diff] |
[Codegen] Resolve constantOp with multiple layouts users. (#18354) Main motivation is to handle distribution of constantOp who has users with different layouts. Original use case is to ensure we can distribute attention when the tile size for M,K1,N is the same. Which means the init of 1st contract, and IV's init uses the same constantOp. Since constantOp can only hold a single layout, but multiple to_layout ops with different layouts, for each user, there will be non resolved to_layout op(s). only one of the to_layout op can be resolved properly, the rest would be a "non trivial" resolution since layouts are different. To solve this issue, we introduce a mechanism that detect these cases and make a copy of the arith.constant that get used by other users, when we are trying to resolve for the current constantOp. Signed-off-by: Stanley Winata <stanley.winata@amd.com>
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-compiler | |
Python iree-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.