pub struct MistralrsWeights {
pub model_id: Option<String>,
pub model_path: Option<PathBuf>,
pub model_file: Option<Vec<String>>,
pub revision: Option<String>,
pub context_length: Option<u32>,
pub device: MistralrsDeviceSpec,
}Expand description
Weight-source spec for a mistralrs-backed model. Lifted off
[models.<name>] at resolve time. Only one of model_id / model_path
is meaningful in any given instance; validation enforces that, but
mistralrs::load is also defensive.
Fields§
§model_id: Option<String>§model_path: Option<PathBuf>§model_file: Option<Vec<String>>§revision: Option<String>§context_length: Option<u32>§device: MistralrsDeviceSpecTrait Implementations§
Source§impl Clone for MistralrsWeights
impl Clone for MistralrsWeights
Source§fn clone(&self) -> MistralrsWeights
fn clone(&self) -> MistralrsWeights
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MistralrsWeights
impl Debug for MistralrsWeights
Source§impl PartialEq for MistralrsWeights
impl PartialEq for MistralrsWeights
Source§fn eq(&self, other: &MistralrsWeights) -> bool
fn eq(&self, other: &MistralrsWeights) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MistralrsWeights
Auto Trait Implementations§
impl Freeze for MistralrsWeights
impl RefUnwindSafe for MistralrsWeights
impl Send for MistralrsWeights
impl Sync for MistralrsWeights
impl Unpin for MistralrsWeights
impl UnsafeUnpin for MistralrsWeights
impl UnwindSafe for MistralrsWeights
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