Skip to content

Gate jax[tpu] dependency behind a Linux platform marker - #2132

Open
howl-anderson wants to merge 1 commit into
google:mainfrom
howl-anderson:fix-tpu-dependency-of-jax-on-non-linux-platform
Open

Gate jax[tpu] dependency behind a Linux platform marker#2132
howl-anderson wants to merge 1 commit into
google:mainfrom
howl-anderson:fix-tpu-dependency-of-jax-on-non-linux-platform

Conversation

@howl-anderson

Copy link
Copy Markdown

Fixes #2047.

Implements option 2 as requested in #2047 (comment): keep jax[tpu] as a hard dependency on Linux (so downstream libraries like qwix, metrax, and orbax that reinstall JAX keep working in the nightly regression), and depend on plain jax on other platforms where libtpu ships no wheels.

Version constraints are unchanged on both branches (>=0.6.0,!=0.7.2,<0.11.1). On Linux (including TPU hosts and CI) the resolved dependency set is identical to before, so this is fully backward-compatible; on macOS the package becomes installable, and other non-Linux platforms no longer pull in the TPU runtime.

libtpu only ships Linux wheels, so the hard jax[tpu] dependency made
the package uninstallable on macOS and installed an unneeded TPU
runtime on other non-TPU platforms. Keep jax[tpu] on Linux and depend
on plain jax elsewhere, with the same version constraints.

Fixes google#2047
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.

Hard dependency on jax[tpu] blocks or degrades installation on all non-TPU platforms

2 participants