#[non_exhaustive]pub struct FoundationModelTuningOptions {
pub train_steps: i32,
pub learning_rate_multiplier: f32,
/* private fields */
}Expand description
Options to control foundation model tuning of the processor.
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.train_steps: i32Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, recommended steps will be used.
learning_rate_multiplier: f32Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If not provided, recommended learning rate will be used.
Implementations§
Source§impl FoundationModelTuningOptions
impl FoundationModelTuningOptions
pub fn new() -> Self
Sourcepub fn set_train_steps<T: Into<i32>>(self, v: T) -> Self
pub fn set_train_steps<T: Into<i32>>(self, v: T) -> Self
Sets the value of train_steps.
Sourcepub fn set_learning_rate_multiplier<T: Into<f32>>(self, v: T) -> Self
pub fn set_learning_rate_multiplier<T: Into<f32>>(self, v: T) -> Self
Sets the value of learning_rate_multiplier.
Trait Implementations§
Source§impl Clone for FoundationModelTuningOptions
impl Clone for FoundationModelTuningOptions
Source§fn clone(&self) -> FoundationModelTuningOptions
fn clone(&self) -> FoundationModelTuningOptions
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 FoundationModelTuningOptions
impl Debug for FoundationModelTuningOptions
Source§impl Default for FoundationModelTuningOptions
impl Default for FoundationModelTuningOptions
Source§fn default() -> FoundationModelTuningOptions
fn default() -> FoundationModelTuningOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for FoundationModelTuningOptions
impl PartialEq for FoundationModelTuningOptions
Source§fn eq(&self, other: &FoundationModelTuningOptions) -> bool
fn eq(&self, other: &FoundationModelTuningOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FoundationModelTuningOptions
Auto Trait Implementations§
impl Freeze for FoundationModelTuningOptions
impl RefUnwindSafe for FoundationModelTuningOptions
impl Send for FoundationModelTuningOptions
impl Sync for FoundationModelTuningOptions
impl Unpin for FoundationModelTuningOptions
impl UnwindSafe for FoundationModelTuningOptions
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