pub struct SglangEngineConfig {
pub binary: String,
pub host: String,
pub port: u16,
pub context_length: u32,
pub mem_fraction_static: f32,
pub extra_args: Vec<String>,
}Expand description
SGLang launch knobs. SGLang is invoked as python -m sglang.launch_server
and exposes an OpenAI-compatible HTTP surface on host:port. engine.url
must point at this surface.
Fields§
§binary: StringPath or PATH-name of the python interpreter (or the sglang CLI).
Default: python.
host: StringHost the launcher binds to. Mapped to --host.
port: u16Port the launcher binds to. Mapped to --port.
context_length: u32Default context window when [models.*].max_model_len is unset.
Mapped to --context-length.
mem_fraction_static: f32Mem fraction for SGLang’s RadixAttention KV pool. Mapped to
--mem-fraction-static. Defaults to 0.85.
extra_args: Vec<String>Arguments appended after the auto-rendered base flags.
Trait Implementations§
Source§impl Clone for SglangEngineConfig
impl Clone for SglangEngineConfig
Source§fn clone(&self) -> SglangEngineConfig
fn clone(&self) -> SglangEngineConfig
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 SglangEngineConfig
impl Debug for SglangEngineConfig
Source§impl Default for SglangEngineConfig
impl Default for SglangEngineConfig
Source§impl<'de> Deserialize<'de> for SglangEngineConfigwhere
SglangEngineConfig: Default,
impl<'de> Deserialize<'de> for SglangEngineConfigwhere
SglangEngineConfig: 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
Auto Trait Implementations§
impl Freeze for SglangEngineConfig
impl RefUnwindSafe for SglangEngineConfig
impl Send for SglangEngineConfig
impl Sync for SglangEngineConfig
impl Unpin for SglangEngineConfig
impl UnsafeUnpin for SglangEngineConfig
impl UnwindSafe for SglangEngineConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request