-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: MLFlowLogger artifact_path #20669
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #20669 +/- ##
=========================================
- Coverage 87% 79% -9%
=========================================
Files 268 265 -3
Lines 23449 23394 -55
=========================================
- Hits 20499 18386 -2113
- Misses 2950 5008 +2058 🚀 New features to boost your workflow:
|
Related bug: #20664 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix should also make sure that this change will work on Windows when also passing a checkpoint_path_prefix
to the MLFlowLogger
object creation. str(...)
on a pathlib.Path
created on Windows may be translated into backward slashes which doesn't seem to be what MLFlowClient
expects
Great to see this fixed! Do you know when we will have a release with this patch? |
@Borda can we get this into a new release soon? What is the release cadence? This fix unblocks people using MLFlowLogger for checkpoints. |
I'm still getting the same problem after upgrading packages
|
The PR changes were reverted in the master branch and not included in the Commit: f6ef409 |
My workaround was to manually change the files inside my venv according to the changes in https://github.com/Lightning-AI/pytorch-lightning/pull/20669/files Seems to work fine |
Also, I am very confused on why they reverted. It seems though that the they reverted more than just this but also the other commit that added custom path prefix for the artifacts. |
Our CI is failing which caused us having to pin lightning to older version. Any reason this fix was reverted? Thanks. |
Is there an older version that is stable that has this fixed? Which workaround are you guys doing? It is a bit frustrating to allocate a whole section in my README.md to explain how to fix MLFlow in my program ... 🫠 |
We've pinned lightning to 2.5.0 until this is resolved. |
I'll experiment with that 🫡 |
What does this PR do?
#20538
MlFlowClient.log_artifact
takes string for theartifact_path
argument onlymlflow.exceptions.MlflowException: Invalid artifact path: 'epoch=0-step=1'. Names may be treated as files in certain cases, and must not resolve to other names when treated as such. This name would resolve to 'epoch=0-step=1'
Fixes #20664
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
📚 Documentation preview 📚: https://pytorch-lightning--20669.org.readthedocs.build/en/20669/