Skip to main content

StageConfig

Struct StageConfig 

Source
pub struct StageConfig {
Show 34 fields pub run_id: String, pub topology_id: String, pub model_id: String, pub package_ref: Option<String>, pub manifest_sha256: Option<String>, pub source_model_path: Option<String>, pub source_model_sha256: Option<String>, pub source_model_bytes: Option<u64>, pub materialized_path: Option<String>, pub materialized_pinned: bool, pub model_path: Option<String>, pub projector_path: Option<String>, pub stage_id: String, pub stage_index: u32, pub layer_start: u32, pub layer_end: u32, pub ctx_size: u32, pub lane_count: u32, pub n_batch: Option<u32>, pub n_ubatch: Option<u32>, pub n_gpu_layers: i32, pub mmap: Option<bool>, pub mlock: bool, pub cache_type_k: String, pub cache_type_v: String, pub flash_attn_type: FlashAttentionType, pub filter_tensors_on_load: bool, pub selected_device: Option<StageDevice>, pub kv_cache: Option<StageKvCacheConfig>, pub native_mtp_enabled: bool, pub load_mode: LoadMode, pub bind_addr: String, pub upstream: Option<PeerConfig>, pub downstream: Option<PeerConfig>,
}

Fields§

§run_id: String§topology_id: String§model_id: String§package_ref: Option<String>§manifest_sha256: Option<String>§source_model_path: Option<String>§source_model_sha256: Option<String>§source_model_bytes: Option<u64>§materialized_path: Option<String>§materialized_pinned: bool§model_path: Option<String>§projector_path: Option<String>§stage_id: String§stage_index: u32§layer_start: u32§layer_end: u32§ctx_size: u32§lane_count: u32§n_batch: Option<u32>§n_ubatch: Option<u32>§n_gpu_layers: i32§mmap: Option<bool>§mlock: bool§cache_type_k: String§cache_type_v: String§flash_attn_type: FlashAttentionType§filter_tensors_on_load: bool§selected_device: Option<StageDevice>§kv_cache: Option<StageKvCacheConfig>§native_mtp_enabled: bool§load_mode: LoadMode§bind_addr: String§upstream: Option<PeerConfig>§downstream: Option<PeerConfig>

Implementations§

Trait Implementations§

Source§

impl Clone for StageConfig

Source§

fn clone(&self) -> StageConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StageConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for StageConfig

Source§

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 Eq for StageConfig

Source§

impl PartialEq for StageConfig

Source§

fn eq(&self, other: &StageConfig) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for StageConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for StageConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.