pub struct Parallelism {
pub outer: Option<ParallelismOuter>,
pub attention: Option<ParallelismAttention>,
pub experts: Option<ParallelismExperts>,
}Expand description
Framework-neutral component-aware parallelism ([[RFC-0003:C-SERVE-PARALLELISM]]). Every component is optional so an operator can override one without repeating the rest; omitted components are filled by the integration into a complete effective shape.
Fields§
§outer: Option<ParallelismOuter>Outer deployment parallelism shared by attention and experts.
attention: Option<ParallelismAttention>Attention-block parallelism.
experts: Option<ParallelismExperts>MoE expert parallelism.
Implementations§
Source§impl Parallelism
impl Parallelism
Sourcepub fn merge_from(&mut self, other: &Self)
pub fn merge_from(&mut self, other: &Self)
Overlay the components present in other onto self, leaving
components other omits untouched (the per-component precedence merge).
Trait Implementations§
Source§impl Clone for Parallelism
impl Clone for Parallelism
Source§fn clone(&self) -> Parallelism
fn clone(&self) -> Parallelism
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 Parallelism
impl Debug for Parallelism
Source§impl Default for Parallelism
impl Default for Parallelism
Source§fn default() -> Parallelism
fn default() -> Parallelism
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Parallelismwhere
Parallelism: Default,
impl<'de> Deserialize<'de> for Parallelismwhere
Parallelism: 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
impl Eq for Parallelism
Source§impl JsonSchema for Parallelism
impl JsonSchema for Parallelism
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for Parallelism
impl PartialEq for Parallelism
Source§impl Serialize for Parallelism
impl Serialize for Parallelism
impl StructuralPartialEq for Parallelism
Auto Trait Implementations§
impl Freeze for Parallelism
impl RefUnwindSafe for Parallelism
impl Send for Parallelism
impl Sync for Parallelism
impl Unpin for Parallelism
impl UnsafeUnpin for Parallelism
impl UnwindSafe for Parallelism
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