Skip to main content

Crate zsfm_checkpoint

Crate zsfm_checkpoint 

Source

Re-exports§

pub use cast::cast_data;
pub use cast::SrcDtype;
pub use read::load_checkpoint;
pub use read::Checkpoint;
pub use read::LoadOptions;
pub use read::RawTensor;
pub use recast::recast;

Modules§

cast
Canonical dtype casting for GGUF conversion: {F32, F16, BF16} sources to any writable GGMLType, including Q8_0 block quantization. Bit-for-bit the same math as the per-model converters (which predate this crate and keep their own verified copies).
hdf5_keras
HDF5 (.h5 / .hdf5) and Keras v3 (.keras) checkpoint loading.
onnx
ONNX checkpoint loading: weights are the graph’s initializer tensors.
read
Format-agnostic checkpoint loading.
recast
Read any supported checkpoint (including an existing GGUF) and rewrite it at a different dtype, carrying metadata through. Shared by the generic zsfm convert command and by every per-model CLI’s cached-GGUF fast path: once a repo has been downloaded and converted to a canonical F32 GGUF once, later requests for a different dtype recast from that cache instead of re-downloading from HuggingFace.