Skip to content

Commit a02b39b

Browse files
committed
Merge remote-tracking branch 'origin/master' into bugfix/8962
2 parents cfd82a1 + ce0a977 commit a02b39b

File tree

418 files changed

+19028
-8462
lines changed

Some content is hidden

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

418 files changed

+19028
-8462
lines changed

.azure-pipelines/gpu-benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ jobs:
2828
cancelTimeoutInMinutes: "2"
2929
pool: gridai-spot-pool
3030
container:
31-
# base ML image: mcr.microsoft.com/azureml/openmpi3.1.2-cuda10.2-cudnn8-ubuntu18.04
32-
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.8-torch1.8"
31+
# should match the one in '.azure-pipelines/gpu-benchmark.yml'
32+
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.7-torch1.8"
3333
options: "--runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all --shm-size=32g"
3434
workspace:
3535
clean: all
3636

3737
steps:
3838
- bash: |
39-
python -m pytest benchmarks -v --durations=0
39+
python -m pytest tests/benchmarks -v --durations=0
4040
displayName: 'Testing: benchmarks'
4141
env:
4242
PL_RUNNING_BENCHMARKS: 1

.azure-pipelines/gpu-tests.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
# how much time to give 'run always even if cancelled tasks' before stopping them
2424
cancelTimeoutInMinutes: "2"
2525

26-
pool: gridai-spot-pool
26+
pool: azure-gpus-spot
2727

2828
# ToDo: this need to have installed docker in the base image...
2929
container:
@@ -50,8 +50,8 @@ jobs:
5050
5151
- bash: |
5252
python -c "fname = 'requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if 'horovod' not in line] ; open(fname, 'w').writelines(lines)"
53-
pip install fairscale>=0.3.4
54-
pip install "deepspeed==0.4.3" # FIXME: bug with >= 0.4.4
53+
pip install fairscale==0.4.0
54+
pip install deepspeed==0.5.4
5555
pip install . --requirement requirements/devel.txt
5656
pip list
5757
displayName: 'Install dependencies'
@@ -68,7 +68,7 @@ jobs:
6868
displayName: 'Get legacy checkpoints'
6969
7070
- bash: |
71-
python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
71+
python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests --ignore tests/benchmarks -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
7272
displayName: 'Testing: standard'
7373
7474
- bash: |
@@ -106,14 +106,12 @@ jobs:
106106
set -e
107107
python -m pytest pl_examples -v --maxfail=2 --durations=0
108108
bash pl_examples/run_examples.sh --trainer.gpus=1
109-
bash pl_examples/run_examples.sh --trainer.gpus=2 --trainer.accelerator=ddp
110-
bash pl_examples/run_examples.sh --trainer.gpus=2 --trainer.accelerator=ddp --trainer.precision=16
111-
bash pl_examples/run_examples.sh --trainer.gpus=2 --trainer.accelerator=dp
112-
bash pl_examples/run_examples.sh --trainer.gpus=2 --trainer.accelerator=dp --trainer.precision=16
109+
bash pl_examples/run_examples.sh --trainer.gpus=2 --trainer.strategy=ddp
110+
bash pl_examples/run_examples.sh --trainer.gpus=2 --trainer.strategy=ddp --trainer.precision=16
113111
env:
114112
PL_USE_MOCKED_MNIST: "1"
115113
displayName: 'Testing: examples'
116114
117115
- bash: |
118-
python -m pytest benchmarks -v --maxfail=2 --durations=0
116+
python -m pytest tests/benchmarks -v --maxfail=2 --durations=0
119117
displayName: 'Testing: benchmarks'

.codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ coverage:
4545
patch:
4646
default:
4747
target: 50% # specify the target "X%" coverage to hit
48-
# threshold: 50% # allow this much decrease on patch
48+
threshold: 5% # allow this much decrease on patch
4949
changes: false
5050

5151
# https://docs.codecov.com/docs/github-checks#disabling-github-checks-patch-annotations

.deepsource.toml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# the repo. Unless a later match takes precedence,
66
# @global-owner1 and @global-owner2 will be requested for
77
# review when someone opens a pull request.
8-
* @williamfalcon @borda @tchaton @SeanNaren @carmocca @awaelchli @justusschock @kaushikb11
8+
* @williamfalcon @borda @tchaton @SeanNaren @carmocca @awaelchli @justusschock @kaushikb11 @rohitgr7
99

