pub struct LoadConfig {
pub max_memory_bytes: Option<usize>,
pub validate_checksums: bool,
pub allow_unknown_quant_types: bool,
pub streaming_chunk_size: usize,
pub strict_version: bool,
}Expand description
Configuration governing how a GGUF model is loaded.
Fields§
§max_memory_bytes: Option<usize>Maximum memory (in bytes) the loader is allowed to consume; None = unlimited.
validate_checksums: boolWhether to validate file-level checksums (currently advisory).
allow_unknown_quant_types: boolIf true, tensors with unrecognised quantisation types are silently skipped
rather than returning an error.
streaming_chunk_size: usizeSize of each streaming chunk in bytes when using TensorChunkIter.
strict_version: boolIf true, reject GGUF files that declare an unsupported version.
Trait Implementations§
Source§impl Clone for LoadConfig
impl Clone for LoadConfig
Source§fn clone(&self) -> LoadConfig
fn clone(&self) -> LoadConfig
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 LoadConfig
impl Debug for LoadConfig
Auto Trait Implementations§
impl Freeze for LoadConfig
impl RefUnwindSafe for LoadConfig
impl Send for LoadConfig
impl Sync for LoadConfig
impl Unpin for LoadConfig
impl UnsafeUnpin for LoadConfig
impl UnwindSafe for LoadConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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