Kevin Gleason
unread,Feb 14, 2024, 10:27:25 AMFeb 14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenXLA Discuss, Yingwei Zhang, Kevin Gleason, James Rubin, OpenXLA Discuss
> Given that HLO/MHLO is defined in XLA (I assume this is synonym to the Tensorflow version of XLA), and OpenXLA copied the IR definition and transformations from XLA
For some history, XLA used to be more tightly coupled to TF, and the goal of OpenXLA was to open source the XLA compiler for multi-framework / multi-hardware support and to build a community around it. The term OpenXLA generally refers to the (large) component that was refactored into a separate repo (
openxla/xla) as well as the tooling / input format (StableHLO) built around it. Now TF can be seen as taking a dependency on OpenXLA, which is where all development occurs.
> can I assume that the longer term vision in OpenXLA community is moving away from the XLA dependency and migrating existing HLO based transformations to StableHLO? [...] I am wondering whether StableHLO is designed for data exchange only or it can be used for internal transformation and optimizations.
No, this is not the plan of record. Some transformations are HLO/XLA-compiler specific and wouldn't make sense to move to StableHLO, which has non-XLA users. Other hawdware-agnostic transformations
may make sense to move, but only if they don't require MHLO/StableHLO round-tripping in the compilation pipeline (see the "Out of scope" section from
this post, and Geoffrey/Mehdi's comments from
this post for context), if compilation requires a specific ordering of passes in MHLO, we don't want to require a roundtrip. If using XLA, we currently recommend transformations go in MHLO. This is a piece of the story that
certainly needs some work in the future, but for now I'd say "StableHLO is designed for data exchange" is a more accurate statement.
Best,
Kevin