pub struct ConvertStats {
pub n_tensors: usize,
pub n_ternary: usize,
pub n_fp32: usize,
pub output_bytes: usize,
}Expand description
Statistics returned after a successful conversion.
Shared between the safetensors (convert_hf_to_gguf) and ONNX
(convert_onnx_to_gguf) pipelines so CLI callers can report a single
struct regardless of source format.
Fields§
§n_tensors: usizeTotal number of tensors written to the GGUF file.
n_ternary: usizeNumber of tensors quantized to TQ2_0_g128.
n_fp32: usizeNumber of tensors stored as FP32.
output_bytes: usizeTotal size of the output GGUF file in bytes.
Trait Implementations§
Source§impl Clone for ConvertStats
impl Clone for ConvertStats
Source§fn clone(&self) -> ConvertStats
fn clone(&self) -> ConvertStats
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 ConvertStats
impl Debug for ConvertStats
Source§impl Default for ConvertStats
impl Default for ConvertStats
Source§fn default() -> ConvertStats
fn default() -> ConvertStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConvertStats
impl RefUnwindSafe for ConvertStats
impl Send for ConvertStats
impl Sync for ConvertStats
impl Unpin for ConvertStats
impl UnsafeUnpin for ConvertStats
impl UnwindSafe for ConvertStats
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> 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