tessl install tessl/pypi-chex@0.1.0Comprehensive utilities library for JAX testing, debugging, and instrumentation
Agent Success
Agent success rate when using this tile
73%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.92x
Baseline
Agent success rate without this tile
38%
A utility for validating that arrays in distributed computations are properly sharded across devices.
@generates
def validate_sharding(tree_of_arrays):
"""
Validates that all arrays in a PyTree structure are properly sharded across devices.
Args:
tree_of_arrays: A JAX array or a PyTree (nested structure) containing JAX arrays
Returns:
bool: True if all arrays are properly sharded
Raises:
AssertionError: If any array in the structure is not properly sharded
"""
passProvides JAX testing utilities including array sharding validation.
@satisfied-by