Skip to content

Commit 241f7c9

Browse files
committed
Release 2.2.1
1 parent 0d58476 commit 241f7c9

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

Diff for: docs/source-pytorch/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -624,4 +624,6 @@ def package_list_from_file(file):
624624
"https://www.intel.com/content/www/us/en/products/docs/processors/what-is-a-gpu.html",
625625
"https://www.microsoft.com/en-us/research/blog/zero-infinity-and-deepspeed-unlocking-unprecedented-model-scale-for-deep-learning-training/", # noqa: E501
626626
"https://stackoverflow.com/questions/66640705/how-can-i-install-grpcio-on-an-apple-m1-silicon-laptop",
627+
"https://github.com/Lightning-AI/lightning/blob/master/examples/pytorch/ipu/mnist_sample.py",
628+
"https://catalog.ngc.nvidia.com/orgs/nvidia/containers/nemo", # in ecosystem/asr_nlp_tts.rst
627629
]

Diff for: src/lightning/app/core/app.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,9 @@ def _collect_deltas_from_ui_and_work_queues(self) -> List[Union[Delta, _APIReque
371371

372372
if work:
373373
delta = _delta_to_app_state_delta(
374-
self.root,
374+
self.root, # type: ignore[arg-type]
375375
work,
376-
deepcopy(delta.delta), # type: ignore[arg-type]
376+
deepcopy(delta.delta),
377377
)
378378
deltas.append(delta)
379379
else:

Diff for: src/lightning/data/processing/dns.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def optimize_dns(enable: bool) -> None:
2525

2626
if (enable and any("127.0.0.53" in line for line in lines)) or (
2727
not enable and any("127.0.0.1" in line for line in lines)
28-
): # noqa E501
28+
): # E501
2929
Popen(
30-
f"sudo /home/zeus/miniconda3/envs/cloudspace/bin/python -c 'from lightning.data.processing.dns import _optimize_dns; _optimize_dns({enable})'",
30+
f"sudo /home/zeus/miniconda3/envs/cloudspace/bin/python -c 'from lightning.data.processing.dns import _optimize_dns; _optimize_dns({enable})'", # noqa E501
3131
shell=True,
32-
).wait() # noqa E501
32+
).wait()
3333

3434

3535
def _optimize_dns(enable: bool) -> None:

Diff for: src/lightning/fabric/strategies/fsdp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ def _distributed_checkpoint_save(converted_state: Dict[str, Any], path: Path) ->
927927

928928
# let torch automatically infer the writer to use. This might also support fsspec paths in the future
929929
# https://github.com/pytorch/pytorch/issues/118036
930-
save(converted_state, checkpoint_id=path) # type: ignore[call-arg]
930+
save(converted_state, checkpoint_id=path)
931931
else: # deprecated
932932
from torch.distributed.checkpoint import FileSystemWriter
933933

@@ -946,7 +946,7 @@ def _distributed_checkpoint_load(module_state: Dict[str, Any], path: Path) -> No
946946

947947
# let torch automatically infer the reader to use. This might also support fsspec paths in the future
948948
# https://github.com/pytorch/pytorch/issues/118036
949-
load(module_state, checkpoint_id=path) # type: ignore[call-arg]
949+
load(module_state, checkpoint_id=path)
950950
else: # deprecated
951951
from torch.distributed.checkpoint import FileSystemReader
952952

Diff for: src/lightning/pytorch/loggers/neptune.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def run(self) -> "Run":
403403
@override
404404
@rank_zero_only
405405
@_catch_inactive
406-
def log_hyperparams(self, params: Union[Dict[str, Any], Namespace]) -> None: # type: ignore[override]
406+
def log_hyperparams(self, params: Union[Dict[str, Any], Namespace]) -> None:
407407
r"""Log hyperparameters to the run.
408408
409409
Hyperparameters will be logged under the "<prefix>/hyperparams" namespace.

Diff for: src/version.info

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.0.post0
1+
2.2.1

Diff for: tests/tests_data/processing/test_dns.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ def readlines(self):
3131
cmd = popen_mock._mock_call_args_list[0].args[0]
3232
assert (
3333
cmd
34-
== "sudo /home/zeus/miniconda3/envs/cloudspace/bin/python -c 'from lightning.data.processing.dns import _optimize_dns; _optimize_dns(True)'"
35-
) # noqa: E501
34+
== "sudo /home/zeus/miniconda3/envs/cloudspace/bin/python -c 'from lightning.data.processing.dns import _optimize_dns; _optimize_dns(True)'" # noqa: E501
35+
)

0 commit comments

Comments
 (0)