Skip to content

Commit a8a3519

Browse files
BordaSeanNarenqqpannethanwharriscarmocca
authored
release: 1.8.5.post (#16086)
* Add function to remove checkpoint to allow override for extended classes (#16067) (cherry picked from commit 10cc677) * minor fix: indent spaces in comment-out (#16076) (cherry picked from commit 385e5e2) * ci: print existing candidates (#16077) (cherry picked from commit 9e89aed) * [App] Fix bug where previously deleted apps cannot be re-run from the CLI (#16082) (cherry picked from commit 5f7403e) * Better check for programmatic lightningignore (#16080) Co-authored-by: Jirka Borovec <[email protected]> (cherry picked from commit b1ce263) * [App] Removing single quote (#16079) (cherry picked from commit 005b6f2) * version 1.8.5.post0 * skip example test that relies on unreleased lite code The examples use LightningLite syntax without the run method, which is only available in master * fix can't instantiate abstract class [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci fix * skip bagua Co-authored-by: Sean Naren <[email protected]> Co-authored-by: Qiushi Pan <[email protected]> Co-authored-by: Ethan Harris <[email protected]> Co-authored-by: Carlos Mocholí <[email protected]> Co-authored-by: Sherin Thomas <[email protected]> Co-authored-by: awaelchli <[email protected]>
1 parent e5d5901 commit a8a3519

File tree

29 files changed

+188
-112
lines changed

29 files changed

+188
-112
lines changed

.github/workflows/ci-app-examples.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ jobs:
8989
- name: Install Lightning package
9090
env:
9191
PACKAGE_NAME: ${{ matrix.pkg-name }}
92-
run: pip install -e .
92+
# do not use -e because it will make both packages available since it adds `src` to `sys.path` automatically
93+
run: pip install .
9394

9495
- name: Adjust tests
9596
if: ${{ matrix.pkg-name == 'lightning' }}

.github/workflows/release-pypi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
branch = f"origin/builds/{os.getenv('TAG')}"
109109
while True:
110110
remote_refs = [b.name for b in repo.remote().refs]
111+
print([n for n in remote_refs if "builds" in n])
111112
if branch in remote_refs:
112113
break
113114
time.sleep(60)

docs/source-app/levels/basic/hello_components/pl_multinode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def run(self):
1010
trainer = L.Trainer(max_epochs=10, strategy="ddp")
1111
trainer.fit(model)
1212

13-
# 8 GPU: (2 nodes of 4 x v100)
13+
# 8 GPUs: (2 nodes of 4 x v100)
1414
component = LightningTrainerMultiNode(
1515
LightningTrainerDistributed,
1616
num_nodes=4,

examples/app_multi_node/train_lite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def run(self):
3131
optimizer.step()
3232

3333

34-
# Run over 2 nodes of 4 x V100
34+
# 8 GPUs: (2 nodes of 4 x v100)
3535
app = L.LightningApp(
3636
LiteMultiNode(
3737
LitePyTorchDistributed,

examples/app_multi_node/train_lt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ def run(self):
1111
trainer.fit(model)
1212

1313

14-
# 8 GPU: (2 nodes of 4 x v100)
14+
# 8 GPUs: (2 nodes of 4 x v100)
1515
component = LightningTrainerMultiNode(
1616
LightningTrainerDistributed,
17-
num_nodes=4,
17+
num_nodes=2,
1818
cloud_compute=L.CloudCompute("gpu-fast-multi"), # 4 x v100
1919
)
2020
app = L.LightningApp(component)

examples/app_multi_node/train_lt_script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
from lightning.app.components import LightningTrainerScript
33
from lightning.app.utilities.packaging.cloud_compute import CloudCompute
44

5-
# Run over 2 nodes of 4 x V100
5+
# 8 GPUs: (2 nodes of 4 x v100)
66
app = L.LightningApp(
77
LightningTrainerScript(
88
"pl_boring_script.py",
99
num_nodes=2,
10-
cloud_compute=CloudCompute("gpu-fast-multi"),
10+
cloud_compute=CloudCompute("gpu-fast-multi"), # 4 x v100
1111
),
1212
)

examples/app_multi_node/train_pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ def run(self, main_address: str, main_port: int, num_nodes: int, node_rank: int)
5656

5757

5858
# 8 GPUs: (2 nodes x 4 v 100)
59-
compute = L.CloudCompute("gpu-fast-multi") # 4xV100
59+
compute = L.CloudCompute("gpu-fast-multi") # 4 x v100
6060
component = MultiNode(PyTorchDistributed, num_nodes=2, cloud_compute=compute)
6161
app = L.LightningApp(component)

examples/app_multi_node/train_pytorch_spawn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def run(
4242
optimizer.step()
4343

4444

45-
# Run over 2 nodes of 4 x V100
45+
# 8 GPUs: (2 nodes x 4 v 100)
4646
app = L.LightningApp(
4747
PyTorchSpawnMultiNode(
4848
PyTorchDistributed,
4949
num_nodes=2,
50-
cloud_compute=L.CloudCompute("gpu-fast-multi"), # 4 x V100
50+
cloud_compute=L.CloudCompute("gpu-fast-multi"), # 4 x v100
5151
)
5252
)

examples/pl_loops/kfold.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ def test_step(self, batch: Any, batch_idx: int, dataloader_idx: int = 0) -> None
152152
# self.reset(...) #
153153
# self.on_run_start(...) #
154154
# #
155-
# while not self.done: #
156-
# self.on_advance_start(...) #
157-
# self.advance(...) #
158-
# self.on_advance_end(...) #
155+
# while not self.done: #
156+
# self.on_advance_start(...) #
157+
# self.advance(...) #
158+
# self.on_advance_end(...) #
159159
# #
160-
# return self.on_run_end(...) #
160+
# return self.on_run_end(...) #
161161
#############################################################################################
162162

163163

src/lightning/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "1.8.5"
1+
version = "1.8.5.post0"

0 commit comments

Comments
 (0)