Skip to content

Commit

Permalink
Use HybridMesh
Browse files Browse the repository at this point in the history
  • Loading branch information
jonb377 committed Jul 24, 2023
1 parent 3799ac9 commit 7b90ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pytorch/language-modeling/run_clm.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def main():
max_dim = np.argmax(param.shape)
shape = [1] * len(param.shape)
shape[max_dim] = num_devices
mesh = xs.Mesh(device_ids, tuple(shape))
mesh = xs.HybridMesh(ici_mesh_shape=tuple(shape))
xs.mark_sharding(param, mesh, range(len(param.shape)))


Expand Down

0 comments on commit 7b90ea5

Please sign in to comment.