pub struct SglangConfig {
pub schedule_policy: SglangSchedulePolicy,
pub max_prefill_tokens: usize,
pub chunked_prefill_size: usize,
pub clip_max_new_tokens: usize,
pub schedule_conservativeness: f64,
}Expand description
Serializable SGLang scheduler controls.
Fields§
§schedule_policy: SglangSchedulePolicyWaiting-queue policy.
max_prefill_tokens: usizePage-aware prefill-token budget per pass.
chunked_prefill_size: usizeMaximum prompt chunk considered in one pass.
clip_max_new_tokens: usizeOutput reservation cap used by SGLang admission control.
schedule_conservativeness: f64Multiplier applied to SGLang’s adaptive output-reservation ratio.
Trait Implementations§
Source§impl Clone for SglangConfig
impl Clone for SglangConfig
Source§fn clone(&self) -> SglangConfig
fn clone(&self) -> SglangConfig
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 SglangConfig
impl Debug for SglangConfig
Source§impl Default for SglangConfig
impl Default for SglangConfig
Source§impl<'de> Deserialize<'de> for SglangConfigwhere
SglangConfig: Default,
impl<'de> Deserialize<'de> for SglangConfigwhere
SglangConfig: Default,
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
Source§impl PartialEq for SglangConfig
impl PartialEq for SglangConfig
Source§impl Serialize for SglangConfig
impl Serialize for SglangConfig
impl StructuralPartialEq for SglangConfig
Auto Trait Implementations§
impl Freeze for SglangConfig
impl RefUnwindSafe for SglangConfig
impl Send for SglangConfig
impl Sync for SglangConfig
impl Unpin for SglangConfig
impl UnsafeUnpin for SglangConfig
impl UnwindSafe for SglangConfig
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