pub enum WorkerRole {
FullWorker,
StreamingWorker,
ExpertWorker,
PrefillWorker,
}Expand description
Role a node plays in a distributed inference execution plan.
Variants§
FullWorker
Runs the full model on a single node.
StreamingWorker
Streams layer shards during inference.
ExpertWorker
Hosts expert shards in a MoE configuration.
PrefillWorker
Handles prefill phase of prompt processing.
Trait Implementations§
Source§impl Clone for WorkerRole
impl Clone for WorkerRole
Source§fn clone(&self) -> WorkerRole
fn clone(&self) -> WorkerRole
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 moreimpl Copy for WorkerRole
Source§impl Debug for WorkerRole
impl Debug for WorkerRole
Source§impl Default for WorkerRole
impl Default for WorkerRole
Source§fn default() -> WorkerRole
fn default() -> WorkerRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkerRole
impl<'de> Deserialize<'de> for WorkerRole
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 WorkerRole
Source§impl Hash for WorkerRole
impl Hash for WorkerRole
Source§impl PartialEq for WorkerRole
impl PartialEq for WorkerRole
Source§fn eq(&self, other: &WorkerRole) -> bool
fn eq(&self, other: &WorkerRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkerRole
impl Serialize for WorkerRole
impl StructuralPartialEq for WorkerRole
Auto Trait Implementations§
impl Freeze for WorkerRole
impl RefUnwindSafe for WorkerRole
impl Send for WorkerRole
impl Sync for WorkerRole
impl Unpin for WorkerRole
impl UnsafeUnpin for WorkerRole
impl UnwindSafe for WorkerRole
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