Skip to main content

Module types

Module types 

Source
Expand description

v1 (APRN) container type definitions — sovereign leaf (issue #2231).

Moved out of aprender-core/src/format/ (types.rs + spec.rs). Uses crate::error::AprFormatError instead of aprender_core::AprenderError; aprender-core wraps these errors via impl From<AprFormatError> for AprenderError and re-exports the moved API so existing aprender_core:: format::* paths keep working unchanged.

Byte-identity (issue #2231): the field set and serde derives mirror the pre-extraction aprender-core types EXACTLY so the on-disk MessagePack metadata + bincode payload encodings are unchanged (the golden fixtures pin this for v1 F32).

Structs§

DistillationInfo
Complete distillation provenance (spec §6.3.2)
DistillationParams
Distillation hyperparameters (spec §6.3.2)
Flags
Feature flags (bitmask) — spec §3.2.
Header
File header (32 bytes).
LayerMapping
Layer mapping for progressive distillation (spec §6.3.2)
LicenseInfo
Commercial license information (spec §9.1).
Metadata
Model metadata (MessagePack-encoded).
ModelInfo
Model information (from inspection).
SaveOptions
Options for saving models.
TeacherProvenance
Teacher model provenance for audit trails (spec §6.3.2)
TrainingInfo
Training information.

Enums§

Compression
Compression algorithm.
DistillMethod
Distillation method used (spec §6.3.1)
LicenseTier
License tier levels (spec §9.1).
ModelType
Model type identifiers.

Constants§

FORMAT_VERSION
Current v1 format version (1.0).
HEADER_SIZE
v1 header size in bytes.
MAGIC
Magic number: “APRN” in ASCII (0x4150524E).
MAX_UNCOMPRESSED_SIZE
Maximum uncompressed size (1GB safety limit — compression-bomb protection).

Functions§

chrono_lite_now
Simple ISO 8601 timestamp (no chrono dependency).