Skip to main content

kime_model/
lib.rs

1//! ModelSpec, checkpoint formats, weight loading, the `.kime` packed format and the graph builders for both model families: the laya compat graph and the kime-v1 split encoder. See spec/05-model.md and spec/07-engine.md.
2//!
3//! Every file is untrusted input. The parsers take a `&[u8]` and check each offset and length
4//! before using it, so a malformed or hostile file is an error and never a read out of bounds.
5
6#![forbid(unsafe_code)]
7
8mod error;
9pub mod laya;
10mod model;
11pub mod pack;
12pub mod safetensors;
13mod tensors;
14
15pub use error::Error;
16pub use model::{LAYA_FILES, Model};
17pub use tensors::{Entry, Tensors, View};