Skip to main content

Crate cortiq_core

Crate cortiq_core 

Source
Expand description

cortiq-core — CMF v2 container: types, tensor directory, masks, quant.

Format specification: docs/CMF_V2_SPEC.md.

Re-exports§

pub use format::build_sparse_index;
pub use format::CmfError;
pub use format::CmfHeader;
pub use format::CmfModel;
pub use format::SelectionDescriptor;
pub use format::SkillRecord;
pub use format::SparseIndexEntry;
pub use format::TensorEntry;
pub use format::TensorSpec;
pub use format::CMF_MAGIC;
pub use format::CMF_VERSION;
pub use hash::hash64;
pub use mask::MaskCatalog;
pub use mask::MaskDiff;
pub use mask::MaskPriority;
pub use mask::Quality;
pub use mask::TaskMask;
pub use types::ExecutionMode;
pub use types::LayerStats;
pub use types::LayerType;
pub use types::LinearCoreConfig;
pub use types::ModelArch;
pub use types::MoeConfig;
pub use types::MtpConfig;
pub use types::NormStyle;
pub use types::PerformanceMetrics;
pub use types::QuantType;
pub use types::SimdType;
pub use types::TensorDtype;

Modules§

format
CMF v2 binary container — envelope, tensor directory, mmap access.
hash
Per-tensor 64-bit hash — corruption detection for mmap’d weights and backbone-tensor dedup between skill files.
mask
Task mask management — per-task neuron/head/layer masks.
quant
Canonical quantization layouts and scalar dequantization.
types
Core types for CMF format.