{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/6"},{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/3"}],"enrichment":{"capability":"Chex provides utilities for writing reliable JAX code, including assertions for tensor properties, debugging helpers, and test variants to validate code across different JAX execution modes.","skillfed_tags":["jax-ecosystem","numerical-validation"],"use_cases":["Add shape and dtype validation to JAX functions to catch dimension mismatches before they propagate through a training loop.","Test the same JAX code path under both jitted and non-jitted execution to verify correctness across compilation modes.","Detect unintended JIT re-tracing that causes performance degradation by asserting maximum trace counts.","Validate that model parameters remain finite during training with custom error messages.","Create JAX-compatible dataclasses that work seamlessly with tree operations."],"what_it_does":"Chex is a testing and debugging library for JAX code that bridges the gap between Python's type system and JAX's array constraints. It provides shape, rank, dtype, and device assertions that work within JAX's tracing model, along with utilities to test code across variants (jitted vs non-jitted execution). The library also includes JAX-compatible dataclass implementations and helpers to detect unintended function re-tracing during JIT compilation.\n\nThe package is built on top of jax, jaxlib, numpy, and related dependencies. It's designed for machine learning practitioners and researchers who need to catch shape mismatches, type errors, and numerical issues early in development. Assertions can be customized with exception types and messages, and value assertions (those requiring actual tensor values) are supported within jitted functions via the chex.chexify() decorator.","worth_installing":"Yes. Chex is actively maintained, has no known vulnerabilities, and provides essential utilities for JAX development. The low install friction, permissive license, and focus on catching common JAX pitfalls make it a practical addition to any JAX project. Install it if you write JAX code and want better visibility into shape, dtype, and execution-mode issues."},"id":"chex","links":{"html":"https://skillfed.io/packages/chex","md":"https://skillfed.io/packages/chex.md","pypi":"https://pypi.org/project/chex/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-12","license_spdx":null,"license_treatment":"permissive","name":"chex","python_support":"supports_current","summary":"Chex: Testing made fun, in JAX!"},"popularity":{"monthly_downloads":2315756,"position":3144,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.1.92"}
