Expand description
2026-09-30: The declarative config mapping of one architecture
(kernels/circuits/<arch>.config.toml): how a checkpoint’s config.json becomes the arch
shape a circuit instantiates under (layer kinds, dims) and the math parameters the kernels
read, with every key the config carries classified.
Owner: metrale-circuit. Invariants:
- PCND: every key of the mapped object is classified (a dim, a param, a required value, a nested object, or ignorable with a stated reason). An unclassified key is refused with its path; a math-changing key the circuit does not model is refused by its rule, never silently dropped.
- An absent key takes the default its rule states (the Hugging Face class default, cited in the TOML); a requirement applies to a present (or defaulted) value, and an absent key without a default is simply absent. A dim with no default is required.
- JSON
nullis absent.
Structs§
- Config
Map - 2026-09-30: A parsed config map.
- Mapped
Config - 2026-09-30: What a config maps to.
Enums§
- Config
MapError - 2026-09-30: Why a config did not map.
Functions§
- map_
config - 2026-09-30: Map
config(the wholeconfig.json) undermap.