MCPcopy Create free account
hub / github.com/ml-explore/mlx / sharding

Method sharding

python/tests/mlx_distributed_tests.py:281–287  ·  view source on GitHub ↗
(path, weight)

Source from the content-addressed store, hash-verified

279 return x
280
281 def sharding(path, weight):
282 parts = path.split(".")
283 even = int(parts[1]) % 2 == 0
284 if even:
285 return 0
286 else:
287 return -1 if parts[-1] != "bias" else None
288
289 mod = nn.Sequential(
290 MyConv(3, 128, kernel_size=3),

Callers

nothing calls this directly

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected