Skip to content

Commit a8d7a81

Browse files
committed
stop overriding JAX GPU memory preallocation
1 parent 4571bff commit a8d7a81

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# keras3 (development version)
22

3+
- On Linux, `use_backend("jax", gpu = TRUE)` no longer overrides
4+
`XLA_PYTHON_CLIENT_MEM_FRACTION`, preserving the JAX default or a
5+
user-provided value.
6+
37
# keras3 1.5.1
48

59
- `use_backend("jax")` on macOS now defaults to `gpu = FALSE`, so `jax-metal`

R/install.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ use_backend <- function(backend, gpu = NA) {
245245
gpu <- has_gpu()
246246

247247
if (gpu) {
248-
Sys.setenv("XLA_PYTHON_CLIENT_MEM_FRACTION" = "1.00")
249248
py_require(c("jax[cuda12]!=0.6.1"))
250249
} else {
251250
py_require(c("jax[cpu]"))

0 commit comments

Comments
 (0)