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

Added new dependency on keras_nlp #2419

Closed
wants to merge 4 commits into from
Closed

Added new dependency on keras_nlp #2419

wants to merge 4 commits into from

Conversation

VarunS1997
Copy link
Collaborator

What does this PR do?

Fixes #2400 by adding the keras_nlp and tensorflow_text dependencies as direct requirements for the keras_cv repo.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue? Please add a link
    to it if that's the case.
  • Did you write any new necessary tests?
  • If this adds a new model, can you run a few training steps on TPU in Colab to ensure that no XLA incompatible OP are used?

requirements-common.txt Outdated Show resolved Hide resolved
@smitlg
Copy link
Contributor

smitlg commented Apr 23, 2024

Shouldn't we have this here too?

setup.py Outdated Show resolved Hide resolved
Co-authored-by: Smit Lunagariya <[email protected]>
@@ -76,6 +76,7 @@ def is_pure(self):
"tensorflow-datasets",
"keras-core",
"kagglehub",
"keras_nlp",
Copy link
Collaborator

Choose a reason for hiding this comment

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

We will need to swap with keras_nlp_nightly if we are going to do this for nightly package.

Copy link
Collaborator

@sampathweb sampathweb Apr 27, 2024

Choose a reason for hiding this comment

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

Thinking again, this may be OK to add. But we don't want to add to requirements_common

@@ -4,6 +4,7 @@ regex
pandas
kagglehub
keras-core>=0.1.6
keras_nlp
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't want to add to reqirements_common. This will cause other issues since keras_nlp will install TF with it and we may want the GPU version. So lets keep keras_nlp out of requirements file.

@sampathweb
Copy link
Collaborator

@VarunS1997 - I needed to cut a release. So wrapped this into #2427. If that's good, we can close this PR?

@VarunS1997
Copy link
Collaborator Author

Agreed with @sampathweb and have approved the other PR. Thanks!

@VarunS1997 VarunS1997 closed this Apr 29, 2024
@divyashreepathihalli divyashreepathihalli deleted the bugfix/#2400 branch July 9, 2024 21:29
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.

Import keras_cv fails on current master
4 participants