Skip to content

build(deps): update torchmetrics requirement from <1.9.0,>0.7.0 to >0.7.0,<1.10.0 in /requirements#21671

Open
dependabot[bot] wants to merge 2 commits intomasterfrom
dependabot-pip-requirements-torchmetrics-gt-0.7.0-and-lt-1.10.0
Open

build(deps): update torchmetrics requirement from <1.9.0,>0.7.0 to >0.7.0,<1.10.0 in /requirements#21671
dependabot[bot] wants to merge 2 commits intomasterfrom
dependabot-pip-requirements-torchmetrics-gt-0.7.0-and-lt-1.10.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 20, 2026

Updates the requirements on torchmetrics to permit the latest version.

Release notes

Sourced from torchmetrics's releases.

Release v1.9.0

[1.9.0] - 2026-03-06

Changed

  • Defaulting Dice score average="macro" (#3042)
  • Dropped Python 3.9 support, set 3.10 as minimum (#3330)
  • Replaced pkg_resources with packaging (#3329)

Fixed

  • Fixed device mismatch in Metric base class (#3316)
  • Fixed n-d slicing deprecation warning (#3319)
  • Fixed tensor copy warning in logAUC (#3295)
  • Fixed memory issues when computing retrieval metrics with high-valued indices (#3291)
  • Fixed race condition in _safe_divide by creating tensor directly on device (#3284)

Key Contributors

@​adaliaramon, @​bhimrazy, @​GdoongMathew, @​Isalia20, @​KyleMylonakisProtopia, @​VijayVignesh1

New Contributors

If we forgot someone due to not matching commit email with GitHub account, let us know :]


Full Changelog: Lightning-AI/torchmetrics@v1.8.0...v1.9.0

Changelog

Sourced from torchmetrics's changelog.

[1.9.0] - 2026-03-05

Changed

  • Defaulting Dice score average="macro" (#3042)
  • Dropped Python 3.9 support, set 3.10 as minimum (#3330)
  • Replaced pkg_resources with packaging (#3329)

Fixed

  • Fixed device mismatch in Metric base class (#3316)
  • Fixed n-d slicing deprecation warning (#3319)
  • Fixed tensor copy warning in logAUC (#3295)
  • Fixed memory issues when computing retrieval metrics with high-valued indices (#3291)
  • Fixed race condition in _safe_divide by creating tensor directly on device (#3284)

[1.8.2] - 2025-09-03

Fixed

  • Fixed BinaryPrecisionRecallCurve now returns NaN for precision when no predictions meet a threshold (#3227)
  • Fixed precision_at_fixed_recall and recall_at_fixed_precision to correctly return NaN thresholds when recall/precision conditions are not met (#3226)

[1.8.1] - 2025-08-07

Changed

  • Added reduction='none' to vif metric (#3196)
  • Float input support for segmentation metrics (#3198)

Fixed

  • Fixed unintended sigmoid normalization in BinaryPrecisionRecallCurve (#3182)

[1.8.0] - 2025-07-23

Added

  • Added VMAF metric to new video domain (#2991)
  • Added CRPS in regression domain (#3024)
  • Added aggregation_level argument to DiceScore (#3018)
  • Added support for reduction="none" to LearnedPerceptualImagePatchSimilarity (#3053)
  • Added support single str input for functional interface of bert_score (#3056)
  • Enhance: BERTScore to evaluate hypotheses against multiple references (#3069)
  • Added Lip Vertex Error (LVE) in multimodal domain (#3090)
  • Added antialias argument to FID metric (#3177)
  • Added mixed input format to segmentation metrics (#3176)

... (truncated)

Commits
  • 700261d Refactor GitHub Actions for PyPI publishing (#3334)
  • 2ec81e6 chore: update changelog & version for 1.9.0 (#3332)
  • 32f3e01 Fix race condition in _safe_divide by creating tensor directly on device (#...
  • 76d4262 Fix memory issues when computing retrieval metrics with high-valued indices (...
  • 8e1b7b3 chore: drop Python 3.9, set 3.10 as minimum (#3330)
  • 4d52812 fix device mismatch (#3316)
  • 41506c3 Docs: fix math blocks (#3325)
  • 18bd245 fix: replace pkg_resources with packaging and pin setuptools <82.0.0 (#3329)
  • bfcc276 Fix EER docstrings (#3312)
  • 52ea730 fix: add tuple cast to avoid nd slicing deprecation warning (#3319)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

📚 Documentation preview 📚: https://pytorch-lightning--21671.org.readthedocs.build/en/21671/

Updates the requirements on [torchmetrics](https://github.com/Lightning-AI/torchmetrics) to permit the latest version.
- [Release notes](https://github.com/Lightning-AI/torchmetrics/releases)
- [Changelog](https://github.com/Lightning-AI/torchmetrics/blob/master/CHANGELOG.md)
- [Commits](Lightning-AI/torchmetrics@v0.10.0...v1.9.0)

---
updated-dependencies:
- dependency-name: torchmetrics
  dependency-version: 1.9.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the ci Continuous Integration label Apr 20, 2026
@github-actions github-actions Bot added fabric lightning.fabric.Fabric pl Generic label for PyTorch Lightning package dependencies Pull requests that update a dependency file labels Apr 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 29, 2026

⚡ Required checks status: All passing 🟢

Groups summary

🟢 pytorch_lightning: Tests workflow
Check ID Status
pl-cpu-guardian success

These checks are required after the changes to requirements/fabric/examples.txt, requirements/pytorch/base.txt, requirements/pytorch/examples.txt.

🟢 pytorch_lightning: lit GPU
Check ID Status
pytorch.yml / Lit Job (nvidia/cuda:12.1.1-devel-ubuntu22.04, pytorch, 3.10) success
pytorch.yml / Lit Job (lightning, 3.12) success
pytorch.yml / Lit Job (pytorch, 3.12) success

These checks are required after the changes to requirements/pytorch/base.txt, requirements/pytorch/examples.txt, requirements/fabric/examples.txt.

🟢 Benchmarks
Check ID Status
benchmark.yml / Lit Job (fabric) success
benchmark.yml / Lit Job (pytorch) success

These checks are required after the changes to requirements/fabric/examples.txt, requirements/pytorch/base.txt, requirements/pytorch/examples.txt.

🟢 fabric: Docs
Check ID Status
docs-make (fabric, doctest) success
docs-make (fabric, html) success

These checks are required after the changes to requirements/fabric/examples.txt.

🟢 pytorch_lightning: Docs
Check ID Status
docs-make (pytorch, doctest) success
docs-make (pytorch, html) success

These checks are required after the changes to requirements/pytorch/base.txt, requirements/pytorch/examples.txt.

🟢 lightning_fabric: CPU workflow
Check ID Status
fabric-cpu-guardian success

These checks are required after the changes to requirements/fabric/examples.txt.

🟢 lightning_fabric: lit GPU
Check ID Status
fabric.yml / Lit Job (nvidia/cuda:12.1.1-devel-ubuntu22.04, fabric, 3.10) success
fabric.yml / Lit Job (fabric, 3.12) success
fabric.yml / Lit Job (lightning, 3.12) success

These checks are required after the changes to requirements/fabric/examples.txt.

🟢 mypy
Check ID Status
mypy success

These checks are required after the changes to requirements/fabric/examples.txt, requirements/pytorch/base.txt, requirements/pytorch/examples.txt.

🟢 install
Check ID Status
install-pkg-guardian success

These checks are required after the changes to requirements/fabric/examples.txt, requirements/pytorch/base.txt, requirements/pytorch/examples.txt.


Thank you for your contribution! 💜

Note
This comment is automatically generated and updates for 70 minutes every 180 seconds. If you have any other questions, contact carmocca for help.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87%. Comparing base (0e20e15) to head (e0db72f).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #21671   +/-   ##
=======================================
  Coverage      87%      87%           
=======================================
  Files         270      270           
  Lines       23973    23973           
=======================================
+ Hits        20748    20751    +3     
+ Misses       3225     3222    -3     

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous Integration dependencies Pull requests that update a dependency file fabric lightning.fabric.Fabric pl Generic label for PyTorch Lightning package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant