pub enum TrainingFormat {
Preference {
chosen_field: String,
rejected_field: String,
},
Completion {
completion_field: String,
label_field: Option<String>,
},
Instruction {
instruction_field: String,
output_field: String,
},
Chat {
messages_field: String,
},
Custom {
fields: Vec<String>,
},
}
Variants§
Trait Implementations§
Source§impl Clone for TrainingFormat
impl Clone for TrainingFormat
Source§fn clone(&self) -> TrainingFormat
fn clone(&self) -> TrainingFormat
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 TrainingFormat
impl Debug for TrainingFormat
Source§impl PartialEq for TrainingFormat
impl PartialEq for TrainingFormat
impl StructuralPartialEq for TrainingFormat
Auto Trait Implementations§
impl Freeze for TrainingFormat
impl RefUnwindSafe for TrainingFormat
impl Send for TrainingFormat
impl Sync for TrainingFormat
impl Unpin for TrainingFormat
impl UnwindSafe for TrainingFormat
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