-
Notifications
You must be signed in to change notification settings - Fork 1
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
Migrate to Keras 3 #40
Comments
Migrating to Keras 3 should be relatively easy if we plan to stick to tensorflow as backend. On the other hand, if we want to make our library backend-agnostic, we would have to make quite some changes to the codebase. I see mainly four options at this point. 1. Stick to tensorflow as backendPros: less work, less chance of breaking stuff with the rest of mlpp; we just need to adapt 2. Tensorflow probability with JAX backend (via jax substrate)Pros: we use JAX as backend, which is faster and easier to use to implement new methods; still requires only few adjustments to the codebase (all parts that are tensorflow [not tensorflow probability] related) 3. Multi-backendGoing "multi-backend" for me means we could integrate parts of code written in different frameworks, and change the Pros: we can pick the best framework to develop specific models; everyone can work with their favourite framework; we can take existing implementations of some models and integrate them easily without translating to another framework 4. Backend agnosticAnother option would be to make everything truly backend agnostic by just relying on Keras ops. The problem here is that most statistical tools we find in e.g. tensorflow probability or torch (for instance distributions) are missing and would need to be implemented. Pros: truly integrates the whole Keras 3 ML infrastructure; consistent API |
Migrating to Keras 3 is not currently possible while using TensorFlow Probability, as the two are incompatible as of TFP version 0.24.0: TensorFolow Probability releases |
In this gist I showcase how we could use |
Migrate library to use Keras 3 https://keras.io/keras_3/
The text was updated successfully, but these errors were encountered: