Skip to content

Commit 3c1c5b0

Browse files
authored
Merge branch 'master' into bugfix/20852_add-support-for-xla2.7-which-deprecated-methods
2 parents 4e00bd4 + 95ad9c2 commit 3c1c5b0

File tree

10 files changed

+24
-12
lines changed

10 files changed

+24
-12
lines changed

.github/workflows/call-clear-cache.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
jobs:
2424
cron-clear:
2525
if: github.event_name == 'schedule' || github.event_name == 'pull_request'
26-
uses: Lightning-AI/utilities/.github/workflows/cleanup-caches.yml@v0.14.3
26+
uses: Lightning-AI/utilities/.github/workflows/cleanup-caches.yml@v0.15.0
2727
with:
2828
scripts-ref: v0.14.3
2929
dry-run: ${{ github.event_name == 'pull_request' }}
@@ -32,7 +32,7 @@ jobs:
3232

3333
direct-clear:
3434
if: github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request'
35-
uses: Lightning-AI/utilities/.github/workflows/cleanup-caches.yml@v0.14.3
35+
uses: Lightning-AI/utilities/.github/workflows/cleanup-caches.yml@v0.15.0
3636
with:
3737
scripts-ref: v0.14.3
3838
dry-run: ${{ github.event_name == 'pull_request' }}

.github/workflows/ci-schema.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
check:
11-
uses: Lightning-AI/utilities/.github/workflows/check-schema.yml@v0.14.3
11+
uses: Lightning-AI/utilities/.github/workflows/check-schema.yml@v0.15.0
1212
with:
1313
# skip azure due to the wrong schema file by MSFT
1414
# https://github.com/Lightning-AI/lightning-flash/pull/1455#issuecomment-1244793607

requirements/docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ sphinx-rtd-dark-mode
1717
sphinxcontrib-video ==0.4.1
1818
jinja2 <3.2.0
1919

20-
lightning-utilities >=0.11.1, <0.15.0
20+
lightning-utilities >=0.11.1, <0.16.0
2121

2222
# installed from S3 location and fetched in advance
2323
lai-sphinx-theme

requirements/fabric/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ torch >=2.1.0, <2.8.0
55
fsspec[http] >=2022.5.0, <2025.8.0
66
packaging >=20.0, <=25.0
77
typing-extensions >=4.5.0, <4.15.0
8-
lightning-utilities >=0.10.0, <0.15.0
8+
lightning-utilities >=0.10.0, <0.16.0

requirements/fabric/examples.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
33

44
torchvision >=0.16.0, <0.23.0
5-
torchmetrics >=0.10.0, <1.8.0
5+
torchmetrics >=0.10.0, <1.9.0

requirements/pytorch/base.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ torch >=2.1.0, <=2.8.0
55
tqdm >=4.57.0, <4.68.0
66
PyYAML >5.4, <6.1.0
77
fsspec[http] >=2022.5.0, <2025.8.0
8-
torchmetrics >0.7.0, <1.8.0
8+
torchmetrics >0.7.0, <1.9.0
99
packaging >=20.0, <=25.0
1010
typing-extensions >=4.5.0, <4.15.0
11-
lightning-utilities >=0.10.0, <0.15.0
11+
lightning-utilities >=0.10.0, <0.16.0

requirements/pytorch/examples.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
requests <2.33.0
55
torchvision >=0.16.0, <0.23.0
66
ipython[all] <8.19.0
7-
torchmetrics >=0.10.0, <1.8.0
7+
torchmetrics >=0.10.0, <1.9.0

requirements/pytorch/extra.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ matplotlib>3.1, <3.10.0
66
omegaconf >=2.2.3, <2.4.0
77
hydra-core >=1.2.0, <1.4.0
88
jsonargparse[signatures,jsonnet] >=4.39.0, <4.41.0
9-
rich >=12.3.0, <14.1.0
9+
rich >=12.3.0, <14.2.0
1010
tensorboardX >=2.2, <2.7.0 # min version is set by torch.onnx missing attribute
1111
bitsandbytes >=0.45.2,<0.47.0; platform_system != "Darwin"

src/lightning/pytorch/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
2525

2626
### Fixed
2727

28-
-
28+
- fix progress bar console clearing for Rich `14.1+` ([#21016](https://github.com/Lightning-AI/pytorch-lightning/pull/21016))
2929

3030

3131
---

src/lightning/pytorch/callbacks/progress/rich_progress.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,19 @@ def _init_progress(self, trainer: "pl.Trainer") -> None:
331331
self._reset_progress_bar_ids()
332332
reconfigure(**self._console_kwargs)
333333
self._console = get_console()
334-
self._console.clear_live()
334+
335+
# Compatibility shim for Rich >= 14.1.0:
336+
if hasattr(self._console, "_live_stack"):
337+
# In recent Rich releases, the internal `_live` variable was replaced with `_live_stack` (a list)
338+
# to support nested Live displays. This broke our original call to `clear_live()`,
339+
# because it now only pops one Live instance instead of clearing them all.
340+
# We check for `_live_stack` and clear it manually for compatibility across
341+
# both old and new Rich versions.
342+
if len(self._console._live_stack) > 0:
343+
self._console.clear_live()
344+
else:
345+
self._console.clear_live()
346+
335347
self._metric_component = MetricsTextColumn(
336348
trainer,
337349
self.theme.metrics,

0 commit comments

Comments
 (0)