-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
Description
System Info
- mlflow==1.25.1
- `transformers` version: 4.19.0.dev0
- Platform: Linux-5.10.76-linuxkit-aarch64-with-glibc2.31
- Python version: 3.9.7
- Huggingface_hub version: 0.2.1
- PyTorch version (GPU?): 1.10.2 (False)Who can help?
Should be fixed by #17067
Information
- The official example scripts
- My own modified scripts
Tasks
- An officially supported task in the
examplesfolder (such as GLUE/SQuAD, ...) - My own task or dataset (give details below)
Reproduction
Steps to reproduce:
- Follow Training tutorial as per https://huggingface.co/docs/transformers/training
- Change the training arguments to use
TrainingArguments(output_dir="test_trainer", report_to=['mlflow'], run_name="run0") - On
trainer.train()the MLFlow UI should report a run with a Run Name ofrun0which is not currently the case.
Cause of the Issue:
>> import mlflow
>> print(mlflow.active_run is None, mlflow.active_run() is None)
False True
In src/transformers/integrations.py the line if self._ml_flow.active_run is None: need to be replaced by if self._ml_flow.active_run() is None:
Expected behavior
PR #14894 introduce support for run_name in the MLflowCallback. Though, this does not work as expected since the active run is checked using a method reference that always returns true. Bug introduced by #16131.
Reactions are currently unavailable