Skip to content

Commit 82eb3f2

Browse files
authored
Merge branch 'master' into warn-on-train-step-returning-none
2 parents 843cdb8 + 1af7f73 commit 82eb3f2

File tree

23 files changed

+48
-109
lines changed

23 files changed

+48
-109
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@
1818
/README.md @williamfalcon @lantiga
1919
/src/pytorch_lightning/__about__.py @williamfalcon @lantiga @borda
2020
/src/lightning_fabric/__about__.py @williamfalcon @lantiga @borda
21+
22+
/src/lightning/fabric/loggers @williamfalcon
23+
/src/lightning/pytorch/loggers @williamfalcon

.github/workflows/_legacy-checkpoints.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113

114114
- run: pip install -r requirements/ci.txt
115115
- name: Upload checkpoints to S3
116+
if: secrets.AWS_REGION != ''
116117
working-directory: ${{ env.LEGACY_FOLDER }}
117118
env:
118119
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}

docs/source-pytorch/visualize/loggers.rst

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -54,37 +54,3 @@ Track and Visualize Experiments
5454

5555
</div>
5656
</div>
57-
58-
.. _mlflow_logger:
59-
60-
MLflow Logger
61-
-------------
62-
63-
The MLflow logger in PyTorch Lightning now includes a `checkpoint_path_prefix` parameter. This parameter allows you to prefix the checkpoint artifact's path when logging checkpoints as artifacts.
64-
65-
Example usage:
66-
67-
.. code-block:: python
68-
69-
import lightning as L
70-
from lightning.pytorch.loggers import MLFlowLogger
71-
72-
mlf_logger = MLFlowLogger(
73-
experiment_name="lightning_logs",
74-
tracking_uri="file:./ml-runs",
75-
checkpoint_path_prefix="my_prefix"
76-
)
77-
trainer = L.Trainer(logger=mlf_logger)
78-
79-
# Your LightningModule definition
80-
class LitModel(L.LightningModule):
81-
def training_step(self, batch, batch_idx):
82-
# example
83-
self.logger.experiment.whatever_ml_flow_supports(...)
84-
85-
def any_lightning_module_function_or_hook(self):
86-
self.logger.experiment.whatever_ml_flow_supports(...)
87-
88-
# Train your model
89-
model = LitModel()
90-
trainer.fit(model)

requirements/ci.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ twine ==6.0.1
55
importlib-metadata <8.0.0
66
wget
77
pkginfo ==1.12.0
8-
packaging <24.2
8+
packaging <25.1

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.2.0
1818
jinja2 <3.2.0
1919

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

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

requirements/doctests.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pytest ==7.4.0
2-
pytest-doctestplus ==1.0.0
1+
pytest ==8.3.5
2+
pytest-doctestplus ==1.4.0

requirements/fabric/base.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
22
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
33

4-
torch >=2.1.0, <2.6.0
4+
torch >=2.1.0, <2.7.0
55
fsspec[http] >=2022.5.0, <2024.4.0
6-
packaging >=20.0, <=23.1
6+
packaging >=20.0, <=25.0
77
typing-extensions >=4.4.0, <4.11.0
8-
lightning-utilities >=0.10.0, <0.12.0
8+
lightning-utilities >=0.10.0, <0.15.0

requirements/fabric/examples.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
22
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
33

4-
torchvision >=0.16.0, <0.21.0
5-
torchmetrics >=0.10.0, <1.5.0
6-
lightning-utilities >=0.8.0, <0.12.0
4+
torchvision >=0.16.0, <0.22.0
5+
torchmetrics >=0.10.0, <1.8.0
6+
lightning-utilities >=0.8.0, <0.15.0

requirements/fabric/test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
coverage ==7.3.1
22
numpy >=1.17.2, <1.27.0
3-
pytest ==7.4.0
3+
pytest ==8.3.5
44
pytest-cov ==4.1.0
55
pytest-timeout ==2.1.0
66
pytest-rerunfailures ==12.0

requirements/pytorch/base.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
22
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
33

4-
torch >=2.1.0, <2.6.0
4+
torch >=2.1.0, <2.7.0
55
tqdm >=4.57.0, <4.67.0
66
PyYAML >=5.4, <6.1.0
77
fsspec[http] >=2022.5.0, <2024.4.0
8-
torchmetrics >=0.7.0, <1.5.0
9-
packaging >=20.0, <=23.1
8+
torchmetrics >=0.7.0, <1.8.0
9+
packaging >=20.0, <=25.0
1010
typing-extensions >=4.4.0, <4.11.0
11-
lightning-utilities >=0.10.0, <0.12.0
11+
lightning-utilities >=0.10.0, <0.15.0

0 commit comments

Comments
 (0)