Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ numpy>=1.13.3
openfl>=1.2.1
scikit-learn>=0.24.1
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
torch==2.3.1
torchvision==0.18.1
torch==2.7.0
torchvision==0.22.0
wheel>=0.38.0 # not directly required, pinned by Snyk to avoid a vulnerability
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ numpy>=1.13.3
openfl>=1.2.1
scikit-learn>=0.24.1
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
torch==2.3.1
torchvision==0.18.1
torch==2.7.0
torchvision==0.22.0
wheel>=0.38.0 # not directly required, pinned by Snyk to avoid a vulnerability
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ numpy==1.23.3
opacus==1.5.1
pillow==10.3.0
pyyaml==6.0
torch==2.2.0
torch==2.7.0
torchvision==0.22.0
torchaudio==2.2.0
torchvision==0.17.0
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ matplotlib
opacus==1.5.2
pillow
scikit-learn
torch==2.3.1
torchvision==0.18.1
torch==2.7.0
torchvision==0.22.0
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ nbdev==2.3.37
nbformat==5.10.4
ray==2.43.0
tabulate==0.9.0
torch==2.3.1
torchvision==0.18.1
torch==2.7.0
torchvision==0.22.0
4 changes: 2 additions & 2 deletions openfl-workspace/keras/torch/mnist/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
keras==3.9.0
torch==2.6.0
torch==2.7.0
torch-xla==2.6.0
torchvision==0.21.0
torchvision==0.22.0
tensorflow==2.18.0
4 changes: 2 additions & 2 deletions openfl-workspace/torch/histology/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
setuptools>=65.5.1
torch==2.4.1
torchvision==0.19.1
torch==2.7.0
torchvision==0.22.0
4 changes: 2 additions & 2 deletions openfl-workspace/torch/histology_fedcurv/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
setuptools>=65.5.1
torch==2.4.1
torchvision==0.19.1
torch==2.7.0
torchvision==0.22.0
4 changes: 2 additions & 2 deletions openfl-workspace/torch/mnist/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
setuptools>=65.5.1
torch==2.4.1
torchvision==0.19.1
torch==2.7.0
torchvision==0.22.0
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
setuptools>=65.5.1
tensorboard
torch==2.4.1
torchvision==0.19.1
torch==2.7.0
torchvision==0.22.0
wheel>=0.38.0 # not directly required, pinned by Snyk to avoid a vulnerability
4 changes: 2 additions & 2 deletions openfl-workspace/torch/mnist_fed_eval/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
setuptools>=65.5.1
tensorboard
torch==2.4.1
torchvision==0.19.1
torch==2.7.0
torchvision==0.22.0
wheel>=0.38.0 # not directly required, pinned by Snyk to avoid a vulnerability
4 changes: 2 additions & 2 deletions openfl-workspace/torch/mnist_straggler_check/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ numpy>=1.22.2 # not directly required, pinned by Snyk to avoid a vulnerability
rsa>=4.7 # not directly required, pinned by Snyk to avoid a vulnerability
setuptools>=65.5.1
tensorboard
torch==2.4.1
torchvision==0.19.1
torch==2.7.0
torchvision==0.22.0
wheel>=0.38.0 # not directly required, pinned by Snyk to avoid a vulnerability
4 changes: 2 additions & 2 deletions openfl-workspace/torch/template/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Set your workspace's requirements here
setuptools>=65.5.1
torch==2.4.1
torchvision==0.19.1
torch==2.7.0
torchvision==0.22.0
5 changes: 5 additions & 0 deletions openfl/federated/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
from openfl.federated.task import KerasTaskRunner
if util.find_spec("torch") is not None:
os.environ["SETUPTOOLS_USE_DISTUTILS"] = "stdlib"
import sys

import typing_extensions

sys.modules["pip._vendor.typing_extensions"] = typing_extensions
from openfl.federated.data import PyTorchDataLoader
from openfl.federated.task import PyTorchTaskRunner
if util.find_spec("xgboost") is not None:
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ ignore = [

[tool.ruff.lint.isort]
force-single-line = false
known-first-party = ["openfl"]
known-first-party = ["openfl"]

[tool.coverage.run]
omit = [
# omit pytorch-generated files in /tmp
"/tmp/*",
]
4 changes: 2 additions & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ matplotlib==3.10.1
fpdf2==2.8.2
papermill==2.6.0
pyfakefs==5.8.0
torch==2.4.1
torch==2.7.0
boto3==1.37.19
moto==5.1.1
torchvision==0.19.1
torchvision==0.22.0
Loading