Expand description
Single-file artifact format for modelc.
Format layout (version 2):
- Magic: “MODELC” (6 bytes)
- Version: u32 LE (4 bytes)
- Flags: u32 LE (4 bytes) — bit 0 = zstd compressed data blob
- Header length: u64 LE (8 bytes)
- Header JSON (header_length bytes)
- Tensor data blob (concatenated raw or zstd-compressed bytes)
Structs§
Functions§
- export_
to_ safetensors - Export a
.modelcartifact to a Safetensors file. - pack
- Pack a
Modelinto a.modelcartifact file with optional compression. - read_
header - Read only the JSON header from a
.modelcartifact without loading tensor data. - unpack
- Unpack a
.modelcartifact file into aModel. - verify
- Verify a
.modelcartifact file integrity without fully unpacking tensors.