$ the-wire · showcase
JAX removes dead Pallas flags and fixes removal errors
By RepoJournal · Filed · About Google
JAX cleaned up Pallas internals by removing two obsolete flags and a deprecated MemorySpace constant, while improving error messages for the APIs that remain.
Pallas deprecations got sharper. Accessing `MemorySpace.HOST` previously raised a generic `ValueError` because the deprecation was never registered in `jax/_src/deprecations.py`; the code now removes `pltpu-memory-space-host` entirely, since the API compatibility window has passed [1]. The `jax_pallas_use_mosaic_gpu` flag is also gone, as Mosaic GPU no longer supports `pl.pallas_call` [2].
MGpu tests and utilities were tidied in the same pass: `test_parity` drops a redundant condition around `tcgen05.fence`, which is a compiler-level directive, and `utils.py` loses a redundant check [3][4]. The change to removed Pallas APIs should now produce improved error messages [5].
Action items
- → Remove any references to pltpu-memory-space-host from your code and configs google/jax [immediate]
- → Drop any JAX config that sets jax_pallas_use_mosaic_gpu google/jax [immediate]
References
- [1] [pallas:mosaic] Removed `pltpu-memory-space-host` ↗ google/jax
- [2] [pallas:mgpu] Removed `jax_pallas_use_mosaic_gpu` ↗ google/jax
- [3] [mgpu] Remove unnecessary condition in `test_parity`. ↗ google/jax
- [4] [mgpu] Remove redundant check in `utils.py`. ↗ google/jax
- [5] Improved error messages for a few previously removed Pallas APIs ↗ google/jax