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

Add a requirements file for multi-backend cuda #472

Merged
merged 1 commit into from
Jul 16, 2023

Conversation

mattdangerw
Copy link
Member

@mattdangerw mattdangerw commented Jul 13, 2023

Not totally sure if we should merge this now, or wait for tf 2.14, but figured I could put it up anyway so people could use it. With tensorflow/tensorflow#59825 tf-nightly can be installed using cuda pip packages. Which means we can write a recipe for cross framework GPU support.

To install a local development version...

pip install -r requirements-cuda.txt
python pip_build.py --install

To install the official pip version...

pip install -r requirements-cuda.txt
pip install keras-core --no-deps

Note that --no-deps is required to avoid pulling in tensorflow and tf-nightly at the same time.

This should work in a clean python env, as long nvidia drivers are >= 520. No conda or cuda shenanigans required!

@fchollet
Copy link
Member

Thanks! This is great. I actually edited the requirements.txt earlier, please fix the conflicts.

Not totally sure if we should merge this now, or wait for tf 2.14, but
figured I could put it up anyway so people could use it. With
tensorflow/tensorflow#59825
tf-nightly can be installed using cuda pip packages. Which means we
can write a recipe for cross framework GPU support.

To install a local development version...
```shell
pip install -r requirements-cuda.txt
python pip_build.py --install
```

To install the official pip version...
```shell
pip install -r requirements-cuda.txt
pip install keras-core --no-deps
```

Note that `--no-deps` is required to avoid pulling in `tensorflow` and
`tf-nightly` at the same time.

This should work in a clean python env, as long nvidia drivers are
>=520.61.05. No conda or cuda shenanigans required!
@fchollet fchollet merged commit 5b27c15 into keras-team:main Jul 16, 2023
1 of 5 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.

2 participants