Skip to content

Commit d3645c4

Browse files
authored
Merge branch 'master' into feature/trainer-compile-fn
2 parents 809c6c4 + a944e77 commit d3645c4

File tree

330 files changed

+1475
-673
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

330 files changed

+1475
-673
lines changed

.actions/assistant.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,25 @@ def convert_version2nightly(ver_file: str = "src/version.info") -> None:
481481
with open(ver_file, "w") as fo:
482482
fo.write(version + os.linesep)
483483

484+
@staticmethod
485+
def generate_docker_tags(
486+
release_version: str,
487+
python_version: str,
488+
torch_version: str,
489+
cuda_version: str,
490+
docker_project: str = "pytorchlightning/pytorch_lightning",
491+
add_latest: bool = False,
492+
) -> None:
493+
"""Generate docker tags for the given versions."""
494+
tags = [f"latest-py{python_version}-torch{torch_version}-cuda{cuda_version}"]
495+
if release_version:
496+
tags += [f"{release_version}-py{python_version}-torch{torch_version}-cuda{cuda_version}"]
497+
if add_latest:
498+
tags += ["latest"]
499+
500+
tags = [f"{docker_project}:{tag}" for tag in tags]
501+
print(",".join(tags))
502+
484503

485504
if __name__ == "__main__":
486505
import jsonargparse

.actions/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
jsonargparse >=4.16.0, <4.28.0
1+
jsonargparse >=4.16.0, <=4.35.0
22
requests
33
packaging

.azure/gpu-benchmarks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ jobs:
7575
pip list
7676
displayName: "Image info & NVIDIA"
7777
78-
- bash: pip install -e .[dev] --find-links ${TORCH_URL}
78+
- bash: |
79+
pip install -e .[dev] --find-links ${TORCH_URL}
80+
pip install setuptools==75.6.0 jsonargparse==4.35.0
7981
env:
8082
FREEZE_REQUIREMENTS: "1"
8183
displayName: "Install package"

.azure/gpu-tests-fabric.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ jobs:
107107
- bash: |
108108
extra=$(python -c "print({'lightning': 'fabric-'}.get('$(PACKAGE_NAME)', ''))")
109109
pip install -e ".[${extra}dev]" pytest-timeout -U --find-links="${TORCH_URL}" --find-links="${TORCHVISION_URL}"
110+
pip install setuptools==75.6.0 jsonargparse==4.35.0
110111
displayName: "Install package & dependencies"
111112
112113
- bash: |

.azure/gpu-tests-pytorch.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111
- bash: |
112112
extra=$(python -c "print({'lightning': 'pytorch-'}.get('$(PACKAGE_NAME)', ''))")
113113
pip install -e ".[${extra}dev]" pytest-timeout -U --find-links="${TORCH_URL}" --find-links="${TORCHVISION_URL}"
114+
pip install setuptools==75.6.0 jsonargparse==4.35.0
114115
displayName: "Install package & dependencies"
115116
116117
- bash: pip uninstall -y lightning

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ We welcome any useful contribution! For your convenience here's a recommended wo
182182
1. Use tags in PR name for the following cases:
183183

