Expand description
APR Converter Module - Import Pipeline
Implements Section 13 of APR-SPEC.md: Import/Convert Pipeline
Supports:
HuggingFaceHub downloads (hf://org/repo)SafeTensorsconversion- Inline validation during conversion
- Quantization and compression
Re-exports§
pub use crate::format::converter_types::detect_sharded_model;pub use crate::format::converter_types::Architecture;pub use crate::format::converter_types::DequantizedTensors;pub use crate::format::converter_types::ImportError;pub use crate::format::converter_types::ImportOptions;pub use crate::format::converter_types::NativeF32Tensors;pub use crate::format::converter_types::QuantizationType;pub use crate::format::converter_types::ShardedIndex;pub use crate::format::converter_types::Source;pub use crate::format::converter_types::TensorExpectation;pub use crate::format::converter_types::TensorProvenance;pub use crate::format::converter_types::ValidationConfig;
Structs§
- AprConverter
- APR Converter with builder pattern
- Convert
Options - Options for model conversion
- Convert
Report - Report from model conversion
- Export
Options - Options for model export
- Export
Report - Report from export operation
- Merge
Options - Options for model merging
- Merge
Report - Report from merge operation
Enums§
- Export
Format - Export format options
- Merge
Strategy - Merge strategy options
Constants§
- F16_
MIN_ NORMAL - Minimum valid f16 normal value (~6.1e-5) Prevents NaN on round-trip through f16 encoding
Functions§
- apr_
convert - Convert a model with quantization and/or compression
- apr_
export - Export APR/SafeTensors model to another format
- apr_
import - apr_
merge - Merge multiple models into one