Skip to content

fix: split jax[cuda] into separate CPU and CUDA dependency variants#453

Open
noahkhomer18 wants to merge 1 commit into
google-research:masterfrom
noahkhomer18:noahkhomer18-patch-1
Open

fix: split jax[cuda] into separate CPU and CUDA dependency variants#453
noahkhomer18 wants to merge 1 commit into
google-research:masterfrom
noahkhomer18:noahkhomer18-patch-1

Conversation

@noahkhomer18

Copy link
Copy Markdown

Fixes #443

@google-cla

google-cla Bot commented Jun 20, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@rajatsen91 rajatsen91 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM mostly with few comments.

Comment thread pyproject.toml

# GPU only (CUDA 12)
xreg-cuda = [
"jax[cuda12]",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can we just do jax[cuda] ?

Comment thread pyproject.toml

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the PR. We should update the install instructions. Also can you show any tests (existing or new) that covers that the installation works with and without gpu ?

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] jax[cuda] hardcoded in optional dependencies breaks install on CPU-only machines

2 participants