Lithic: 836 tests · 21 designs

Strata & the feedback loop / 2 of 21

Strata: from graph to numbers

The tensor graph, capability-driven partitioning, CPU reference backend and host execution in the Ferrite monorepo.

Builds on Lithic ↔ Strata

A graph to run, not a circuit to elaborate

Strata is Ferrite's vendor-neutral accelerator runtime. Its graph describes tensor operations, dtypes and shapes. Lithic's graph describes bit widths, registers and clock edges. Keeping those contracts distinct avoids pretending that a model graph is already a hardware implementation.

Four crates, one workspace

CrateResponsibility
ferrite-strataTensor graph, arena, capabilities, backend traits and partitioning
ferrite-strata-cpuReference CPU kernels and correctness baseline
ferrite-strata-runtimeSession registration, planning, compilation and execution
ferrite-strata-plugin-apiVersioned C vtable, wire format and host-side dynamic loader

The CPU reference defines expected numerical behaviour for supported operations. It is not evidence of hardware speedup. Plugin-boundary code exists, but that does not establish production vendor compatibility.

From graph to numbers

  1. Construct a tensor graph using GraphBuilder.
  2. Register backends in a runtime Session.
  3. Query declared capabilities and partition the graph into supported subgraphs.
  4. Ask each selected backend to compile its subgraph.
  5. Execute compiled partitions and host fallback in the shared arena.

Decline is normal. A backend can refuse compilation without treating an unsupported pattern as a fatal execution failure. Host fallback runs supported reference operations where no accelerator takes the work; it is not a promise that arbitrary unknown operations have a CPU implementation.

Inspect the implementation

Current boundary

Inference is the target; training is not. CubeCL, the PyTorch entry point and a Lithic hardware backend are not implemented. Read the backend boundary before assuming that sharing a workspace also means sharing a device-execution path.