pub struct StreamReaderSummary {
pub header: GGUFHeader,
pub metadata_count: usize,
pub tensor_count: usize,
pub total_tensor_size: u64,
pub current_position: u64,
pub tensor_data_offset: u64,
pub tensor_data_span: u64,
pub tensor_types: HashMap<GGUFTensorType, usize>,
}Expand description
Summary of stream reading progress
Fields§
§header: GGUFHeaderFile header
metadata_count: usizeNumber of metadata entries
tensor_count: usizeTotal number of tensors
total_tensor_size: u64Total size of all tensor data
current_position: u64Current position in stream
tensor_data_offset: u64Absolute start of the tensor data section
tensor_data_span: u64Relative span through the end of the last tensor, including gaps
tensor_types: HashMap<GGUFTensorType, usize>Count of each tensor type
Implementations§
Source§impl StreamReaderSummary
impl StreamReaderSummary
Sourcepub fn progress_percentage(&self) -> f64
pub fn progress_percentage(&self) -> f64
Percentage of the tensor-data span consumed by the stream reader.
Trait Implementations§
Source§impl Clone for StreamReaderSummary
impl Clone for StreamReaderSummary
Source§impl Debug for StreamReaderSummary
impl Debug for StreamReaderSummary
Auto Trait Implementations§
impl Freeze for StreamReaderSummary
impl RefUnwindSafe for StreamReaderSummary
impl Send for StreamReaderSummary
impl Sync for StreamReaderSummary
impl Unpin for StreamReaderSummary
impl UnsafeUnpin for StreamReaderSummary
impl UnwindSafe for StreamReaderSummary
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