LogicalTensor
What does this tensor mean?
For researchers
Identity, class, shape, logical operation, orientation, data type, and graph boundary: the semantic contract.
VOLUME I / ARCHITECTURE DEEP DIVE
Start with the plain-language path. Open the technical layers when you want the compiler contracts, data structures, and runtime boundaries.
Prism is a compiler and runtime for local AI deployment. A training system produces a model artifact. Prism analyzes it once, makes deployment decisions, seals those decisions into a ComputeImage, and executes that image on available hardware.
Prism separates concerns that model formats and runtimes often blend together.
What does this tensor mean?
Identity, class, shape, logical operation, orientation, data type, and graph boundary: the semantic contract.
How are its bits stored?
Codec, tile family, group axis, metadata, padding, alignment, and interleave: the storage and kernel ABI.
How does a lane consume it?
Lane, offsets, metadata ranges, repacking, and residency. Multiple views can derive from one physical layout.
Prism moves representation admission, layout planning, execution-view selection, residency, scheduling metadata, validation, and artifact sealing into compilation.
GGUF → ModelGraph → TensorAnalysis → CandidateCodecs → Admission → PhysicalLayout → ExecutionViews → PrismIR → PhysicalPlanning → ComputeImage
A ComputeImage is the boundary between compilation and execution. The runtime loads it without reconstructing deployment policy from the original model.
The CImage layout ABI makes logical identity, physical storage, and execution views independently inspectable. A target profile can select resident or mutually exclusive views without changing the logical graph.
Read the CImage ABI ↗Prism resolves an admitted view, establishes residency, schedules work, dispatches a backend, and records the outcome.
Canonical state owns accepted work, model identity, ownership, leases, committed state, and terminal outcomes. Caches, queues, backend handles, and projections remain derived or ephemeral.
Existing engines can be excellent execution backends. Prism makes a different architectural choice: representation admission, layout planning, execution views, residency, scheduling metadata, validation, and artifact sealing happen once during compilation.
Load model → derive strategy dynamically → dispatch
Compile policy → seal artifact → execute explicit plan
Apple Silicon compilation and Metal execution are the primary supported path. Linux CPU is under active hardening. ANE/Core ML and other targets have integration or planning surfaces at differing maturity; AMD, Intel, NVIDIA, Tenstorrent, and distributed execution remain development surfaces.
See current state ↗ Open the field guide ↗