Uncap the torchmetrics version, so we can get fixes in 1.0+. #3741
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While trying to figure out why my air-gapped installation and deployment of Ludwig was failing to detect my cached copy of the
punkt
tokenizer fornltk
, I came across Lightning-AI/torchmetrics#1779 which got merged intotorchmetrics==1.0.0
... but Ludwig was avoiding that version. So I forcibly installedtorchmetrics==1.2.0
(latest) in my image (after installing Ludwig), ignoredpip
's words of caution, and managed to run some LoRA-based fine-tuning without a hitch! Since that code path worked okay with the updated library, I'm submitting this PR to remove the pin and leaning on CI to help identify if there are issues on other code paths or if it's truly safe to release.