Add MLFlow run name option in config (#1961)
Co-authored-by: Adam Hazell <adam.hazell@mindfoundry.ai>
This commit is contained in:
@@ -266,6 +266,7 @@ wandb_log_model: # "checkpoint" to log model to wandb Artifacts every `save_step
|
|||||||
# mlflow configuration if you're using it
|
# mlflow configuration if you're using it
|
||||||
mlflow_tracking_uri: # URI to mlflow
|
mlflow_tracking_uri: # URI to mlflow
|
||||||
mlflow_experiment_name: # Your experiment name
|
mlflow_experiment_name: # Your experiment name
|
||||||
|
mlflow_run_name: # Your run name
|
||||||
hf_mlflow_log_artifacts: # set to true to copy each saved checkpoint on each save to mlflow artifact registry
|
hf_mlflow_log_artifacts: # set to true to copy each saved checkpoint on each save to mlflow artifact registry
|
||||||
|
|
||||||
# Comet configuration if you're using it
|
# Comet configuration if you're using it
|
||||||
|
|||||||
@@ -1445,9 +1445,12 @@ class HFCausalTrainerBuilder(TrainerBuilderBase):
|
|||||||
report_to.append("comet_ml")
|
report_to.append("comet_ml")
|
||||||
|
|
||||||
training_arguments_kwargs["report_to"] = report_to
|
training_arguments_kwargs["report_to"] = report_to
|
||||||
training_arguments_kwargs["run_name"] = (
|
if self.cfg.use_wandb:
|
||||||
self.cfg.wandb_name if self.cfg.use_wandb else None
|
training_arguments_kwargs["run_name"] = self.cfg.wandb_name
|
||||||
)
|
elif self.cfg.use_mlflow:
|
||||||
|
training_arguments_kwargs["run_name"] = self.cfg.mlflow_run_name
|
||||||
|
else:
|
||||||
|
training_arguments_kwargs["run_name"] = None
|
||||||
training_arguments_kwargs["optim"] = (
|
training_arguments_kwargs["optim"] = (
|
||||||
self.cfg.optimizer if self.cfg.optimizer else "adamw_hf"
|
self.cfg.optimizer if self.cfg.optimizer else "adamw_hf"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -447,6 +447,7 @@ class MLFlowConfig(BaseModel):
|
|||||||
use_mlflow: Optional[bool] = None
|
use_mlflow: Optional[bool] = None
|
||||||
mlflow_tracking_uri: Optional[str] = None
|
mlflow_tracking_uri: Optional[str] = None
|
||||||
mlflow_experiment_name: Optional[str] = None
|
mlflow_experiment_name: Optional[str] = None
|
||||||
|
mlflow_run_name: Optional[str] = None
|
||||||
hf_mlflow_log_artifacts: Optional[bool] = None
|
hf_mlflow_log_artifacts: Optional[bool] = None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user