协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
equinox【开发与工程】Operating skill for the Equinox JAX neural-network and PyTree library.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Equinox is a JAX library for building models as PyTrees, applying filtered JAX transformations, and using reusable neural-network layers, stateful modules, and advanced debugging utilities.
Use this skill when the user mentions:
equinox, eqx, eqx.Module, or equinox.nnfilter_jit, filter_grad, filter_vmap, or
filter_pmapSequential, MLP, BatchNorm, State, Shared, or inference_modeequinox.internal helpers such as noinline, while_loop, or scanInstall the public package with:
pip install equinox
For a local checkout or a health check, run the bundled scripts/smoke.py
from the generated skill root (the directory containing this SKILL.md). Set
EQUINOX_SKILL_ROOT to that absolute directory and keep it as the command
working directory:
cd "$EQUINOX_SKILL_ROOT" && python scripts/smoke.py --mode all
If you need multi-device CPU coverage for pmap or sharding checks, add
--two-cpu-devices to the smoke script.
sub-skills/module-and-treesUse for eqx.Module, field declarations, abstract attributes, PyTree filtering,
tree_at, tree_equal, tree_check, apply_updates, Partial, and model
surgery.
sub-skills/filtered-transformationsUse for filter_jit, filter_grad, filter_vmap, filter_pmap, filter_eval_shape,
filter_make_jaxpr, custom filtered AD, checkpointing, callbacks, and sharding
behavior.
sub-skills/nn-and-stateUse for equinox.nn layers, Sequential, Lambda, MLP, BatchNorm,
State, StateIndex, Shared, and inference-mode workflows.
sub-skills/diagnostics-and-serializationUse for tree_serialise_leaves, tree_deserialise_leaves, runtime errors,
debug tools, pretty printing, enumerations, progress meters, and package
troubleshooting.
sub-skills/internal-advancedUse only for advanced or downstream-library work with equinox.internal,
including noinline, while_loop, scan, nontraceable, finalise_jaxpr,
and primitive authoring helpers.
module-and-trees.filtered-transformations.nn-and-state.diagnostics-and-serialization.equinox.internal or an advanced helper that is
not part of the everyday public API, start with internal-advanced.references/api-reference.md when you need a cross-skill API index.references/troubleshooting.md when the issue looks like install/import,
backend, optional dependency, or mixed-leaf JAX behavior. Read references/repo-provenance.md
before relying on version-sensitive guidance.jax.jit or jax.grad call fails because a model contains non-array
leaves: route to filtered-transformations.module-and-trees.state or axis_name, or Sequential has a stateful layer:
route to nn-and-state.diagnostics-and-serialization.noinline, while_loop, scan, or other semi-public
helpers: route to internal-advanced.