Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiyuLi-goog committed Dec 27, 2024
1 parent 85b7450 commit e4a31f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MaxText/tests/gpt3_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ def setUp(self):
)

self.cfg = pyconfig.config
self.rng = jax.random.PRNGKey(1234)

devices_array = max_utils.create_device_mesh(self.cfg)
mesh = Mesh(devices_array, self.cfg.mesh_axes)
Expand All @@ -84,6 +83,7 @@ def setUp(self):
"targets_segmentation": jnp.array([[1, 1, 1, 1, 0]], dtype=jnp.int32),
}
jax.config.update("jax_default_prng_impl", "threefry2x32")
self.rng = jax.random.PRNGKey(1234)
self.model_vars = init_random_model_vars(self.model, self.rng, self.example_batch)
jax.config.update("jax_default_prng_impl", "unsafe_rbg")

Expand Down

0 comments on commit e4a31f3

Please sign in to comment.