Skip to main content

tufazip_prior/
lib.rs

1//! Quantized prior weight archive (`QPI1`, `QPR1`, `LRA1`, `QLA1`) reader, writer, and validator.
2//!
3//! Ported from `read_tensor_archive`, `load_depth_prior`, and helper functions in `nn.py`.
4
5mod archive;
6mod error;
7
8pub use archive::{
9    depth_block_mapping, parse_block_schedule, plan_depth_prior, read_archive, sha256_file,
10    validate_block_schedule, write_archive, ArchiveMagic, ArchiveMetadata, BitWidth,
11    DequantizedTensor, InitializationKind, InitializationMeta, PriorArchive, PriorPlan,
12    TensorEntryMeta, TransformerGeometry, ARCHIVE_VERSION,
13};
14pub use error::PriorError;