pub struct ModelSpec<'a> {
pub checkpoint: &'a str,
pub config_json: Option<&'a str>,
pub hf_quant: Option<&'a str>,
pub precision: PrecisionChoice,
}Expand description
2026-09-30: What names the model.
Fields§
§checkpoint: &'a str2026-09-30: Checkpoint id (org/name) or recipe id.
config_json: Option<&'a str>2026-09-30: The checkpoint’s config.json, when read.
hf_quant: Option<&'a str>2026-09-30: Its hf_quant_config.json, when it ships one.
precision: PrecisionChoice2026-09-30: Formats served.
Trait Implementations§
impl<'a> Copy for ModelSpec<'a>
Auto Trait Implementations§
impl<'a> Freeze for ModelSpec<'a>
impl<'a> RefUnwindSafe for ModelSpec<'a>
impl<'a> Send for ModelSpec<'a>
impl<'a> Sync for ModelSpec<'a>
impl<'a> Unpin for ModelSpec<'a>
impl<'a> UnwindSafe for ModelSpec<'a>
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