pub enum CacheRamSetting {
Auto,
ExplicitMb(u64),
}Expand description
How to determine the host-RAM prompt cache budget (--cache-ram).
Deliberately a two-state enum rather than Option<u64>: benchmark
launches (which must never gain a prompt cache — it would perturb
throughput measurements and RAM footprint) pass ExplicitMb(0), which
unambiguously disables the cache rather than leaving it to an implicit
“no value” state.
Variants§
Auto
Compute a budget from system RAM, model size, and the KV estimate. The default variant — every launch surface auto-sizes unless it opts out.
ExplicitMb(u64)
Use exactly this MiB value. 0 disables the cache.
Trait Implementations§
Source§impl Clone for CacheRamSetting
impl Clone for CacheRamSetting
Source§fn clone(&self) -> CacheRamSetting
fn clone(&self) -> CacheRamSetting
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 CacheRamSetting
impl Debug for CacheRamSetting
Source§impl Default for CacheRamSetting
impl Default for CacheRamSetting
Source§fn default() -> CacheRamSetting
fn default() -> CacheRamSetting
Returns the “default value” for a type. Read more
Source§impl PartialEq for CacheRamSetting
impl PartialEq for CacheRamSetting
Source§fn eq(&self, other: &CacheRamSetting) -> bool
fn eq(&self, other: &CacheRamSetting) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CacheRamSetting
impl Eq for CacheRamSetting
impl StructuralPartialEq for CacheRamSetting
Auto Trait Implementations§
impl Freeze for CacheRamSetting
impl RefUnwindSafe for CacheRamSetting
impl Send for CacheRamSetting
impl Sync for CacheRamSetting
impl Unpin for CacheRamSetting
impl UnsafeUnpin for CacheRamSetting
impl UnwindSafe for CacheRamSetting
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