Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary: Unified Fit and Evals
This is a major refactoring PR that unifies the codebase for both fit (training) and evals (inference) modes, eliminating code duplication and enabling shared infrastructure for experiment tracking, interactive control, and metric logging and RF setup.
Changes
Major Changes
1. Unified Database Schema
experimentstable for both fit and evals modesconfigcolumninteractive_controltable for dynamic operationstarget_typefield:'run'(fit) or'pipeline'(evals)target_idfield: holdsrun_idorpipeline_idconfig_datafield: holds operation-specific JSON configurationruns,worker_task,controller_progress,worker_progresspipelines,contexts,actor_tasks2. Unified Experiment Class
Experiment(name, mode="fit"|"evals")for both modes_init_fit_mode()- Sets up training infrastructure_init_evals_mode()- Sets up inference infrastructureend()- Clean up resourcescancel_current()- Cancel current operationget_log_file_path()- Get experiment logsrun_fit()- Execute training (fit mode only)run_evals()- Execute inference (evals mode only)get_results()- Get training metrics (fit mode only)get_runs_info()- Get run information (fit mode only)3. Unified Metric Logging System
4. Unified Status Enums
5. Setup
--initcommand.--clearcommand to clear all Db, logs and dashboard files.Testing
Screenshots