#[non_exhaustive]pub struct RepoModel {
pub id: String,
pub quant: Option<String>,
pub parts: Vec<RepoFile>,
pub size: u64,
pub complete: bool,
}Expand description
One downloadable model in a repo: a single GGUF, or every part of a split GGUF
(name-00001-of-00003.gguf …), in order.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringThe file stem without the split suffix, such as Qwen3-32B-Q4_K_M; the ModelSpec id.
quant: Option<String>The quantization read from the file name, such as Q4_K_M (see quant_of).
parts: Vec<RepoFile>The files, first part first. llama.cpp loads a split model from its first part.
size: u64All parts together.
complete: boolEvery part of a split model is in the repo.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RepoModel
impl<'de> Deserialize<'de> for RepoModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RepoModel
impl StructuralPartialEq for RepoModel
Auto Trait Implementations§
impl Forget for RepoModel
impl Freeze for RepoModel
impl Move for RepoModel
impl RefUnwindSafe for RepoModel
impl Send for RepoModel
impl Sync for RepoModel
impl Unpin for RepoModel
impl UnsafeUnpin for RepoModel
impl UnwindSafe for RepoModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more