pub struct PythonDiLoCoConfig {
pub backend: PythonDiLoCoBackend,
pub require_exact_steps: bool,
}Expand description
Configures the Python-side DiLoCo inner-loop bridge.
Fields§
§backend: PythonDiLoCoBackendBackend used to execute local DiLoCo inner loops.
require_exact_steps: boolRejects inner-loop reports that complete fewer or more steps than requested.
Implementations§
Source§impl PythonDiLoCoConfig
impl PythonDiLoCoConfig
Sourcepub fn in_process_worker() -> Self
pub fn in_process_worker() -> Self
Runs DiLoCo inner loops inside the already-running Python worker.
Sourcepub fn checkpoint_command(command: PythonCheckpointCommandConfig) -> Self
pub fn checkpoint_command(command: PythonCheckpointCommandConfig) -> Self
Runs DiLoCo inner loops by invoking one checkpoint-command job per round.
Trait Implementations§
Source§impl Clone for PythonDiLoCoConfig
impl Clone for PythonDiLoCoConfig
Source§fn clone(&self) -> PythonDiLoCoConfig
fn clone(&self) -> PythonDiLoCoConfig
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 PythonDiLoCoConfig
impl Debug for PythonDiLoCoConfig
Source§impl Default for PythonDiLoCoConfig
impl Default for PythonDiLoCoConfig
Source§impl<'de> Deserialize<'de> for PythonDiLoCoConfig
impl<'de> Deserialize<'de> for PythonDiLoCoConfig
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 PythonDiLoCoConfig
impl PartialEq for PythonDiLoCoConfig
Source§fn eq(&self, other: &PythonDiLoCoConfig) -> bool
fn eq(&self, other: &PythonDiLoCoConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PythonDiLoCoConfig
impl Serialize for PythonDiLoCoConfig
impl Eq for PythonDiLoCoConfig
impl StructuralPartialEq for PythonDiLoCoConfig
Auto Trait Implementations§
impl Freeze for PythonDiLoCoConfig
impl RefUnwindSafe for PythonDiLoCoConfig
impl Send for PythonDiLoCoConfig
impl Sync for PythonDiLoCoConfig
impl Unpin for PythonDiLoCoConfig
impl UnsafeUnpin for PythonDiLoCoConfig
impl UnwindSafe for PythonDiLoCoConfig
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> CanonicalSchema for Twhere
T: Serialize,
impl<T> CanonicalSchema for Twhere
T: Serialize,
Source§fn to_cbor_vec(&self) -> Result<Vec<u8>, SchemaError>
fn to_cbor_vec(&self) -> Result<Vec<u8>, SchemaError>
Serializes the value into canonical CBOR bytes.
Source§fn content_id(&self) -> Result<ContentId, SchemaError>
fn content_id(&self) -> Result<ContentId, SchemaError>
Computes the canonical content identifier for the value.