pub struct RuntimeKnobs {Show 14 fields
pub kv_capacity: Option<usize>,
pub max_model_len: Option<usize>,
pub chunked_prefill_size: Option<usize>,
pub batch_decode_prof: bool,
pub next_batch_prof: bool,
pub rbd_prof: bool,
pub unified_post_prof: bool,
pub prefix_cache_enabled: bool,
pub model_path: Option<String>,
pub spec_draft: Option<String>,
pub spec_n: Option<usize>,
pub dtype: Option<String>,
pub metal_dtype: Option<String>,
pub tp: Option<usize>,
}Expand description
Engine runtime knobs the CLI/autosizer resolves and injects via the
runtime-config snapshot. The continuous engine reads these from the typed
config instead of std::env::vars(), so the env bridge stays at the
composition root and tests can vary the knobs per EngineConfig.
Fields§
§kv_capacity: Option<usize>§max_model_len: Option<usize>§chunked_prefill_size: Option<usize>§batch_decode_prof: bool§next_batch_prof: bool§rbd_prof: bool§unified_post_prof: bool§prefix_cache_enabled: bool§model_path: Option<String>§spec_draft: Option<String>§spec_n: Option<usize>§dtype: Option<String>§metal_dtype: Option<String>§tp: Option<usize>Trait Implementations§
Source§impl Clone for RuntimeKnobs
impl Clone for RuntimeKnobs
Source§fn clone(&self) -> RuntimeKnobs
fn clone(&self) -> RuntimeKnobs
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 RuntimeKnobs
impl Debug for RuntimeKnobs
Source§impl Default for RuntimeKnobs
impl Default for RuntimeKnobs
Source§fn default() -> RuntimeKnobs
fn default() -> RuntimeKnobs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimeKnobs
impl<'de> Deserialize<'de> for RuntimeKnobs
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
Auto Trait Implementations§
impl Freeze for RuntimeKnobs
impl RefUnwindSafe for RuntimeKnobs
impl Send for RuntimeKnobs
impl Sync for RuntimeKnobs
impl Unpin for RuntimeKnobs
impl UnsafeUnpin for RuntimeKnobs
impl UnwindSafe for RuntimeKnobs
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