pub struct PredictiveOffloadParams {
pub max_gpu_experts_per_layer: usize,
pub reserve_vram_gb: f64,
pub collect_stats: bool,
pub jump_steps: usize,
pub device_memory: Option<(usize, usize)>,
pub memory_budget_bytes: Option<usize>,
pub num_experts: usize,
pub num_sparse_moe_layers: usize,
pub expert_param_bytes: usize,
}Expand description
Arguments matching TIDE LLaDA2MoeModelLM.enable_predictive_expert_offload.
Fields§
§max_gpu_experts_per_layer: usize§reserve_vram_gb: f64§collect_stats: bool§jump_steps: usize§device_memory: Option<(usize, usize)>(cuda_free_bytes, cuda_total_bytes) when known; else budget from host RAM.
memory_budget_bytes: Option<usize>§num_experts: usize§num_sparse_moe_layers: usize§expert_param_bytes: usizeImplementations§
Trait Implementations§
Source§impl Clone for PredictiveOffloadParams
impl Clone for PredictiveOffloadParams
Source§fn clone(&self) -> PredictiveOffloadParams
fn clone(&self) -> PredictiveOffloadParams
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 PredictiveOffloadParams
impl RefUnwindSafe for PredictiveOffloadParams
impl Send for PredictiveOffloadParams
impl Sync for PredictiveOffloadParams
impl Unpin for PredictiveOffloadParams
impl UnsafeUnpin for PredictiveOffloadParams
impl UnwindSafe for PredictiveOffloadParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more