pub struct TrainingReporter { /* private fields */ }Expand description
A Reporter that exports all eval results as training data.
Implements the existing Reporter trait so it can be composed with other
reporters in the eval runner pipeline.
The reporter converts each EvalCaseResult into a ScoredTrace,
applies the configured ExportOptions, and writes the export artifact to
the configured output path (or returns it as ReporterOutput::Artifact).
Implementations§
Source§impl TrainingReporter
impl TrainingReporter
Sourcepub fn new(opts: ExportOptions, output_path: impl Into<PathBuf>) -> Self
pub fn new(opts: ExportOptions, output_path: impl Into<PathBuf>) -> Self
Create a new reporter with explicit options and output path.
Sourcepub fn chatml_sft(
quality_threshold: f32,
output_path: impl Into<PathBuf>,
) -> Self
pub fn chatml_sft( quality_threshold: f32, output_path: impl Into<PathBuf>, ) -> Self
Create a ChatML/SFT reporter writing to output_path.
Sourcepub fn dpo_pairs(
quality_threshold: f32,
output_path: impl Into<PathBuf>,
) -> Self
pub fn dpo_pairs( quality_threshold: f32, output_path: impl Into<PathBuf>, ) -> Self
Create a DPO pairs reporter writing to output_path.
Create a ShareGPT reporter writing to output_path.
Trait Implementations§
Source§impl Clone for TrainingReporter
impl Clone for TrainingReporter
Source§fn clone(&self) -> TrainingReporter
fn clone(&self) -> TrainingReporter
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 TrainingReporter
impl Debug for TrainingReporter
Source§impl Reporter for TrainingReporter
impl Reporter for TrainingReporter
Source§fn render(
&self,
result: &EvalSetResult,
) -> Result<ReporterOutput, ReporterError>
fn render( &self, result: &EvalSetResult, ) -> Result<ReporterOutput, ReporterError>
Render the given result. Read more
Auto Trait Implementations§
impl Freeze for TrainingReporter
impl RefUnwindSafe for TrainingReporter
impl Send for TrainingReporter
impl Sync for TrainingReporter
impl Unpin for TrainingReporter
impl UnsafeUnpin for TrainingReporter
impl UnwindSafe for TrainingReporter
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