pub struct KvCacheEstimateOptions {
pub allow_naive_fallback: bool,
pub allow_hf_config_download: bool,
pub naive_kv_reservation: f64,
}Fields§
§allow_naive_fallback: bool§allow_hf_config_download: bool§naive_kv_reservation: f64Fraction of post-weight memory the naive fallback reserves for KV
(default 0.80). Ignored on the native path. Exposed so the Mocker can
tune the crude fallback budget.
Trait Implementations§
Source§impl Clone for KvCacheEstimateOptions
impl Clone for KvCacheEstimateOptions
Source§fn clone(&self) -> KvCacheEstimateOptions
fn clone(&self) -> KvCacheEstimateOptions
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 moreimpl Copy for KvCacheEstimateOptions
Source§impl Debug for KvCacheEstimateOptions
impl Debug for KvCacheEstimateOptions
Source§impl<'de> Deserialize<'de> for KvCacheEstimateOptions
impl<'de> Deserialize<'de> for KvCacheEstimateOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KvCacheEstimateOptions
impl PartialEq for KvCacheEstimateOptions
Source§impl Serialize for KvCacheEstimateOptions
impl Serialize for KvCacheEstimateOptions
impl StructuralPartialEq for KvCacheEstimateOptions
Auto Trait Implementations§
impl Freeze for KvCacheEstimateOptions
impl RefUnwindSafe for KvCacheEstimateOptions
impl Send for KvCacheEstimateOptions
impl Sync for KvCacheEstimateOptions
impl Unpin for KvCacheEstimateOptions
impl UnsafeUnpin for KvCacheEstimateOptions
impl UnwindSafe for KvCacheEstimateOptions
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