pub struct FineTuneMethod {
pub type: FineTuneMethodType,
pub supervised: Option<FineTuneSupervisedMethod>,
pub dpo: Option<FineTuneDpoMethod>,
pub reinforcement: Option<FineTuneReinforcementMethod>,
}
Expand description
The method used for fine-tuning.
Fields§
§type: FineTuneMethodType
The type of method. Is either supervised
, dpo
, or reinforcement
.
supervised: Option<FineTuneSupervisedMethod>
§dpo: Option<FineTuneDpoMethod>
§reinforcement: Option<FineTuneReinforcementMethod>
Implementations§
Source§impl FineTuneMethod
impl FineTuneMethod
Sourcepub fn builder() -> FineTuneMethodBuilder<((), (), (), ())>
pub fn builder() -> FineTuneMethodBuilder<((), (), (), ())>
Create a builder for building FineTuneMethod
.
On the builder, call .r#type(...)
, .supervised(...)
(optional), .dpo(...)
(optional), .reinforcement(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of FineTuneMethod
.
Trait Implementations§
Source§impl Clone for FineTuneMethod
impl Clone for FineTuneMethod
Source§fn clone(&self) -> FineTuneMethod
fn clone(&self) -> FineTuneMethod
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 FineTuneMethod
impl Debug for FineTuneMethod
Source§impl<'de> Deserialize<'de> for FineTuneMethod
impl<'de> Deserialize<'de> for FineTuneMethod
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 FineTuneMethod
impl PartialEq for FineTuneMethod
Source§impl Serialize for FineTuneMethod
impl Serialize for FineTuneMethod
impl StructuralPartialEq for FineTuneMethod
Auto Trait Implementations§
impl Freeze for FineTuneMethod
impl RefUnwindSafe for FineTuneMethod
impl Send for FineTuneMethod
impl Sync for FineTuneMethod
impl Unpin for FineTuneMethod
impl UnwindSafe for FineTuneMethod
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