-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to specify artifact_location
when using MLFlowLogger
#6668
Comments
@rchen19 Thanks for the issue! I couldn't actually reproduce the behaviour you describe on master. When I change |
@ethanwharris Many thanks for that info. I had been using the logger outside the lightning module, i.e. in a separate experiment script, the logger is called after the training is finished to save every file generated during training to MLFlow. Is there a way to log things inside lightning module at the very end of training? |
Hi @rchen19, sure, if you use |
@ethanwharris Thanks a lot, this is helpful. |
@ethanwharris On second look, if I would like replace the steps I do outside lightning module, after trainer.fit() is finished, I should use Another related question is that, |
@rchen19 teardown should only really be used to close open connections and things like that, rather than functions like logging. I'm not sure whether |
🚀 Feature
Expose argument
artifact_location
ofMlflowClient.create_experiment
when it is called insideMLFlowLogger.experiment
, this can be set with an argument whenMLFlowLogger
is instantiated along withtracking_uri
orsave_dir
, to specify a custom location to save artifacts.Motivation
When I use the
save_dir
argument ofMLFlowLogger
to specify a location, different from my current working directory, to save mymlruns/
, the artifacts logged using the sameMLFlowLogger
still get saved under my current working directory, which is kind of messy.The text was updated successfully, but these errors were encountered: