pub struct RuntimeConfig {
pub pool_workers: usize,
pub par_threshold: usize,
pub min_rows_per_thread: usize,
pub sdpa_seq_threshold: usize,
pub arena_alignment: usize,
pub ln_eps_default: f32,
pub attn_mask_neg_inf: f32,
pub score_skip_threshold: f32,
pub mask_binary_threshold: f32,
pub verbose: u8,
}Expand description
Runtime configuration for the RLX CPU backend.
Fields§
§pool_workers: usize§par_threshold: usize§min_rows_per_thread: usize§sdpa_seq_threshold: usize§arena_alignment: usize§ln_eps_default: f32§attn_mask_neg_inf: f32§score_skip_threshold: f32§mask_binary_threshold: f32§verbose: u8Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
Sourcepub fn auto_detect() -> Self
pub fn auto_detect() -> Self
Auto-detect hardware and apply optimal defaults.
Sourcepub fn install(&self)
pub fn install(&self)
Push this config into the global rlx_ir::env override map so all
RLX backends see the same knobs without setting process env vars.
Sourcepub fn global() -> &'static RuntimeConfig
pub fn global() -> &'static RuntimeConfig
Get or initialize the global singleton config.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
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 RuntimeConfig
impl Debug for RuntimeConfig
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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
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