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

Fix compatibility for earlier versions of Keras #1690

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

james77777778
Copy link
Collaborator

@james77777778 james77777778 commented Jul 10, 2024

I have added a new matrix of runners to test KerasNLP with Keras 3.1.0

Now the code should run flawlessly with Keras 3.1.0
(Keras 3.0.x failed due to the absence of the keras.tree API, and it is difficult to make it compatible).

However, quantization only works correctly with Keras >= 3.4.0 using DTypePolicyMap. Therefore, version checks have been included as well.

cc @fchollet @mattdangerw

EDITED:
All tests passed. If users are not using the quantization API, they can use any version of Keras from 3.1.0 to the latest.

@james77777778 james77777778 marked this pull request as ready for review July 10, 2024 06:06
@james77777778 james77777778 changed the title [WIP] Fix compatibility for Keras3.1.0 Fix compatibility for Keras3.1.0 Jul 10, 2024
@james77777778 james77777778 changed the title Fix compatibility for Keras3.1.0 Fix compatibility for Keras 3.1.0 to 3.4.* Jul 10, 2024
@james77777778 james77777778 force-pushed the fix-compatibility branch 3 times, most recently from 2f5600d to f7c40e3 Compare July 11, 2024 02:57
@james77777778 james77777778 changed the title Fix compatibility for Keras 3.1.0 to 3.4.* Fix compatibility for earlier versions of Keras Jul 11, 2024
Copy link
Member

@mattdangerw mattdangerw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@mattdangerw mattdangerw merged commit 360da5b into keras-team:master Jul 11, 2024
7 checks passed
@james77777778 james77777778 deleted the fix-compatibility branch July 11, 2024 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants