#[non_exhaustive]pub enum WeightSource {
HuggingFace {
repo: String,
revision: Option<String>,
},
LocalPath {
path: PathBuf,
},
RuntimeManaged,
}Expand description
Where to load weights from. Local runtimes implement; remote runtimes no-op.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HuggingFace
LocalPath
RuntimeManaged
The runtime knows how to fetch its own weights (vLLM, mistralrs).
Trait Implementations§
Source§impl Clone for WeightSource
impl Clone for WeightSource
Source§fn clone(&self) -> WeightSource
fn clone(&self) -> WeightSource
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 moreAuto Trait Implementations§
impl Freeze for WeightSource
impl RefUnwindSafe for WeightSource
impl Send for WeightSource
impl Sync for WeightSource
impl Unpin for WeightSource
impl UnsafeUnpin for WeightSource
impl UnwindSafe for WeightSource
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