pub struct HardwareConfig {
pub mixed_precision: String,
pub num_gpus: usize,
pub gradient_checkpointing: bool,
pub deepspeed: Option<String>,
pub fsdp: bool,
}Expand description
Hardware configuration
Fields§
§mixed_precision: StringUse mixed precision (fp16/bf16)
num_gpus: usizeNumber of GPUs
gradient_checkpointing: boolEnable gradient checkpointing
deepspeed: Option<String>Enable DeepSpeed
fsdp: boolEnable FSDP
Trait Implementations§
Source§impl Clone for HardwareConfig
impl Clone for HardwareConfig
Source§fn clone(&self) -> HardwareConfig
fn clone(&self) -> HardwareConfig
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 HardwareConfig
impl Debug for HardwareConfig
Source§impl Default for HardwareConfig
impl Default for HardwareConfig
Source§impl<'de> Deserialize<'de> for HardwareConfig
impl<'de> Deserialize<'de> for HardwareConfig
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
Auto Trait Implementations§
impl Freeze for HardwareConfig
impl RefUnwindSafe for HardwareConfig
impl Send for HardwareConfig
impl Sync for HardwareConfig
impl Unpin for HardwareConfig
impl UnwindSafe for HardwareConfig
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