Skip to content

Commit e016efd

Browse files
committed
Fixes CPU Unit tests Jax 0.8.0 with Python 3.12
1 parent 9d7b1d9 commit e016efd

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

axlearn/common/state_builder_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ def test_truncation(self, strategy):
315315
strategy=strategy,
316316
)
317317
converter: PosEmbeddingConverter = cfg.instantiate(parent=None)
318-
319318
converted_state = converter.source_to_target(source_state, target_state)
320319
self.assertEqual(
321320
(1, 512, 32),

axlearn/common/t5_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def test_against_t5_encoder_decoder_model(self, arch):
342342
def test_pjit(self):
343343
# A simple test to ensure a train step does not leak tracers.
344344
mesh_shape = (1, 1)
345-
mesh_axes = ("data", "model")
345+
mesh_axes = ("fsdp", "model")
346346
devices = mesh_utils.create_device_mesh(mesh_shape)
347347
with jax.checking_leaks(), jax.sharding.Mesh(devices, mesh_axes):
348348
vocab_size = 6

axlearn/common/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ def pytest_addoption_atomic(parser, option, **kwargs):
727727
def mock_trainer_config(
728728
input_config: InstantiableConfig,
729729
model_config: BaseModel.Config,
730-
mesh_axis_names: Sequence[str] = ("data", "model"),
730+
mesh_axis_names: Sequence[str] = ("fsdp", "model"),
731731
) -> SpmdTrainer.Config:
732732
cfg = SpmdTrainer.default_config()
733733
cfg.name = "mock_trainer_config"

0 commit comments

Comments
 (0)