1010
# CI/CD and configs
1111
/.github/ @borda @tchaton @carmocca
@@ -23,6 +23,7 @@
2323
/pytorch_lightning/callbacks @williamfalcon @tchaton @carmocca @borda @kaushikb11
2424
/pytorch_lightning/core @tchaton @SeanNaren @borda @carmocca @justusschock @kaushikb11
2525
/pytorch_lightning/distributed @williamfalcon @tchaton @awaelchli @kaushikb11
26+
/pytorch_lightning/lite @tchaton @awaelchli @carmocca
2627
/pytorch_lightning/loggers @tchaton @awaelchli @borda
2728
/pytorch_lightning/loggers/wandb.py @borisdayma
2829
/pytorch_lightning/loggers/neptune.py @shnela @HubertJaworski @pkasprzyk @pitercl @Raalsky @aniezurawski @kamil-kaczmarek

.github/CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,6 @@ def test_explain_what_is_being_tested(tmpdir):
316316
Test description about text reason to be
317317
"""
318318

319-
# os.environ["PL_DEV_DEBUG"] = '1' # [OPTIONAL] When activated, you can use internal trainer.dev_debugger
320-
321319
class ExtendedModel(BoringModel):
322320
...
323321

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
22
name: Bug report
3-
about: Create a report to help us improve
3+
about: Create a bug report to help us improve
44
title: ''
5-
labels: bug / fix, help wanted
5+
labels: bug
66
assignees: ''
77
---
88

99
## 🐛 Bug
1010

11-
<!-- A clear and concise description of what the bug is. -->
11+
<!-- A clear and concise description of the bug. -->
1212

1313
### To Reproduce
1414

1515
<!--
1616
Please reproduce using the BoringModel!
1717
1818
You can use the following Colab link:
19-
https://colab.research.google.com/drive/1HvWVVTK8j2Nj52qU4Q4YCyzOm0_aLQF3?usp=sharing
19+
https://colab.research.google.com/github/PytorchLightning/pytorch-lightning/blob/master/pl_examples/bug_report/The_BoringModel.ipynb
2020
IMPORTANT: has to be public.
2121
2222
or this simple template:

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
name: Typos and doc fixes
3-
about: Typos and doc fixes
3+
about: Tell us about how we can improve our documentation
44
title: ''
5-
labels: documentation
5+
labels: docs
66
assignees: ''
77
---
88

@@ -17,3 +17,17 @@ For typos and doc fixes, please go ahead and:
1717
For very simple fixes, you can submit a PR without a linked issue.
1818

1919
Thanks!
20+
21+
______________________________________________________________________
22+
23+
#### If you enjoy Lightning, check out our other projects! ⚡
24+
25+
- [**Metrics**](https://github.com/PyTorchLightning/metrics): Machine learning metrics for distributed, scalable PyTorch applications.
26+
27+
- [**Lite**](https://pytorch-lightning.readthedocs.io/en/latest/starter/lightning_lite.html): enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.
28+
29+
- [**Flash**](https://github.com/PyTorchLightning/lightning-flash): The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.
30+
31+
- [**Bolts**](https://github.com/PyTorchLightning/lightning-bolts): Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.
32+
33+
- [**Lightning Transformers**](https://github.com/PyTorchLightning/lightning-transformers): Flexible interface for high-performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
name: Feature request
3-
about: Suggest an idea for this project
3+
about: Propose a feature for this project
44
title: ''
5-
labels: enhancement
5+
labels: feature
66
assignees: ''
77
---
88

@@ -12,7 +12,7 @@ assignees: ''
1212

1313
### Motivation
1414

15-
<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
15+
<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link it here -->
1616

1717
### Pitch
1818

@@ -30,14 +30,12 @@ ______________________________________________________________________
3030

3131
#### If you enjoy Lightning, check out our other projects! ⚡
3232

33-
<sub>
34-
3533
- [**Metrics**](https://github.com/PyTorchLightning/metrics): Machine learning metrics for distributed, scalable PyTorch applications.
3634

37-
- [**Flash**](https://github.com/PyTorchLightning/lightning-flash): The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, finetuning and solving problems with deep learning
35+
- [**Lite**](https://pytorch-lightning.readthedocs.io/en/latest/starter/lightning_lite.html): enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.
3836

39-
- [**Bolts**](https://github.com/PyTorchLightning/lightning-bolts): Pretrained SOTA Deep Learning models, callbacks and more for research and production with PyTorch Lightning and PyTorch
37+
- [**Flash**](https://github.com/PyTorchLightning/lightning-flash): The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.
4038

41-
- [**Lightning Transformers**](https://github.com/PyTorchLightning/lightning-transformers): Flexible interface for high performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.
39+
- [**Bolts**](https://github.com/PyTorchLightning/lightning-bolts): Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.
4240

43-
</sub>
41+
- [**Lightning Transformers**](https://github.com/PyTorchLightning/lightning-transformers): Flexible interface for high-performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
name: Code improvement
3-
about: Suggest a code improvement, i.e. refactoring, deprecation, etc.
2+
name: Refactor
3+
about: Suggest a code refactor or deprecation
44
title: ''
5-
labels: refactors / code health
5+
labels: refactor
66
assignees: ''
77
---
88

9-
## Proposed refactoring or deprecation
9+
## Proposed refactor
1010

11-
<!-- A clear and concise description of the code improvement -->
11+
<!-- A clear and concise description of the refactor -->
1212

1313
### Motivation
1414

15-
<!-- Please outline the motivation for the proposal. If this is related to another GitHub issue, please link here too -->
15+
<!-- Please outline the motivation for the proposal. If this is related to another GitHub issue, please link it here -->
1616

1717
### Pitch
1818

@@ -26,14 +26,12 @@ ______________________________________________________________________
2626

2727
#### If you enjoy Lightning, check out our other projects! ⚡
2828

29-
<sub>
30-
3129
- [**Metrics**](https://github.com/PyTorchLightning/metrics): Machine learning metrics for distributed, scalable PyTorch applications.
3230

33-
- [**Flash**](https://github.com/PyTorchLightning/lightning-flash): The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, finetuning and solving problems with deep learning
31+
- [**Lite**](https://pytorch-lightning.readthedocs.io/en/latest/starter/lightning_lite.html): enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.
3432

35-
- [**Bolts**](https://github.com/PyTorchLightning/lightning-bolts): Pretrained SOTA Deep Learning models, callbacks and more for research and production with PyTorch Lightning and PyTorch
33+
- [**Flash**](https://github.com/PyTorchLightning/lightning-flash): The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.
3634

37-
- [**Lightning Transformers**](https://github.com/PyTorchLightning/lightning-transformers): Flexible interface for high performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.
35+
- [**Bolts**](https://github.com/PyTorchLightning/lightning-bolts): Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.
3836

39-
</sub>
37+
- [**Lightning Transformers**](https://github.com/PyTorchLightning/lightning-transformers): Flexible interface for high-performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.

.github/lightning-probot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tracking_issue: 10530

.github/mergify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pull_request_rules:
4545
- "#changes-requested-reviews-by=0" # no requested changes
4646
actions:
4747
label:
48-
add: [ "0:] Ready-To-Go" ]
48+
add: [ "ready" ]
4949

5050
- name: Not ready yet
5151
conditions:
@@ -54,13 +54,13 @@ pull_request_rules:
5454
- "#changes-requested-reviews-by>=1" # no requested changes
5555
actions:
5656
label:
57-
remove: [ "0:] Ready-To-Go" ]
57+
remove: [ "ready" ]
5858

5959
- name: add core reviewer
6060
conditions:
6161
- -conflict # skip if conflict
6262
- -draft # filter-out GH draft PRs
63-
- label="0:] Ready-To-Go"
63+
- label="ready"
6464
- "#approved-reviews-by<3" # number of review approvals
6565
- "#review-requested<3" # number of requested reviews
6666
actions:

.github/stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ issues:
88
daysUntilClose: 7
99
# Issues with these labels will never be considered stale
1010
exemptLabels:
11-
- Important
12-
- Priority
11+
- "priority: 0"
12+
- "priority: 1"
1313
# Comment to post when marking an issue as stale. Set to `false` to disable
1414
markComment: >
1515
This issue has been automatically marked as stale because it hasn't had any recent activity.

0 commit comments

Comments
 (0)