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

Merge keras-nlp to keras avoid verison problem #1649

Open
markileala opened this issue May 23, 2024 · 3 comments
Open

Merge keras-nlp to keras avoid verison problem #1649

markileala opened this issue May 23, 2024 · 3 comments
Assignees

Comments

@markileala
Copy link

markileala commented May 23, 2024

Is your feature request related to a problem? Please describe.

pip get wrong keras-nlp version when install with tensorflow

my Dockerfile:

FROM python
RUN pip install tensorflow[and-cuda] keras_nlp keras_cv graphviz pydot jupyterlab pillow matplot

after docker build image, keras-nlp 0.0.0 will be installed, but latest version expected:

pip list | grep keras
keras 3.3.3
keras-core 0.1.7
keras-cv 0.9.0
keras-nlp 0.0.0

Describe the solution you'd like

merged keras-nlp into keras. [ keras, keras-nlp, tensorflow ] three package version will have consistency.

@chunduriv
Copy link
Collaborator

chunduriv commented May 23, 2024

@markileala,

pip get wrong keras-nlp version when install with tensorflow

I have tried using colab and it picks the latest version of keras-nlp.

!pip list | grep keras

keras                            3.3.3
keras-core                       0.1.7
keras-cv                         0.9.0
keras-nlp                        0.12.0
tf_keras                         2.15.1

Please find attached gist.

@markileala
Copy link
Author

I found the reason.

tensorflow-text has no distribution for python3.12. colab has Python 3.10.12 installed. It not expose the proplem.

# docker run -it python:latest pip install keras-nlp  # python:latest == Python 3.12.3
... 

INFO: pip is looking at multiple versions of keras-nlp to determine which version is compatible with other requirements. This could take a while.
Collecting keras-nlp
  Downloading keras_nlp-0.12.0-py3-none-any.whl.metadata (6.8 kB)
  Downloading keras_nlp-0.11.1-py3-none-any.whl.metadata (6.8 kB)
  Downloading keras_nlp-0.11.0-py3-none-any.whl.metadata (6.8 kB)
  Downloading keras_nlp-0.10.0-py3-none-any.whl.metadata (7.0 kB)
  Downloading keras_nlp-0.9.3-py3-none-any.whl.metadata (7.0 kB)
  Downloading keras_nlp-0.9.2-py3-none-any.whl.metadata (7.0 kB)
  Downloading keras_nlp-0.9.1-py3-none-any.whl.metadata (7.0 kB)
INFO: pip is still looking at multiple versions of keras-nlp to determine which version is compatible with other requirements. This could take a while.
  Downloading keras_nlp-0.9.0-py3-none-any.whl.metadata (7.0 kB)
  Downloading keras_nlp-0.8.2-py3-none-any.whl.metadata (7.0 kB)
  Downloading keras_nlp-0.8.1-py3-none-any.whl.metadata (7.0 kB)
  Downloading keras_nlp-0.8.0-py3-none-any.whl.metadata (7.0 kB)
  Downloading keras_nlp-0.7.0-py3-none-any.whl.metadata (7.0 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
  Downloading keras_nlp-0.6.4-py3-none-any.whl.metadata (8.5 kB)
  Downloading keras_nlp-0.6.3-py3-none-any.whl.metadata (7.2 kB)
  Downloading keras_nlp-0.6.2-py3-none-any.whl.metadata (7.2 kB)
  Downloading keras_nlp-0.6.1-py3-none-any.whl.metadata (7.2 kB)
  Downloading keras_nlp-0.6.0-py3-none-any.whl.metadata (5.7 kB)
  Downloading keras_nlp-0.5.2-py3-none-any.whl.metadata (5.7 kB)
  Downloading keras_nlp-0.5.1-py3-none-any.whl.metadata (5.7 kB)
  Downloading keras_nlp-0.5.0-py3-none-any.whl.metadata (5.7 kB)
  Downloading keras_nlp-0.4.1-py3-none-any.whl.metadata (5.9 kB)
  Downloading keras_nlp-0.4.0-py3-none-any.whl.metadata (6.4 kB)
Collecting tensorflow (from keras-nlp)
  Downloading tensorflow-2.16.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.3 kB)
Collecting keras-nlp
  Downloading keras_nlp-0.3.1-py3-none-any.whl.metadata (5.2 kB)
  Downloading keras_nlp-0.3.0-py3-none-any.whl.metadata (5.1 kB)
  Downloading keras_nlp-0.2.0-py3-none-any.whl.metadata (4.8 kB)
  Downloading keras_nlp-0.1.1-py3-none-any.whl.metadata (4.3 kB)
  Downloading keras_nlp-0.1.0-py3-none-any.whl.metadata (4.3 kB)
  Downloading keras_nlp-0.0.2-py3-none-any.whl.metadata (712 bytes)
...


# docker run -it python:latest pip install tensorflow-text

ERROR: Could not find a version that satisfies the requirement tensorflow-text (from versions: none)
ERROR: No matching distribution found for tensorflow-text

Copy link

github-actions bot commented Jun 8, 2024

This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants