Pytorch-lightning: Specify mlflow<1.11

Created on 8 Sep 2020  路  11Comments  路  Source: PyTorchLightning/pytorch-lightning

馃殌 Feature

Specify mlflow<1.11 in the environment.yml file.

Motivation

As I pointed out in this issue in the mlflow repo, the most recent version of that package creates an mlruns directory at the location of any script that imports it. Importing PL also results in this directory being created. This is problematic since it pollutes development environments, and especially test suites.

Pitch

Specify a maximum mlflow version.

Alternatives

Add mlruns to the gitignore.

enhancement help wanted

All 11 comments

Hi! thanks for your contribution!, great first issue!

I would add it to gitignore or adjust the MLFlowLogger accordingly, mind send a PR?

Well, it isn't the MLFlowLogger that is the issue. It is the package itself. Just doing import mlflow results in the directory being created when on mlflow>=1.11.0.

I'll gladly PR a line in the gitignore for PL, but projects that use PL will still have this issue that is pretty difficult to track down.

@tmcclintock If it is a bug, it has to be fixed by the mlflow team, and then we should add mlflow >= X where X is the version it is fixed in. since mlflow is in the extras, you can control which version you want to install. you can downgrade the library yourself as a temporary fix, until it is resolved on their end. Please correct me if I'm wrong.

@awaelchli of course. I offered on the mlflow issue I made to work on the topic, but they haven't gotten back to me yet. I figured that, for now, while this undesirable behavior is the default that PL should avoid it.

Update - I am working with an mlflow dev to fix this. I will issue a PR here that follows @awaelchli's suggestion when it is solved in mlflow.

The mlflow devs fixed this issue on master as seen here. I don't know when this will make it into a version. I'll loop back around here when it does.

This was fixed in mlflow's recent release, so I'm closing. This issue will only exist for specific minor versions of 1.11 (e.g. 1.11.0)

Awesome! thanks for taking care of this.

yeah, but probably we need to skip the [articular version mlflow != 1.11 right?

@Borda it turns out the update in mlflow happened without updating the version, so I think taking no action is fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DavidRuhe picture DavidRuhe  路  3Comments

versatran01 picture versatran01  路  3Comments

williamFalcon picture williamFalcon  路  3Comments

maxime-louis picture maxime-louis  路  3Comments

jcreinhold picture jcreinhold  路  3Comments