pub struct KvManagerConfig {
pub block_size: usize,
pub max_blocks_gpu: usize,
pub max_blocks_cpu: usize,
pub enable_prefix_cache: bool,
pub enable_metrics: bool,
}Expand description
Internal KV Cache manager configuration
Note: This is distinct from ferrum_types::KvCacheConfig which is the engine-level configuration. This type is used internally by the KV cache manager implementation.
Fields§
§block_size: usize§max_blocks_gpu: usize§max_blocks_cpu: usize§enable_prefix_cache: bool§enable_metrics: boolTrait Implementations§
Source§impl Clone for KvManagerConfig
impl Clone for KvManagerConfig
Source§fn clone(&self) -> KvManagerConfig
fn clone(&self) -> KvManagerConfig
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 moreAuto Trait Implementations§
impl Freeze for KvManagerConfig
impl RefUnwindSafe for KvManagerConfig
impl Send for KvManagerConfig
impl Sync for KvManagerConfig
impl Unpin for KvManagerConfig
impl UnsafeUnpin for KvManagerConfig
impl UnwindSafe for KvManagerConfig
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