pub struct CacheStats {
pub num_layers: usize,
pub total_seq_len: usize,
pub memory_usage_mb: f64,
pub max_memory_mb: f64,
pub step: usize,
pub enabled: bool,
}Expand description
Statistics about cache usage
Fields§
§num_layers: usizeNumber of cached layers
total_seq_len: usizeMaximum sequence length across all layers
memory_usage_mb: f64Current memory usage in MB
max_memory_mb: f64Maximum allowed memory in MB
step: usizeCurrent generation step
enabled: boolWhether cache is enabled
Implementations§
Trait Implementations§
Source§impl Clone for CacheStats
impl Clone for CacheStats
Source§fn clone(&self) -> CacheStats
fn clone(&self) -> CacheStats
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CacheStats
impl RefUnwindSafe for CacheStats
impl Send for CacheStats
impl Sync for CacheStats
impl Unpin for CacheStats
impl UnwindSafe for CacheStats
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