Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for StableHLO generation with JAX backend #26

Open
ashutosh-arm opened this issue Sep 6, 2023 · 2 comments
Open

Support for StableHLO generation with JAX backend #26

ashutosh-arm opened this issue Sep 6, 2023 · 2 comments

Comments

@ashutosh-arm
Copy link

ashutosh-arm commented Sep 6, 2023

System information.

TensorFlow version (you are using): N/A
Are you willing to contribute it (Yes/No): Not immediately.

Describe the feature and the current behavior/state.

In some of the Keras Core examples JAX backend has been used. IIUC this flow uses jitting via XLA. Here I assume that the lowering must generate StableHLO as an IR before its consumed by XLA. If this is truly the case, is it viable to produce StableHLO while using JAX as the backend? It will be useful for compiling the same model using IREE instead of XLA.

Existing flow: Keras Core model --> JAX.JIT (XLA)
Desired flow: Keras Core model --> JAX.JIT --> Side outputs is StableHLO --> IREE

Will this change the current api? How?

I am not sure.

Who will benefit from this feature?

IREE users.

Contributing

  • Do you want to contribute a PR? (yes/no): no
  • If yes, please read this page for instructions
  • Briefly describe your candidate solution(if contributing):
@divyashreepathihalli
Copy link
Contributor

Thanks for filing the issue. We have model.export support right now. We plan on adding support for Onnx support and stableHLO support in the future.

@ashutosh-arm
Copy link
Author

ashutosh-arm commented Sep 11, 2023

Is the export support capable of generating PyTorch and JAX programs from the original Keras Core models?

@sachinprasadhs sachinprasadhs transferred this issue from keras-team/keras Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants