pub struct MemoryBreakdownEntry {
pub buft_name: String,
pub model: usize,
pub context: usize,
pub compute: usize,
}Expand description
Memory attributed to a single backend buffer type (e.g. CUDA0, Host).
Fields§
§buft_name: StringHuman-readable buffer-type name from ggml.
model: usizeBytes used by model weights on this buffer type.
context: usizeBytes used by the KV / recurrent context cache.
compute: usizeBytes used by temporary compute buffers.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryBreakdownEntry
impl Clone for MemoryBreakdownEntry
Source§fn clone(&self) -> MemoryBreakdownEntry
fn clone(&self) -> MemoryBreakdownEntry
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 MemoryBreakdownEntry
impl Debug for MemoryBreakdownEntry
impl Eq for MemoryBreakdownEntry
Source§impl PartialEq for MemoryBreakdownEntry
impl PartialEq for MemoryBreakdownEntry
Source§fn eq(&self, other: &MemoryBreakdownEntry) -> bool
fn eq(&self, other: &MemoryBreakdownEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemoryBreakdownEntry
Auto Trait Implementations§
impl Freeze for MemoryBreakdownEntry
impl RefUnwindSafe for MemoryBreakdownEntry
impl Send for MemoryBreakdownEntry
impl Sync for MemoryBreakdownEntry
impl Unpin for MemoryBreakdownEntry
impl UnsafeUnpin for MemoryBreakdownEntry
impl UnwindSafe for MemoryBreakdownEntry
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