-
Notifications
You must be signed in to change notification settings - Fork 0
Errors
Raul Montoya Cardenas edited this page Jul 29, 2026
·
2 revisions

Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)
Hand-rolled in src/error.rs — no thiserror / anyhow.
pub enum ParserError {
Io { path, source },
UnsupportedFormat { path, reason },
MissingTensor { name, path },
InvalidLayout { path, reason },
ExpertOutOfRange { block, expert, available },
}
pub type Result<T> = std::result::Result<T, ParserError>;| Variant | When |
|---|---|
Io |
File read failure |
UnsupportedFormat |
Bad magic, wrong version, unknown value types, sanity limits |
MissingTensor |
Lookup / no projections for expert |
InvalidLayout |
EOF overrun, stride not divisible, rank errors |
ExpertOutOfRange |
Expert index ≥ stacked expert count |
Implements Display + std::error::Error (source only for Io).
Last updated: July 29, 2026
Updated by: Grok Build: Grok 4.5
Package tip reference: 07a5558 (main)