Skip to content

Commit cb46259

Browse files
lingvo-botcopybara-github
authored andcommitted
NamedSharding is the replacement **name** for MeshPspecSharding.
`MeshPspecSharding` (name) will be deprecated in some time. PiperOrigin-RevId: 489071485
1 parent e0fca38 commit cb46259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lingvo/jax/checkpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def _save_checkpoint_gda(train_state: train_states.TrainState,
444444

445445
@functools.lru_cache()
446446
def _cached_mesh_pspec_sharding(mesh, pspec):
447-
return sharding.MeshPspecSharding(mesh, pspec)
447+
return sharding.NamedSharding(mesh, pspec)
448448

449449

450450
def _restore_checkpoint_gda(

0 commit comments

Comments
 (0)