Enum llm_base::LoadProgress
source · pub enum LoadProgress {
HyperparametersLoaded,
ContextSize {
bytes: usize,
},
TensorLoaded {
current_tensor: usize,
tensor_count: usize,
},
Loaded {
file_size: u64,
tensor_count: usize,
},
}Expand description
Each variant represents a step within the process of loading the model. These can be used to report progress to the user.
Variants§
HyperparametersLoaded
The hyperparameters have been loaded from the model.
ContextSize
The context has been created.
TensorLoaded
Fields
A tensor from the current part has been loaded.
Loaded
Fields
A model part has finished fully loading.
Trait Implementations§
source§impl Clone for LoadProgress
impl Clone for LoadProgress
source§fn clone(&self) -> LoadProgress
fn clone(&self) -> LoadProgress
Returns a copy of the value. Read more
1.0.0 · 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 LoadProgress
impl Debug for LoadProgress
source§impl PartialEq<LoadProgress> for LoadProgress
impl PartialEq<LoadProgress> for LoadProgress
source§fn eq(&self, other: &LoadProgress) -> bool
fn eq(&self, other: &LoadProgress) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for LoadProgress
impl StructuralEq for LoadProgress
impl StructuralPartialEq for LoadProgress
Auto Trait Implementations§
impl RefUnwindSafe for LoadProgress
impl Send for LoadProgress
impl Sync for LoadProgress
impl Unpin for LoadProgress
impl UnwindSafe for LoadProgress
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