pub struct ExpertCachePlan { /* private fields */ }Expand description
Optional independent routed-expert cache selected by a plan.
Implementations§
Source§impl ExpertCachePlan
impl ExpertCachePlan
Sourcepub const fn new(
device_budget_bytes: Option<u64>,
host_budget_bytes: Option<u64>,
scratch_bytes: u64,
prefill_bank_bytes: u64,
eviction_policy: CacheEvictionPolicy,
) -> Self
pub const fn new( device_budget_bytes: Option<u64>, host_budget_bytes: Option<u64>, scratch_bytes: u64, prefill_bank_bytes: u64, eviction_policy: CacheEvictionPolicy, ) -> Self
Creates one independent routed-parameter cache plan.
Sourcepub const fn device_budget_bytes(&self) -> Option<u64>
pub const fn device_budget_bytes(&self) -> Option<u64>
Logical device cache budget.
Sourcepub const fn host_budget_bytes(&self) -> Option<u64>
pub const fn host_budget_bytes(&self) -> Option<u64>
Charged host cache budget.
Sourcepub const fn scratch_bytes(&self) -> u64
pub const fn scratch_bytes(&self) -> u64
Hard compact-bank scratch bound.
Sourcepub const fn prefill_bank_bytes(&self) -> u64
pub const fn prefill_bank_bytes(&self) -> u64
Soft prefill compact-bank target.
Sourcepub const fn eviction_policy(&self) -> CacheEvictionPolicy
pub const fn eviction_policy(&self) -> CacheEvictionPolicy
Deterministic eviction ordering.
Trait Implementations§
Source§impl Clone for ExpertCachePlan
impl Clone for ExpertCachePlan
Source§fn clone(&self) -> ExpertCachePlan
fn clone(&self) -> ExpertCachePlan
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 ExpertCachePlan
impl Debug for ExpertCachePlan
Source§impl<'de> Deserialize<'de> for ExpertCachePlan
impl<'de> Deserialize<'de> for ExpertCachePlan
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
impl Eq for ExpertCachePlan
Source§impl PartialEq for ExpertCachePlan
impl PartialEq for ExpertCachePlan
Source§impl Serialize for ExpertCachePlan
impl Serialize for ExpertCachePlan
impl StructuralPartialEq for ExpertCachePlan
Auto Trait Implementations§
impl Freeze for ExpertCachePlan
impl RefUnwindSafe for ExpertCachePlan
impl Send for ExpertCachePlan
impl Sync for ExpertCachePlan
impl Unpin for ExpertCachePlan
impl UnsafeUnpin for ExpertCachePlan
impl UnwindSafe for ExpertCachePlan
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