MLFlowLogger Issues with LightningCLI #14047
Replies: 2 comments
-
|
It looks to me that it's still the case. I can't have a |
Beta Was this translation helpful? Give feedback.
-
|
If you are using mlflow, my recommendation would be to implement a subclass of If for some reason someone truly wants to use mlflow and save the config locally, then I don't see why not creating a pull request that does the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having trouble working around an issue that arises due to the
save_dirproperty of the MLFlowLogger returningNonewhentracking_uriis set. TheSaveConfigCallbacksetup method makes the assertion thatlog_diris not None, butlog_diris assigned astrainer.log_dir, which is set to the logger'ssave_dirattribute, which for some reason returnsNonein the MLFlowLogger when you are using a remote tracking server. I was hoping I could simply intervene and manually override thetrainer.log_dirproperty, but it's read-only so that doesn't work. This seems fundamentally broken and ought to be fixed in general, but I was hoping someone else had run into this issue and has a workaround that I can use for now.Edit: I temporarily fixed this by extending the
SaveConfigCallbackclass to override the setup method. My updated version is exactly the same, but it replaceswith
I don't know if this has potential downstream consequences, but for my use case it got things running properly.
Beta Was this translation helpful? Give feedback.
All reactions