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

KerasHub has mandatory dependency on tensorflow-text but it isn't mandatory #2101

Open
jamesmyatt opened this issue Feb 14, 2025 · 0 comments
Assignees

Comments

@jamesmyatt
Copy link

jamesmyatt commented Feb 14, 2025

Can tensorflow-text be removed as a mandatory dependency, please? e.g. move it to an optional dependency group, e.g. "nlp"

As far as I can tell, this dependency makes it impossible to either:

  • have a tensorflow-free environment
  • install KerasHub at all on Windows

Both of these seem to be contrary to Keras 3's mission, especially if you only want the CV parts of KerasHub.

Furthermore, the NoTensorflow integration tests show that it's acceptable to manually uninstall tensorflow and tensorflow-text after installing keras-hub. But it's not possible to never install them in the first place.

I think this was tolerable when this package was KerasNLP (e.g. #1585, keras-team/keras#19542), but now that it's KerasHub, it's a serious issue.

@jamesmyatt jamesmyatt changed the title KerasHub has mandatory dependency on tensorflow-text KerasHub has mandatory dependency on tensorflow-text but it isn't mandatory Feb 14, 2025
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

No branches or pull requests

2 participants