pub struct ResolveWeightsOptions<'a> {
pub prefer_gguf_substring: Option<&'a str>,
pub gguf_index: Option<usize>,
}Expand description
Options for resolve_weights_file_with_options.
Fields§
§prefer_gguf_substring: Option<&'a str>Prefer a .gguf whose file name contains this substring (e.g. Q4_K_M).
gguf_index: Option<usize>Pick the N-th .gguf after sorting paths (0-based).
Implementations§
Source§impl<'a> ResolveWeightsOptions<'a>
impl<'a> ResolveWeightsOptions<'a>
pub fn prefer_substring(self, sub: &'a str) -> ResolveWeightsOptions<'a>
pub fn index(self, idx: usize) -> ResolveWeightsOptions<'a>
Trait Implementations§
Source§impl<'a> Clone for ResolveWeightsOptions<'a>
impl<'a> Clone for ResolveWeightsOptions<'a>
Source§fn clone(&self) -> ResolveWeightsOptions<'a>
fn clone(&self) -> ResolveWeightsOptions<'a>
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<'a> Debug for ResolveWeightsOptions<'a>
impl<'a> Debug for ResolveWeightsOptions<'a>
Source§impl<'a> Default for ResolveWeightsOptions<'a>
impl<'a> Default for ResolveWeightsOptions<'a>
Source§fn default() -> ResolveWeightsOptions<'a>
fn default() -> ResolveWeightsOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ResolveWeightsOptions<'a>
impl<'a> RefUnwindSafe for ResolveWeightsOptions<'a>
impl<'a> Send for ResolveWeightsOptions<'a>
impl<'a> Sync for ResolveWeightsOptions<'a>
impl<'a> Unpin for ResolveWeightsOptions<'a>
impl<'a> UnsafeUnpin for ResolveWeightsOptions<'a>
impl<'a> UnwindSafe for ResolveWeightsOptions<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more