quantax.utils.make_mesh#
- quantax.utils.make_mesh() Mesh#
Build the device mesh spanning all devices in
jax.devices().- Returns:
A
("process", "device")jax.sharding.Meshwhose two axes have sizesjax.process_count()andjax.local_device_count(), with both axes set to the automaticAxisType.Auto.
Note
The mesh is built directly from
jax.devices()reshaped to(process_count, local_device_count)rather than viajax.make_mesh().jax.make_meshrejects multi-slice topologies (raising on multi-host GPU since JAX 0.10), butjax.devicesis already process-major, so the reshape reproduces the same("process", "device")layout while supporting multi-node runs.