184184
- **\[blocked by #<number>\]** if your work is dependent on other PRs.
185-
- **\[wip\]** when you start to re-edit your work, mark it so no one will accidentally merge it in meantime.
185+
- **[wip]** when you start to re-edit your work, mark it so no one will accidentally merge it in meantime.
186186

187187
### Question & Answer
188188

.github/ISSUE_TEMPLATE/1_bug_report.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ body:
3737
- "v2.2"
3838
- "v2.3"
3939
- "v2.4"
40+
- "v2.5"
4041
- "master"
4142
validations:
4243
required: true
@@ -91,8 +92,8 @@ body:
9192
<summary>Current environment</summary>
9293
9394
```
94-
#- PyTorch Lightning Version (e.g., 2.4.0):
95-
#- PyTorch Version (e.g., 2.4):
95+
#- PyTorch Lightning Version (e.g., 2.5.0):
96+
#- PyTorch Version (e.g., 2.5):
9697
#- Python version (e.g., 3.12):
9798
#- OS (e.g., Linux):
9899
#- CUDA/cuDNN version:

.github/advanced-issue-labeler.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ policy:
1616
keys: ["v2_3", "v2.3", "2.3.x"]
1717
- name: "ver: 2.4.x"
1818
keys: ["v2_4", "v2.4", "2.4.x"]
19-
- name: "ver: 2.4.x"
19+
- name: "ver: 2.5.x"
20+
keys: ["v2_5", "v2.5", "2.5.x"]
21+
- name: "ver: 2.5.x"
2022
keys: ["master"]

.github/checkgroup.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@ subprojects:
2323
- "pl-cpu (macOS-14, lightning, 3.10, 2.1)"
2424
- "pl-cpu (macOS-14, lightning, 3.11, 2.2.2)"
2525
- "pl-cpu (macOS-14, lightning, 3.11, 2.3)"
26-
- "pl-cpu (macOS-14, lightning, 3.12, 2.4.1)"
27-
- "pl-cpu (macOS-14, lightning, 3.12, 2.5.1)"
26+
- "pl-cpu (macOS-14, lightning, 3.12.7, 2.4.1)"
27+
- "pl-cpu (macOS-14, lightning, 3.12.7, 2.5.1)"
2828
- "pl-cpu (ubuntu-20.04, lightning, 3.9, 2.1, oldest)"
2929
- "pl-cpu (ubuntu-20.04, lightning, 3.10, 2.1)"
3030
- "pl-cpu (ubuntu-20.04, lightning, 3.11, 2.2.2)"
3131
- "pl-cpu (ubuntu-20.04, lightning, 3.11, 2.3)"
32-
- "pl-cpu (ubuntu-22.04, lightning, 3.12, 2.4.1)"
33-
- "pl-cpu (ubuntu-22.04, lightning, 3.12, 2.5.1)"
32+
- "pl-cpu (ubuntu-22.04, lightning, 3.12.7, 2.4.1)"
33+
- "pl-cpu (ubuntu-22.04, lightning, 3.12.7, 2.5.1)"
3434
- "pl-cpu (windows-2022, lightning, 3.9, 2.1, oldest)"
3535
- "pl-cpu (windows-2022, lightning, 3.10, 2.1)"
3636
- "pl-cpu (windows-2022, lightning, 3.11, 2.2.2)"
3737
- "pl-cpu (windows-2022, lightning, 3.11, 2.3)"
38-
- "pl-cpu (windows-2022, lightning, 3.12, 2.4.1)"
39-
- "pl-cpu (windows-2022, lightning, 3.12, 2.5.1)"
38+
- "pl-cpu (windows-2022, lightning, 3.12.7, 2.4.1)"
39+
- "pl-cpu (windows-2022, lightning, 3.12.7, 2.5.1)"
4040
- "pl-cpu (macOS-14, pytorch, 3.9, 2.1)"
4141
- "pl-cpu (ubuntu-20.04, pytorch, 3.9, 2.1)"
4242
- "pl-cpu (windows-2022, pytorch, 3.9, 2.1)"
43-
- "pl-cpu (macOS-14, pytorch, 3.12, 2.5.1)"
44-
- "pl-cpu (ubuntu-22.04, pytorch, 3.12, 2.5.1)"
45-
- "pl-cpu (windows-2022, pytorch, 3.12, 2.5.1)"
43+
- "pl-cpu (macOS-14, pytorch, 3.12.7, 2.5.1)"
44+
- "pl-cpu (ubuntu-22.04, pytorch, 3.12.7, 2.5.1)"
45+
- "pl-cpu (windows-2022, pytorch, 3.12.7, 2.5.1)"
4646

4747
- id: "pytorch_lightning: Azure GPU"
4848
paths:
@@ -145,17 +145,17 @@ subprojects:
145145
- "!*.md"
146146
- "!**/*.md"
147147
checks:
148-
- "build-cuda (3.10, 2.1.2, 12.1.0)"
149-
- "build-cuda (3.11, 2.2.2, 12.1.0)"
150-
- "build-cuda (3.11, 2.3.1, 12.1.0)"
151-
- "build-cuda (3.11, 2.4.1, 12.1.0)"
152-
- "build-cuda (3.12, 2.5.1, 12.1.0)"
148+
- "build-cuda (3.10, 2.1.2, 12.1.1)"
149+
- "build-cuda (3.11, 2.2.2, 12.1.1)"
150+
- "build-cuda (3.11, 2.3.1, 12.1.1)"
151+
- "build-cuda (3.11, 2.4.1, 12.1.1)"
152+
- "build-cuda (3.12, 2.5.1, 12.1.1)"
153153
#- "build-NGC"
154-
- "build-pl (3.10, 2.1, 12.1.0)"
155-
- "build-pl (3.11, 2.2, 12.1.0)"
156-
- "build-pl (3.11, 2.3, 12.1.0)"
157-
- "build-pl (3.11, 2.4, 12.1.0)"
158-
- "build-pl (3.12, 2.5, 12.1.0)"
154+
- "build-pl (3.10, 2.1, 12.1.1)"
155+
- "build-pl (3.11, 2.2, 12.1.1)"
156+
- "build-pl (3.11, 2.3, 12.1.1)"
157+
- "build-pl (3.11, 2.4, 12.1.1)"
158+
- "build-pl (3.12, 2.5, 12.1.1, true)"
159159

160160
# SECTION: lightning_fabric
161161

@@ -176,26 +176,26 @@ subprojects:
176176
- "fabric-cpu (macOS-14, lightning, 3.10, 2.1)"
177177
- "fabric-cpu (macOS-14, lightning, 3.11, 2.2.2)"
178178
- "fabric-cpu (macOS-14, lightning, 3.11, 2.3)"
179-
- "fabric-cpu (macOS-14, lightning, 3.12, 2.4.1)"
180-
- "fabric-cpu (macOS-14, lightning, 3.12, 2.5.1)"
179+
- "fabric-cpu (macOS-14, lightning, 3.12.7, 2.4.1)"
180+
- "fabric-cpu (macOS-14, lightning, 3.12.7, 2.5.1)"
181181
- "fabric-cpu (ubuntu-20.04, lightning, 3.9, 2.1, oldest)"
182182
- "fabric-cpu (ubuntu-20.04, lightning, 3.10, 2.1)"
183183
- "fabric-cpu (ubuntu-20.04, lightning, 3.11, 2.2.2)"
184184
- "fabric-cpu (ubuntu-20.04, lightning, 3.11, 2.3)"
185-
- "fabric-cpu (ubuntu-22.04, lightning, 3.12, 2.4.1)"
186-
- "fabric-cpu (ubuntu-22.04, lightning, 3.12, 2.5.1)"
185+
- "fabric-cpu (ubuntu-22.04, lightning, 3.12.7, 2.4.1)"
186+
- "fabric-cpu (ubuntu-22.04, lightning, 3.12.7, 2.5.1)"
187187
- "fabric-cpu (windows-2022, lightning, 3.9, 2.1, oldest)"
188188
- "fabric-cpu (windows-2022, lightning, 3.10, 2.1)"
189189
- "fabric-cpu (windows-2022, lightning, 3.11, 2.2.2)"
190190
- "fabric-cpu (windows-2022, lightning, 3.11, 2.3)"
191-
- "fabric-cpu (windows-2022, lightning, 3.12, 2.4.1)"
192-
- "fabric-cpu (windows-2022, lightning, 3.12, 2.5.1)"
191+
- "fabric-cpu (windows-2022, lightning, 3.12.7, 2.4.1)"
192+
- "fabric-cpu (windows-2022, lightning, 3.12.7, 2.5.1)"
193193
- "fabric-cpu (macOS-14, fabric, 3.9, 2.1)"
194194
- "fabric-cpu (ubuntu-20.04, fabric, 3.9, 2.1)"
195195
- "fabric-cpu (windows-2022, fabric, 3.9, 2.1)"
196-
- "fabric-cpu (macOS-14, fabric, 3.12, 2.5.1)"
197-
- "fabric-cpu (ubuntu-22.04, fabric, 3.12, 2.5.1)"
198-
- "fabric-cpu (windows-2022, fabric, 3.12, 2.5.1)"
196+
- "fabric-cpu (macOS-14, fabric, 3.12.7, 2.5.1)"
197+
- "fabric-cpu (ubuntu-22.04, fabric, 3.12.7, 2.5.1)"
198+
- "fabric-cpu (windows-2022, fabric, 3.12.7, 2.5.1)"
199199

200200
- id: "lightning_fabric: Azure GPU"
201201
paths:

.github/workflows/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Brief description of all our automation tools used for boosting development perf
1616
| .azure-pipelines/gpu-benchmarks.yml | Run speed/memory benchmarks for parity with vanila PyTorch. | GPU |
1717
| .github/workflows/ci-flagship-apps.yml | Run end-2-end tests with full applications, including deployment to the production cloud. | CPU |
1818
| .github/workflows/ci-tests-pytorch.yml | Run all tests except for accelerator-specific, standalone and slow tests. | CPU |
19-
| .github/workflows/tpu-tests.yml | Run only TPU-specific tests. Requires that the PR title contains '\[TPU\]' | TPU |
19+
| .github/workflows/tpu-tests.yml | Run only TPU-specific tests. Requires that the PR title contains '[TPU]' | TPU |
2020

2121
\* Each standalone test needs to be run in separate processes to avoid unwanted interactions between test cases.
2222

0 commit comments

Comments
 (0)