pub struct ModelExecutionConfig {
pub component: ModelComponent,
pub preset: ExecutionPreset,
}Expand description
Shader-component-style bundle: one object for specialize + compile + cache.
Fields§
§component: ModelComponent§preset: ExecutionPresetImplementations§
Source§impl ModelExecutionConfig
impl ModelExecutionConfig
pub fn from_component( component: ModelComponent, preset: ExecutionPreset, ) -> Self
pub fn prefill(batch: usize, seq: usize) -> Self
pub fn decode(batch: usize, past_seq: usize, new_tokens: usize) -> Self
pub fn qwen35_prefill(batch: usize, seq: usize) -> Self
pub fn qwen35_decode(batch: usize, past_seq: usize) -> Self
pub fn with_preset(self, preset: ExecutionPreset) -> Self
pub fn with_kernel_dispatch(self, config: KernelDispatchConfig) -> Self
pub fn with_compilation_mode(self, mode: CompilationMode) -> Self
pub fn with_quant(self, scheme: QuantScheme) -> Self
pub fn with_layer_composition(self, composition: &LayerComposition) -> Self
pub fn cache_key(&self) -> u64
pub fn dim_binding(&self) -> DimBinding
pub fn compile_profile(&self) -> CompileProfile
pub fn component(&self) -> &ModelComponent
pub fn variant(&self) -> &ModelVariant
Trait Implementations§
Source§impl Clone for ModelExecutionConfig
impl Clone for ModelExecutionConfig
Source§fn clone(&self) -> ModelExecutionConfig
fn clone(&self) -> ModelExecutionConfig
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 ModelExecutionConfig
impl RefUnwindSafe for ModelExecutionConfig
impl Send for ModelExecutionConfig
impl Sync for ModelExecutionConfig
impl Unpin for ModelExecutionConfig
impl UnsafeUnpin for ModelExecutionConfig
impl UnwindSafe for ModelExecutionConfig
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