#[non_exhaustive]pub struct SupervisedHyperParameters {
pub epoch_count: i64,
pub learning_rate_multiplier: f64,
pub adapter_size: AdapterSize,
/* private fields */
}Expand description
Hyperparameters for SFT.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.epoch_count: i64Optional. Number of complete passes the model makes over the entire training dataset during training.
learning_rate_multiplier: f64Optional. Multiplier for adjusting the default learning rate.
adapter_size: AdapterSizeOptional. Adapter size for tuning.
Implementations§
Source§impl SupervisedHyperParameters
impl SupervisedHyperParameters
pub fn new() -> Self
Sourcepub fn set_epoch_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_epoch_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of epoch_count.
Sourcepub fn set_learning_rate_multiplier<T: Into<f64>>(self, v: T) -> Self
pub fn set_learning_rate_multiplier<T: Into<f64>>(self, v: T) -> Self
Sets the value of learning_rate_multiplier.
Sourcepub fn set_adapter_size<T: Into<AdapterSize>>(self, v: T) -> Self
pub fn set_adapter_size<T: Into<AdapterSize>>(self, v: T) -> Self
Sets the value of adapter_size.
Trait Implementations§
Source§impl Clone for SupervisedHyperParameters
impl Clone for SupervisedHyperParameters
Source§fn clone(&self) -> SupervisedHyperParameters
fn clone(&self) -> SupervisedHyperParameters
Returns a copy 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 SupervisedHyperParameters
impl Debug for SupervisedHyperParameters
Source§impl Default for SupervisedHyperParameters
impl Default for SupervisedHyperParameters
Source§fn default() -> SupervisedHyperParameters
fn default() -> SupervisedHyperParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SupervisedHyperParameterswhere
SupervisedHyperParameters: Default,
impl<'de> Deserialize<'de> for SupervisedHyperParameterswhere
SupervisedHyperParameters: 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
Source§impl Message for SupervisedHyperParameters
impl Message for SupervisedHyperParameters
impl StructuralPartialEq for SupervisedHyperParameters
Auto Trait Implementations§
impl Freeze for SupervisedHyperParameters
impl RefUnwindSafe for SupervisedHyperParameters
impl Send for SupervisedHyperParameters
impl Sync for SupervisedHyperParameters
impl Unpin for SupervisedHyperParameters
impl UnwindSafe for SupervisedHyperParameters
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