Skip to content

Commit 44e88a4

Browse files
Merge branch 'master' into feature/13324_validation-interval
2 parents 74368ae + 91ec79f commit 44e88a4

File tree

16 files changed

+105
-22
lines changed

16 files changed

+105
-22
lines changed

.github/workflows/ci-tests-fabric.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
run: |
9797
cd requirements/fabric
9898
pip install -U "lightning-utilities[cli]"
99-
python -m lightning_utilities.cli requirements set-oldest --req_files "['base.txt', 'strategies.txt']"
99+
python -m lightning_utilities.cli requirements set-oldest --req_files "['base.txt', 'strategies.txt', 'test.txt']"
100100
pip install "cython<3.0" wheel
101101
pip install "pyyaml==5.4" --no-build-isolation
102102
@@ -142,7 +142,8 @@ jobs:
142142
run: |
143143
pip install -e ".[${EXTRA_PREFIX}test,${EXTRA_PREFIX}strategies]" \
144144
-U --upgrade-strategy=eager --prefer-binary \
145-
--extra-index-url="${TORCH_URL}" --find-links="${PYPI_CACHE_DIR}"
145+
--extra-index-url="${TORCH_URL}" \
146+
--find-links="${PYPI_CACHE_DIR}"
146147
pip list
147148
- name: Dump handy wheels
148149
if: github.event_name == 'push' && github.ref == 'refs/heads/master'

.github/workflows/ci-tests-pytorch.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
run: |
102102
cd requirements/pytorch
103103
pip install -U "lightning-utilities[cli]"
104-
python -m lightning_utilities.cli requirements set-oldest --req_files "['base.txt', 'extra.txt', 'strategies.txt', 'examples.txt']"
104+
python -m lightning_utilities.cli requirements set-oldest --req_files "['base.txt', 'extra.txt', 'strategies.txt', 'examples.txt', 'test.txt']"
105105
pip install "cython<3.0" wheel
106106
pip install "pyyaml==5.4" --no-build-isolation
107107
@@ -141,7 +141,9 @@ jobs:
141141
pip install ".[${EXTRA_PREFIX}extra,${EXTRA_PREFIX}test,${EXTRA_PREFIX}strategies]" \
142142
-U --upgrade-strategy=eager --prefer-binary \
143143
-r requirements/_integrations/accelerators.txt \
144-
--extra-index-url="${TORCH_URL}" --find-links="${PYPI_CACHE_DIR}" --find-links="https://download.pytorch.org/whl/torch-tensorrt"
144+
--extra-index-url="${TORCH_URL}" \
145+
--find-links="${PYPI_CACHE_DIR}" \
146+
--find-links="https://download.pytorch.org/whl/torch-tensorrt"
145147
pip list
146148
- name: Drop LAI from extensions
147149
if: ${{ matrix.pkg-name != 'lightning' }}

