Skip to content

Commit f11dfae

Browse files
andersensamchanglan
authored andcommitted
Update Jax to 0.8.3
GitOrigin-RevId: 792d249
1 parent be07cd5 commit f11dfae

2 files changed

Lines changed: 4 additions & 27 deletions

File tree

axlearn/common/utils_spmd.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -95,28 +95,5 @@ def setup(
9595
# local_device_ids arg allows us to maintain expected behavior
9696
init_kwargs["local_device_ids"] = list(range(8))
9797

98-
# pylint: disable-next=import-outside-toplevel
99-
from jax._src.lib import _jax
100-
101-
if jax.__version__ == "0.8.2":
102-
# Jax-0.8.2 introduced a bug in https://github.com/openxla/xla/pull/35298
103-
# Client only sends one heartbeat within heartbeat_timeout,
104-
# so server might not receive a heartbeat
105-
# in time, and would consider the client dead.
106-
# The bug is fixed in https://github.com/openxla/xla/pull/35589 but not in jax-0.8.2
107-
# We patch the fix here, so client sends heartbeats twice within heartbeat_timeout.
108-
# TODO(ethanli): remove this hack.
109-
old = _jax.get_distributed_runtime_client
110-
111-
def f(*args, **kwargs):
112-
logging.info(
113-
"Reducing client heartbeat_timeout %s by half for a bug fix in jax-0.8.2",
114-
kwargs["heartbeat_timeout"],
115-
)
116-
kwargs["heartbeat_timeout"] = kwargs["heartbeat_timeout"] // 2
117-
return old(*args, **kwargs)
118-
119-
_jax.get_distributed_runtime_client = f
120-
12198
jax.distributed.initialize(**init_kwargs)
12299
_jax_distributed_initialized = True

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ core = [
2323
"absl-py==2.3.1",
2424
"chex==0.1.91",
2525
"importlab==0.8.1", # breaks pytype on 0.8
26-
"jax==0.8.2",
27-
"jaxlib==0.8.2",
26+
"jax==0.8.3",
27+
"jaxlib==0.8.3",
2828
"ml-dtypes==0.5.3",
2929
"msgpack==1.1.0", # for checkpointing.
3030
"nltk==3.7", # for text preprocessing
@@ -105,7 +105,7 @@ gcp = [
105105
# Note: Specify -f https://storage.googleapis.com/jax-releases/libtpu_releases.html during install.
106106
tpu = [
107107
"axlearn[gcp]",
108-
"jax[tpu]==0.8.2", # must be >=0.4.19 for compat with v5p.
108+
"jax[tpu]==0.8.3", # must be >=0.4.19 for compat with v5p.
109109
"pathwaysutils==0.1.2", # For JAX+Pathways single-controller accelerator coordinator.
110110
]
111111
# Vertex AI tensorboard. TODO(markblee): Merge with `gcp`.
@@ -131,7 +131,7 @@ dataflow = [
131131
# GPU custom kernel dependency.
132132
gpu = [
133133
"triton>=2.1.0",
134-
"jax[cuda12]==0.8.2",
134+
"jax[cuda12]==0.8.3",
135135
"nvidia-ml-py==12.560.30",
136136
# pin nccl version, otherwise jax[cuda12] will pull latest version
137137
"nvidia-nccl-cu12==2.27.5",

0 commit comments

Comments
 (0)