"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "da503ea02f7623542bd588b509d0fc31aff92735"
Unverified Commit 2d30443c authored by Yang Dong's avatar Yang Dong Committed by GitHub
Browse files

Set `run_name` in MLflowCallback (#14894)

* Set run_name in MLflowCallback

* Update the docs for `run_name` argument
parent 1d651868
...@@ -712,7 +712,7 @@ class MLflowCallback(TrainerCallback): ...@@ -712,7 +712,7 @@ class MLflowCallback(TrainerCallback):
if log_artifacts in {"TRUE", "1"}: if log_artifacts in {"TRUE", "1"}:
self._log_artifacts = True self._log_artifacts = True
if state.is_world_process_zero: if state.is_world_process_zero:
self._ml_flow.start_run() self._ml_flow.start_run(run_name=args.run_name)
combined_dict = args.to_dict() combined_dict = args.to_dict()
if hasattr(model, "config") and model.config is not None: if hasattr(model, "config") and model.config is not None:
model_config = model.config.to_dict() model_config = model.config.to_dict()
......
...@@ -256,7 +256,7 @@ class TrainingArguments: ...@@ -256,7 +256,7 @@ class TrainingArguments:
`Trainer` will use the corresponding output (usually index 2) as the past state and feed it to the model `Trainer` will use the corresponding output (usually index 2) as the past state and feed it to the model
at the next training step under the keyword argument `mems`. at the next training step under the keyword argument `mems`.
run_name (`str`, *optional*): run_name (`str`, *optional*):
A descriptor for the run. Typically used for [wandb](https://www.wandb.com/) logging. A descriptor for the run. Typically used for [wandb](https://www.wandb.com/) and [mlflow](https://www.mlflow.org/) logging.
disable_tqdm (`bool`, *optional*): disable_tqdm (`bool`, *optional*):
Whether or not to disable the tqdm progress bars and table of metrics produced by Whether or not to disable the tqdm progress bars and table of metrics produced by
[`~notebook.NotebookTrainingTracker`] in Jupyter Notebooks. Will default to `True` [`~notebook.NotebookTrainingTracker`] in Jupyter Notebooks. Will default to `True`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment