mlx.nn.layers.distributed.fully_shard#
- fully_shard(module: Module, *, group: Group | None = None, compute_dtype: Dtype | None = None) Module#
Wrap
modulein aFullyShardedModule.- 参数:
- 返回:
The wrapped
FullyShardedModule, ormoduleunchanged.
Wrap module in a FullyShardedModule.
The wrapped FullyShardedModule, or module unchanged.