Skip to content

Commit

Permalink
bump lightning-utilities from <0.10 to <0.11 (#19586)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Mar 7, 2024
1 parent f23b3b1 commit 0b88204
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion requirements/app/app.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fsspec[http] >=2022.5.0, <2023.11.0
croniter >=1.3.0, <1.5.0 # strict; TODO: for now until we find something more robust.
traitlets >=5.3.0, <5.12.0
arrow >=1.2.0, <1.3.0
lightning-utilities >=0.8.0, <0.10.0
lightning-utilities >=0.8.0, <0.11.0
beautifulsoup4 >=4.8.0, <4.13.0
inquirer >=2.10.0, <3.2.0
psutil <5.9.6
Expand Down
2 changes: 1 addition & 1 deletion requirements/fabric/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ torch >=1.13.0, <=2.2.0
fsspec[http] >=2022.5.0, <2023.11.0
packaging >=20.0, <=23.1
typing-extensions >=4.4.0, <4.10.0
lightning-utilities >=0.8.0, <0.10.0
lightning-utilities >=0.8.0, <0.11.0
2 changes: 1 addition & 1 deletion requirements/fabric/examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

torchvision >=0.14.0, <0.18.0
torchmetrics >=0.10.0, <1.3.0
lightning-utilities >=0.8.0, <0.10.0
lightning-utilities >=0.8.0, <0.11.0
2 changes: 1 addition & 1 deletion requirements/pytorch/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ fsspec[http] >=2022.5.0, <2023.11.0
torchmetrics >=0.7.0, <1.3.0 # needed for using fixed compare_version
packaging >=20.0, <=23.1
typing-extensions >=4.4.0, <4.10.0
lightning-utilities >=0.8.0, <0.10.0
lightning-utilities >=0.8.0, <0.11.0
2 changes: 1 addition & 1 deletion requirements/pytorch/examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ torchvision >=0.14.0, <0.18.0
gym[classic_control] >=0.17.0, <0.27.0
ipython[all] <8.15.0
torchmetrics >=0.10.0, <1.3.0
lightning-utilities >=0.8.0, <0.10.0
lightning-utilities >=0.8.0, <0.11.0
2 changes: 1 addition & 1 deletion src/lightning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _cli_entry_point() -> None:
if not (
ModuleAvailableCache("lightning.app")
if RequirementCache("lightning-utilities<0.10.0")
else RequirementCache(module="lightning.app") # type: ignore[call-arg]
else RequirementCache(module="lightning.app")
):
print("The `lightning` command requires additional dependencies: `pip install lightning[app]`")
sys.exit(1)
Expand Down
2 changes: 1 addition & 1 deletion src/lightning/fabric/utilities/rank_zero.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def wrapped_fn(*args: P.args, **kwargs: P.kwargs) -> Optional[T]:

rank_zero_module.rank_zero_only.rank = getattr(rank_zero_module.rank_zero_only, "rank", _get_rank() or 0)
else:
rank_zero_only = rank_zero_module.rank_zero_only # type: ignore[assignment]
rank_zero_only = rank_zero_module.rank_zero_only

# add the attribute to the function but don't overwrite in case Trainer has already set it
rank_zero_only.rank = getattr(rank_zero_only, "rank", _get_rank() or 0)
Expand Down

0 comments on commit 0b88204

Please sign in to comment.