Module circuit_toml

Module circuit_toml 

Source
Expand description

2026-09-28: The kernels/circuits/<arch>.toml schema: block templates, the layout rule that maps a model’s layer kinds to templates, and the typed load errors.

Owner: metrale-circuit. Invariants:

  • Every edge states its format and its shape ("n x hidden"); nothing defaults.
  • Loading is fail-fast: the first unknown op, dangling or duplicate edge, format no consumer accepts, or template/layout mismatch is returned as a CircuitError.

Enums§

CircuitError
2026-09-28: Why a circuit did not load or instantiate.
LayoutRule
2026-09-28: The layer-kind rule a circuit declares.

Functions§

includes_of
2026-09-28: The block libraries a circuit TOML includes, in its order, so the caller knows which files to read.