Skip to content

Commit

Permalink
PyTorch and Torchvision version update (#1216)
Browse files Browse the repository at this point in the history
* bumped torch and torchvision to latest

Signed-off-by: yes <[email protected]>

* dummy commit

Signed-off-by: yes <[email protected]>

* version updated for eden compression

Signed-off-by: yes <[email protected]>

* python version updated for eden compression

Signed-off-by: yes <[email protected]>

* python version updated for pki workflow

Signed-off-by: yes <[email protected]>

* code changes

Signed-off-by: yes <[email protected]>

* code changes

Signed-off-by: yes <[email protected]>

* revert python version for pki workflow

Signed-off-by: yes <[email protected]>

* requiremets updated

Signed-off-by: yes <[email protected]>

* dummy changes

Signed-off-by: yes <[email protected]>

* dummy changes

Signed-off-by: yes <[email protected]>

* revert chnages

Signed-off-by: yes <[email protected]>

* torch version updated

Signed-off-by: yes <[email protected]>

* monkey patch added

Signed-off-by: yes <[email protected]>

* python version update for eden pipeline

Signed-off-by: yes <[email protected]>

* changes for torch version 2.4.1

Signed-off-by: yes <[email protected]>

* fix for distutils/core.py error

Signed-off-by: yes <[email protected]>

* fix for distutils/core.py error

Signed-off-by: yes <[email protected]>

* setupttool version 65.5.1

Signed-off-by: yes <[email protected]>

* added setuptool import

Signed-off-by: yes <[email protected]>

* distutils error fix

Signed-off-by: yes <[email protected]>

* revert code

Signed-off-by: yes <[email protected]>

* revert code

Signed-off-by: yes <[email protected]>

* code changes

Signed-off-by: yes <[email protected]>

* formatting change

Signed-off-by: yes <[email protected]>

---------

Signed-off-by: yes <[email protected]>
  • Loading branch information
tanwarsh authored Jan 24, 2025
1 parent 0ee23db commit 1c50c0f
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 21 deletions.
5 changes: 3 additions & 2 deletions openfl-workspace/torch_cnn_histology/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
torch==2.3.1
torchvision==0.18.1
setuptools>=65.5.1
torch==2.4.1
torchvision==0.19.1
5 changes: 3 additions & 2 deletions openfl-workspace/torch_cnn_histology_fedcurv/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
torch==2.3.1
torchvision==0.18.1
setuptools>=65.5.1
torch==2.4.1
torchvision==0.19.1
4 changes: 2 additions & 2 deletions openfl-workspace/torch_cnn_mnist/plan/plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ data_loader:
batch_size: 64
collaborator_count: 2
template: src.dataloader.PyTorchMNISTInMemory
network :
defaults : plan/defaults/network.yaml
network:
defaults: plan/defaults/network.yaml
task_runner:
settings: {}
template: src.taskrunner.TemplateTaskRunner
Expand Down
5 changes: 3 additions & 2 deletions openfl-workspace/torch_cnn_mnist/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
torch==2.3.1
torchvision==0.18.1
setuptools>=65.5.1
torch==2.4.1
torchvision==0.19.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
setuptools>=65.5.1
tensorboard
torch==2.3.1
torchvision==0.18.1
torch==2.4.1
torchvision==0.19.1
wheel>=0.38.0 # not directly required, pinned by Snyk to avoid a vulnerability
5 changes: 3 additions & 2 deletions openfl-workspace/torch_cnn_mnist_fed_eval/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
setuptools>=65.5.1
tensorboard
torch==2.3.1
torchvision==0.18.1
torch==2.4.1
torchvision==0.19.1
wheel>=0.38.0 # not directly required, pinned by Snyk to avoid a vulnerability
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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 # not directly required, pinned by Snyk to avoid a vulnerability
setuptools>=65.5.1
tensorboard
torch==2.3.1
torchvision==0.18.1
torch==2.4.1
torchvision==0.19.1
wheel>=0.38.0 # not directly required, pinned by Snyk to avoid a vulnerability
5 changes: 3 additions & 2 deletions openfl-workspace/torch_llm_horovod/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
setuptools>=65.5.1
accelerate
datasets
evaluate
Expand All @@ -8,7 +9,7 @@ peft
sentencepiece
seqeval
tensorboard
torch
torchvision
torch==2.4.1
torchvision==0.19.1
transformers[torch]
wheel>=0.38.0 # not directly required, pinned by Snyk to avoid a vulnerability
5 changes: 3 additions & 2 deletions openfl-workspace/torch_template/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Set your workspace's requirements here
torch
torchvision
setuptools>=65.5.1
torch==2.4.1
torchvision==0.19.1
5 changes: 3 additions & 2 deletions openfl-workspace/torch_unet_kvasir/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
setuptools>=65.5.1
scikit-image==0.24.0
torch==2.3.1
torchvision==0.18.1
torch==2.4.1
torchvision==0.19.1
2 changes: 2 additions & 0 deletions openfl/federated/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

"""openfl.federated package."""

import os
from importlib import util

from openfl.federated.data import DataLoader # NOQA
Expand All @@ -16,6 +17,7 @@
from openfl.federated.task import FederatedModel # NOQA
from openfl.federated.task import KerasTaskRunner
if util.find_spec("torch") is not None:
os.environ["SETUPTOOLS_USE_DISTUTILS"] = "stdlib"
from openfl.federated.data import FederatedDataSet # NOQA
from openfl.federated.data import PyTorchDataLoader
from openfl.federated.task import FederatedModel # NOQA
Expand Down

0 comments on commit 1c50c0f

Please sign in to comment.