Skip to content

Conversation

rmarquis
Copy link
Contributor

@rmarquis rmarquis commented Aug 16, 2024

Compatibility was lost with Keras 3. This restore the functionality when using Keras 3.4.0 or newer.

What does this PR address?

Fixes #4921

Before submitting:

Compatibility was lost with Keras 3. This restore the functionality
when using Keras 3.4.0 or newer.

Fix #4921
@rmarquis rmarquis requested a review from a team as a code owner August 16, 2024 15:04
@rmarquis rmarquis requested review from bojiang and removed request for a team August 16, 2024 15:04
Copy link
Contributor

@aarnphm aarnphm left a comment

Choose a reason for hiding this comment

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

LGTM, is it possible to add a quick test for this?

@rmarquis
Copy link
Contributor Author

Sadly I'm not well versed enough in Python testing to provide an adequate test.
It seems there isn't any save_model test at the moment, so I was hoping it wouldn't be much of an issue to just provide the fix itself. Or maybe this is covered by the test_framework.py file?

If a test is absolutely necessary for this PR to be merged, I'd gladly take some pointers.

@aarnphm
Copy link
Contributor

aarnphm commented Aug 16, 2024

just need to update keras in noxfile.py to >3 or the minimum version required, then you should be good to go

@rmarquis
Copy link
Contributor Author

Gotcha, thanks! Keras 3.4 is the minimum version.

Copy link
Contributor

@aarnphm aarnphm left a comment

Choose a reason for hiding this comment

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

Thanks a bunch.

@aarnphm aarnphm merged commit afc8647 into bentoml:main Aug 17, 2024
50 of 51 checks passed
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.

bug: model saving and loading does not work with Keras 3.x model format
2 participants