Expand description
§cortex-hybrid
Backend-neutral ANN stage layer plus a deterministic Vec<f32> reference
backend for hybrid ANN/SNN research. Checkpoint parsing stays in
engram-parser. Placement and session orchestration stay in
hybrid-fusion. External ML engines are optional adapters, not core types.
§Modules
| Module | Role |
|---|---|
stage | Backend-neutral ANN stage contracts; stage::ReferenceExecutor is the reference backend |
adapter | External-adapter capability contract, plus optional Candle AnnExecutor |
tensor | Reference-backend Tensor, fallible construction, core ops |
transformer | Reference-backend transformer blocks |
moe | Reference-backend MoE routing; checkpoints come from engram-parser 0.3.0 |
snn | SNN execution contract + optional crate-backed adapters |
types | Shared types used by moe |
error | CortexError unified error type |
Panic-style constructors and ops (Tensor::from_vec, ops::matmul, …)
remain as pre-1.0 compatibility wrappers. New code should use
Tensor::try_from_vec and the try_* functions in crate::tensor::ops.
Re-exports§
pub use error::CortexError;pub use error::HybridError;pub use error::Result;pub use stage::AnnExecutor;pub use stage::AnnStage;pub use stage::AnnTopology;pub use stage::ReferenceExecutor;pub use stage::StageId;pub use stage::StageKind;pub use tensor::Tensor;
Modules§
- adapter
- External Rust ML adapter contract.
- error
- moe
- Public MoE router API. Checkpoint bytes come from
engram-parser0.3.0. - reference_
json - Bounded loading for untrusted reference-backend JSON fixtures.
- snn
- Backend-neutral SNN execution contract for ANN/SNN hybrid stages.
- stage
- Backend-neutral stage-execution contracts for ANN inference.
- tensor
- transformer
- types
- Minimal shared types used by the
moemodule.