pub struct DistributedConfig {
pub backend: String,
pub master_port: u16,
}Expand description
Configuration for distributed GPU job coordination.
When enabled on a multi-replica GPU service, ZLayer injects standard
distributed training environment variables (MASTER_ADDR, MASTER_PORT,
WORLD_SIZE, RANK, LOCAL_RANK) so frameworks like PyTorch, Horovod,
and DeepSpeed can coordinate automatically.
Fields§
§backend: StringCommunication backend: “nccl” (default), “gloo”, or “mpi”
master_port: u16Port for rank-0 master coordination (default: 29500)
Trait Implementations§
Source§impl Clone for DistributedConfig
impl Clone for DistributedConfig
Source§fn clone(&self) -> DistributedConfig
fn clone(&self) -> DistributedConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 DistributedConfig
impl Debug for DistributedConfig
Source§impl<'de> Deserialize<'de> for DistributedConfig
impl<'de> Deserialize<'de> for DistributedConfig
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 DistributedConfig
impl PartialEq for DistributedConfig
Source§impl Serialize for DistributedConfig
impl Serialize for DistributedConfig
Source§impl Validate for DistributedConfig
impl Validate for DistributedConfig
Source§impl<'v_a> ValidateArgs<'v_a> for DistributedConfig
impl<'v_a> ValidateArgs<'v_a> for DistributedConfig
impl Eq for DistributedConfig
impl StructuralPartialEq for DistributedConfig
Auto Trait Implementations§
impl Freeze for DistributedConfig
impl RefUnwindSafe for DistributedConfig
impl Send for DistributedConfig
impl Sync for DistributedConfig
impl Unpin for DistributedConfig
impl UnsafeUnpin for DistributedConfig
impl UnwindSafe for DistributedConfig
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.