Hand-rolled in src/error.rs — no thiserror / anyhow.
src/error.rs
thiserror
anyhow
pub enum ParserError { Io { path, source }, UnsupportedFormat { path, reason }, MissingTensor { name, path }, InvalidLayout { path, reason }, ExpertOutOfRange { block, expert, available }, DuplicateTensorOwnership { name, shards, path }, MissingShard { shard, path }, } pub type Result<T> = std::result::Result<T, ParserError>;
Io
UnsupportedFormat
MissingTensor
InvalidLayout
ExpertOutOfRange
DuplicateTensorOwnership
MissingShard
Implements Display + std::error::Error (source only for Io).
Display
std::error::Error
source
Last updated: September 16, 2026 Updated by: KAI Package tip reference: 3dea2c3 (main)
3dea2c3
There was an error while loading. Please reload this page.