Skip to content

Commit eb3272c

Browse files
authored
Update distributed_device_mesh.rst
1 parent 3b23c0e commit eb3272c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes_source/distributed_device_mesh.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ users would not need to manually create and manage shard group and replicate gro
138138
# HSDP: MeshShape(2, 4)
139139
mesh_2d = init_device_mesh("cuda", (2, 4), mesh_dim_names=("dp_replicate", "dp_shard"))
140140
model = FSDP(
141-
ToyModel(), device_mesh=mesh_2d
141+
ToyModel(), mesh=mesh_2d
142142
)
143143
144144
Let's create a file named ``hsdp.py``.

0 commit comments

Comments
 (0)