docs/source-pytorch/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def _load_py_module(name: str, location: str) -> ModuleType:
127127
"https://pytorch.org/docs/stable/", "https://pytorch.org/docs/{torch.__version__}/", _PATH_ROOT
128128
)
129129
adjust_linked_external_docs(
130-
"https://lightning.ai/docs/torchmetrics", "https://lightning.ai/docs/torchmetrics/v{torchmetrics.__version__}/", _PATH_ROOT, version_digits=3
130+
"https://lightning.ai/docs/torchmetrics/stable/", "https://lightning.ai/docs/torchmetrics/v{torchmetrics.__version__}/", _PATH_ROOT, version_digits=3
131131
)
132132
adjust_linked_external_docs(
133133
"https://lightning.ai/docs/fabric/stable/", "https://lightning.ai/docs/fabric/{lightning_fabric.__version__}/", _PATH_ROOT, version_digits=3

docs/source-pytorch/extensions/logging.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ methods to log from anywhere in a :doc:`LightningModule <../common/lightning_mod
120120
.. note::
121121
Everything explained below applies to both :meth:`~lightning.pytorch.core.LightningModule.log` or :meth:`~lightning.pytorch.core.LightningModule.log_dict` methods.
122122

123+
.. note::
124+
125+
When using TorchMetrics with Lightning, we recommend referring to the `TorchMetrics Lightning integration documentation <https://lightning.ai/docs/torchmetrics/stable/pages/lightning.html>`_ for logging best practices, common pitfalls, and proper usage patterns.
126+
123127
Depending on where the :meth:`~lightning.pytorch.core.LightningModule.log` method is called, Lightning auto-determines
124128
the correct logging mode for you. Of course you can override the default behavior by manually setting the
125129
:meth:`~lightning.pytorch.core.LightningModule.log` parameters.

requirements/docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sphinx >5.0, <6.0
2-
myst-parser >=0.18.1, <4.0.0
2+
myst-parser >=0.18.1, <5.0.0
33
nbsphinx >=0.8.5, <=0.9.7
44
nbconvert >7.14, <7.17
55
pandoc >=1.0, <=2.4

requirements/fabric/test.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
coverage ==7.10.4
2-
numpy >=1.17.2, <1.27.0
1+
coverage ==7.10.5
2+
numpy >=1.21.0, <1.27.0
33
pytest ==8.4.1
44
pytest-cov ==6.2.1
55
pytest-timeout ==2.4.0
66
pytest-rerunfailures ==15.1
77
pytest-random-order ==1.2.0
88
click ==8.1.8; python_version < "3.11"
99
click ==8.2.1; python_version > "3.10"
10-
tensorboardX >=2.2, <2.7.0 # min version is set by torch.onnx missing attribute
10+
tensorboardX >=2.6, <2.7.0 # todo: relax it back to `>=2.2` after fixing tests

requirements/pytorch/docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ nbformat # used for generate empty notebook
44
ipython[notebook] <9.5.0
55
setuptools<81.0 # workaround for `error in ipython setup command: use_2to3 is invalid.`
66

7-
onnxscript >= 0.2.2, <0.4.0
7+
onnxscript >= 0.2.2, < 0.5.0
88

99
#-r ../../_notebooks/.actions/requires.txt

requirements/pytorch/loggers.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ neptune >=1.0.0
44
comet-ml >=3.31.0
55
mlflow >=1.0.0
66
wandb >=0.12.10
7-
tensorboard >=2.9.1
7+
tensorboard >=2.11

requirements/pytorch/test.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
coverage ==7.10.4
1+
coverage ==7.10.5
22
pytest ==8.4.1
33
pytest-cov ==6.2.1
44
pytest-timeout ==2.4.0
@@ -8,16 +8,16 @@ pytest-random-order ==1.2.0
88
# needed in tests
99
cloudpickle >=1.3, <3.2.0
1010
scikit-learn >0.22.1, <1.8.0
11-
numpy >=1.17.2, <1.27.0
12-
onnx >=1.12.0, <1.19.0
11+
numpy >1.20.0, <1.27.0
12+
onnx >1.12.0, <1.19.0
1313
onnxruntime >=1.12.0, <1.23.0
14-
onnxscript >= 0.2.2, <0.4.0
14+
onnxscript >= 0.1.0, < 0.5.0
1515
psutil <7.0.1 # for `DeviceStatsMonitor`
1616
pandas >2.0, <2.4.0 # needed in benchmarks
1717
fastapi # for `ServableModuleValidator` # not setting version as re-defined in App
1818
uvicorn # for `ServableModuleValidator` # not setting version as re-defined in App
1919

20-
tensorboard >=2.9.1, <2.21.0 # for `TensorBoardLogger`
20+
tensorboard >=2.11, <2.21.0 # for `TensorBoardLogger`
2121

2222
--find-links https://download.pytorch.org/whl/torch-tensorrt
2323
torch-tensorrt; platform_system == "Linux" and python_version >= "3.12"

src/lightning/pytorch/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
3737
- Fixed learning rate not being correctly set after using `LearningRateFinder` callback ([#21068](https://github.com/Lightning-AI/pytorch-lightning/pull/21068))
3838

3939

40+
- Fixed misalignment column while using rich model summary in `DeepSpeedstrategy` ([#21100](https://github.com/Lightning-AI/pytorch-lightning/pull/21100))
41+
42+
43+
- Fixed `RichProgressBar` crashing when sanity checking using val dataloader with 0 len ([#21108](https://github.com/Lightning-AI/pytorch-lightning/pull/21108))
44+
4045
---
4146

4247
## [2.5.3] - 2025-08-13

0 commit comments

Comments
 (0)