Diagnostics API¶
The stable diagnostics API is mlx_lattice.backend_info(). It reports
compiled extension metadata, version information, and backend capability
strings. Use it to verify that the native module imported successfully or to
attach environment details to bug reports.
Capability keys are diagnostic booleans:
cpuThe native CPU semantic backend is compiled.
metalMetal kernels and the package metallib are available to the extension.
mlirThe extension was built with native MLIR artifact execution bindings. Published macOS wheels are expected to report
True.Falsedoes not mean the artifact contract is unavailable; it means this install can save/load artifact bundles and may validate withlattice-opt, but cannot compilegraph.mlirinto aLatticeProgramin-process.
backend_info() does not select routes. Public operations still dispatch
from the active MLX device, input dtype, relation metadata, shape predicates,
and available backend kernels.
The underscored mlx_lattice._native module is an implementation module.
Do not import it from application code.