From 54e0dcd98d639a26957ff1dd59555bc24646ef5d Mon Sep 17 00:00:00 2001 From: jafermarq Date: Fri, 31 Jan 2025 11:17:03 +0000 Subject: [PATCH 01/10] init --- examples/advanced-pytorch/pyproject.toml | 8 ++++---- examples/advanced-tensorflow/pyproject.toml | 4 ++-- examples/app-pytorch/pyproject.toml | 2 +- examples/custom-metrics/pyproject.toml | 4 ++-- examples/embedded-devices/pyproject.toml | 8 ++++---- examples/federated-kaplan-meier-fitter/pyproject.toml | 4 ++-- examples/fl-dp-sa/pyproject.toml | 8 ++++---- examples/fl-tabular/pyproject.toml | 6 +++--- examples/flower-secure-aggregation/pyproject.toml | 8 ++++---- .../my-awesome-app/pyproject.toml | 8 ++++---- examples/flowertune-vit/pyproject.toml | 8 ++++---- examples/opacus/pyproject.toml | 8 ++++---- .../pyproject.toml | 8 ++++---- examples/quickstart-fastai/pyproject.toml | 10 +++++----- examples/quickstart-huggingface/pyproject.toml | 4 ++-- examples/quickstart-jax/pyproject.toml | 4 ++-- examples/quickstart-mlx/pyproject.toml | 4 ++-- examples/quickstart-monai/pyproject.toml | 4 ++-- examples/quickstart-pandas/pyproject.toml | 4 ++-- examples/quickstart-pytorch/pyproject.toml | 8 ++++---- examples/quickstart-sklearn-tabular/pyproject.toml | 6 +++--- examples/quickstart-tensorflow/pyproject.toml | 4 ++-- examples/sklearn-logreg-mnist/pyproject.toml | 4 ++-- examples/vertical-fl/pyproject.toml | 4 ++-- examples/xgboost-comprehensive/pyproject.toml | 4 ++-- examples/xgboost-quickstart/pyproject.toml | 4 ++-- 26 files changed, 74 insertions(+), 74 deletions(-) diff --git a/examples/advanced-pytorch/pyproject.toml b/examples/advanced-pytorch/pyproject.toml index 059dbd127bde..9190a288612e 100644 --- a/examples/advanced-pytorch/pyproject.toml +++ b/examples/advanced-pytorch/pyproject.toml @@ -8,10 +8,10 @@ version = "1.0.0" description = "Federated Learning with PyTorch and Flower (Advanced Example)" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", - "torch==2.2.1", - "torchvision==0.17.1", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", + "torch==2.5.1", + "torchvision==0.20.1", "wandb==0.17.8", ] diff --git a/examples/advanced-tensorflow/pyproject.toml b/examples/advanced-tensorflow/pyproject.toml index 4f0f904c3436..13432ce95186 100644 --- a/examples/advanced-tensorflow/pyproject.toml +++ b/examples/advanced-tensorflow/pyproject.toml @@ -8,8 +8,8 @@ version = "1.0.0" description = "Federated Learning with Tensorflow/Keras and Flower (Advanced Example)" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", "tensorflow-cpu>=2.9.1, != 2.11.1 ; platform_machine == \"x86_64\"", "tensorflow-macos>=2.9.1, != 2.11.1 ; sys_platform == \"darwin\" and platform_machine == \"arm64\"", "wandb==0.17.8", diff --git a/examples/app-pytorch/pyproject.toml b/examples/app-pytorch/pyproject.toml index 927e47430c9d..5a5a9dc4b776 100644 --- a/examples/app-pytorch/pyproject.toml +++ b/examples/app-pytorch/pyproject.toml @@ -8,7 +8,7 @@ version = "1.0.0" description = "" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", + "flwr[simulation]>=1.15.0", "flwr-datasets[vision]>=0.5.0", "torch==2.5.1", "torchvision==0.20.1", diff --git a/examples/custom-metrics/pyproject.toml b/examples/custom-metrics/pyproject.toml index bf8316b90a4f..2a8108ad1740 100644 --- a/examples/custom-metrics/pyproject.toml +++ b/examples/custom-metrics/pyproject.toml @@ -12,8 +12,8 @@ version = "1.0.0" description = "Federated Learning with Flower and Custom Metrics" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", "scikit-learn>=1.2.2", "tensorflow==2.12.1; sys_platform != 'darwin'", "tensorflow-macos==2.12.0; sys_platform == 'darwin'", diff --git a/examples/embedded-devices/pyproject.toml b/examples/embedded-devices/pyproject.toml index 859cda796b1d..7b8604fd2e56 100644 --- a/examples/embedded-devices/pyproject.toml +++ b/examples/embedded-devices/pyproject.toml @@ -8,10 +8,10 @@ version = "1.0.0" description = "Federated AI with Embedded Devices using Flower" license = "Apache-2.0" dependencies = [ - "flwr>=1.14.0", - "flwr-datasets[vision]>=0.3.0", - "torch==2.2.1", - "torchvision==0.17.1", + "flwr>=1.15.0", + "flwr-datasets[vision]>=0.5.0", + "torch==2.5.1", + "torchvision==0.20.1", ] [tool.hatch.build] diff --git a/examples/federated-kaplan-meier-fitter/pyproject.toml b/examples/federated-kaplan-meier-fitter/pyproject.toml index 572e7cd5cd76..ba0d7d758d63 100644 --- a/examples/federated-kaplan-meier-fitter/pyproject.toml +++ b/examples/federated-kaplan-meier-fitter/pyproject.toml @@ -8,8 +8,8 @@ version = "1.0.0" description = "Federated Kaplan Meier Fitter with Flower" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets>=0.5.0", "numpy>=1.23.2", "pandas>=2.0.0", "lifelines>=0.28.0", diff --git a/examples/fl-dp-sa/pyproject.toml b/examples/fl-dp-sa/pyproject.toml index 22f7d75bed7b..c547abc3cce8 100644 --- a/examples/fl-dp-sa/pyproject.toml +++ b/examples/fl-dp-sa/pyproject.toml @@ -8,10 +8,10 @@ version = "1.0.0" description = "Central Differential Privacy and Secure Aggregation in Flower" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", - "torch==2.2.1", - "torchvision==0.17.1", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", + "torch==2.5.1", + "torchvision==0.20.1", ] [tool.hatch.build.targets.wheel] diff --git a/examples/fl-tabular/pyproject.toml b/examples/fl-tabular/pyproject.toml index 055e22e3e2a1..77ebe9a63658 100644 --- a/examples/fl-tabular/pyproject.toml +++ b/examples/fl-tabular/pyproject.toml @@ -8,10 +8,10 @@ version = "1.0.0" description = "Adult Census Income Tabular Dataset and Federated Learning in Flower" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets>=0.5.0", "torch==2.5.1", - "scikit-learn==1.5.0", + "scikit-learn==1.6.1", ] [tool.hatch.build.targets.wheel] diff --git a/examples/flower-secure-aggregation/pyproject.toml b/examples/flower-secure-aggregation/pyproject.toml index 850055a61e2d..5e5908a6fea9 100644 --- a/examples/flower-secure-aggregation/pyproject.toml +++ b/examples/flower-secure-aggregation/pyproject.toml @@ -8,10 +8,10 @@ version = "1.0.0" description = "Secure Aggregation in Flower" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", - "torch==2.2.1", - "torchvision==0.17.1", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", + "torch==2.5.1", + "torchvision==0.20.1", ] [tool.hatch.build.targets.wheel] diff --git a/examples/flower-simulation-step-by-step-pytorch/my-awesome-app/pyproject.toml b/examples/flower-simulation-step-by-step-pytorch/my-awesome-app/pyproject.toml index 1b81097edf33..ba3ff09ec333 100644 --- a/examples/flower-simulation-step-by-step-pytorch/my-awesome-app/pyproject.toml +++ b/examples/flower-simulation-step-by-step-pytorch/my-awesome-app/pyproject.toml @@ -8,10 +8,10 @@ version = "1.0.0" description = "" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.4.0", - "torch==2.2.1", - "torchvision==0.17.1", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", + "torch==2.5.1", + "torchvision==0.20.1", "wandb", ] diff --git a/examples/flowertune-vit/pyproject.toml b/examples/flowertune-vit/pyproject.toml index bf280de8af95..9c7934a33362 100644 --- a/examples/flowertune-vit/pyproject.toml +++ b/examples/flowertune-vit/pyproject.toml @@ -8,10 +8,10 @@ version = "1.0.0" description = "Federated Finetuning of a Vision Transformer with Flower" license = "Apache-2.0" dependencies = [ - "flwr[simulation]==1.12.0", - "flwr-datasets[vision]>=0.3.0", - "torch==2.2.1", - "torchvision==0.17.1", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", + "torch==2.5.1", + "torchvision==0.20.1", ] [tool.hatch.build.targets.wheel] diff --git a/examples/opacus/pyproject.toml b/examples/opacus/pyproject.toml index 662a969ee00b..e563b2cae9bb 100644 --- a/examples/opacus/pyproject.toml +++ b/examples/opacus/pyproject.toml @@ -8,10 +8,10 @@ version = "1.0.0" description = "Sample-level Differential Privacy with Opacus in Flower" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", - "torch==2.1.1", - "torchvision==0.16.1", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", + "torch==2.5.1", + "torchvision==0.20.1", "opacus==v1.4.1", ] diff --git a/examples/pytorch-federated-variational-autoencoder/pyproject.toml b/examples/pytorch-federated-variational-autoencoder/pyproject.toml index 5955beea49be..b8774bfdfd14 100644 --- a/examples/pytorch-federated-variational-autoencoder/pyproject.toml +++ b/examples/pytorch-federated-variational-autoencoder/pyproject.toml @@ -8,10 +8,10 @@ version = "1.0.0" description = "Federated Variational Autoencoder Example with PyTorch and Flower" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", - "torch==2.2.1", - "torchvision==0.17.1", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", + "torch==2.5.1", + "torchvision==0.20.1", ] [tool.hatch.build.targets.wheel] diff --git a/examples/quickstart-fastai/pyproject.toml b/examples/quickstart-fastai/pyproject.toml index 3ee4625ee536..2c98b3aba522 100644 --- a/examples/quickstart-fastai/pyproject.toml +++ b/examples/quickstart-fastai/pyproject.toml @@ -8,11 +8,11 @@ version = "1.0.0" description = "Federated Learning with Fastai and Flower (Quickstart Example)" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", - "fastai==2.7.14", - "torch==2.2.0", - "torchvision==0.17.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", + "fastai==2.7.18", + "torch==2.5.1", + "torchvision==0.20.1", ] [tool.hatch.build.targets.wheel] diff --git a/examples/quickstart-huggingface/pyproject.toml b/examples/quickstart-huggingface/pyproject.toml index febd41d681a6..f2ee605086ca 100644 --- a/examples/quickstart-huggingface/pyproject.toml +++ b/examples/quickstart-huggingface/pyproject.toml @@ -12,8 +12,8 @@ authors = [ { name = "Kaushik Amar Das", email = "kaushik.das@iiitg.ac.in" }, ] dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets>=0.5.0", "torch==2.4.0", "transformers>=4.30.0,<5.0", "evaluate>=0.4.0,<1.0", diff --git a/examples/quickstart-jax/pyproject.toml b/examples/quickstart-jax/pyproject.toml index fdb570390b4b..666df0b0e626 100644 --- a/examples/quickstart-jax/pyproject.toml +++ b/examples/quickstart-jax/pyproject.toml @@ -8,8 +8,8 @@ version = "1.0.0" description = "" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.4.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", "datasets>=2.21.0", "jax==0.4.31", "jaxlib==0.4.31", diff --git a/examples/quickstart-mlx/pyproject.toml b/examples/quickstart-mlx/pyproject.toml index af5df1684ce7..cd8ae5cbadde 100644 --- a/examples/quickstart-mlx/pyproject.toml +++ b/examples/quickstart-mlx/pyproject.toml @@ -8,8 +8,8 @@ version = "1.0.0" description = "Federated Learning with MLX and Flower (Quickstart Example)" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", "mlx==0.21.1", ] diff --git a/examples/quickstart-monai/pyproject.toml b/examples/quickstart-monai/pyproject.toml index 333946272ef0..a242f3916353 100644 --- a/examples/quickstart-monai/pyproject.toml +++ b/examples/quickstart-monai/pyproject.toml @@ -8,8 +8,8 @@ version = "1.0.0" description = "Federated Learning with MONAI and Flower (Quickstart Example)" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", "monai==1.3.2", "filelock==3.15.4", ] diff --git a/examples/quickstart-pandas/pyproject.toml b/examples/quickstart-pandas/pyproject.toml index 819916f92e57..90857b31435f 100644 --- a/examples/quickstart-pandas/pyproject.toml +++ b/examples/quickstart-pandas/pyproject.toml @@ -12,8 +12,8 @@ authors = [ { name = "Ragy Haddad", email = "ragy202@gmail.com" }, ] dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", "numpy>=1.26.0", "pandas==2.0.0", ] diff --git a/examples/quickstart-pytorch/pyproject.toml b/examples/quickstart-pytorch/pyproject.toml index a4a1cd452e0d..076a42c6bb52 100644 --- a/examples/quickstart-pytorch/pyproject.toml +++ b/examples/quickstart-pytorch/pyproject.toml @@ -8,10 +8,10 @@ version = "1.0.0" description = "Federated Learning with PyTorch and Flower (Quickstart Example)" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", - "torch==2.2.1", - "torchvision==0.17.1", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", + "torch==2.5.1", + "torchvision==0.20.1", ] [tool.hatch.build.targets.wheel] diff --git a/examples/quickstart-sklearn-tabular/pyproject.toml b/examples/quickstart-sklearn-tabular/pyproject.toml index 44226f75075a..7649621ab182 100644 --- a/examples/quickstart-sklearn-tabular/pyproject.toml +++ b/examples/quickstart-sklearn-tabular/pyproject.toml @@ -8,9 +8,9 @@ version = "1.0.0" description = "Federated Learning with scikit-learn and Flower (Quickstart Example)" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", - "scikit-learn>=1.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", + "scikit-learn>=1.6.1", ] [tool.hatch.build.targets.wheel] diff --git a/examples/quickstart-tensorflow/pyproject.toml b/examples/quickstart-tensorflow/pyproject.toml index 1c60db002ce0..1f1feaaa7517 100644 --- a/examples/quickstart-tensorflow/pyproject.toml +++ b/examples/quickstart-tensorflow/pyproject.toml @@ -8,8 +8,8 @@ version = "1.0.0" description = "Federated Learning with Tensorflow/Keras and Flower (Quickstart Example)" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", "tensorflow>=2.9.1, != 2.11.1 ; (platform_machine == \"x86_64\" or platform_machine == \"aarch64\")", "tensorflow-macos>=2.9.1, != 2.11.1 ; sys_platform == \"darwin\" and platform_machine == \"arm64\"", ] diff --git a/examples/sklearn-logreg-mnist/pyproject.toml b/examples/sklearn-logreg-mnist/pyproject.toml index 502cc609c09a..94b4ad519613 100644 --- a/examples/sklearn-logreg-mnist/pyproject.toml +++ b/examples/sklearn-logreg-mnist/pyproject.toml @@ -12,8 +12,8 @@ authors = [ { name = "Kaushik Amar Das", email = "kaushik.das@iiitg.ac.in" }, ] dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", "numpy>=2.0.0", "scikit-learn~=1.2.2", ] diff --git a/examples/vertical-fl/pyproject.toml b/examples/vertical-fl/pyproject.toml index 72eca54ee566..6a9102022559 100644 --- a/examples/vertical-fl/pyproject.toml +++ b/examples/vertical-fl/pyproject.toml @@ -8,8 +8,8 @@ version = "1.0.0" description = "PyTorch Vertical FL with Flower" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets>=0.5.0", "pandas==2.2.3", "numpy>=1.26.0", "scikit-learn==1.5.0", diff --git a/examples/xgboost-comprehensive/pyproject.toml b/examples/xgboost-comprehensive/pyproject.toml index 3a4950d6f508..a440bea3aedb 100644 --- a/examples/xgboost-comprehensive/pyproject.toml +++ b/examples/xgboost-comprehensive/pyproject.toml @@ -8,8 +8,8 @@ version = "1.0.0" description = "Federated Learning with XGBoost and Flower (Comprehensive Example)" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets>=0.5.0", "xgboost>=2.0.0", ] diff --git a/examples/xgboost-quickstart/pyproject.toml b/examples/xgboost-quickstart/pyproject.toml index 7dbafbc19d12..57396e390fa3 100644 --- a/examples/xgboost-quickstart/pyproject.toml +++ b/examples/xgboost-quickstart/pyproject.toml @@ -8,8 +8,8 @@ version = "1.0.0" description = "Federated Learning with XGBoost and Flower (Quickstart Example)" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets>=0.4.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets>=0.5.0", "xgboost>=2.0.0", ] From 4841bfd6a54e07e3fd83d692beafea6e13456c37 Mon Sep 17 00:00:00 2001 From: jafermarq Date: Fri, 31 Jan 2025 11:20:32 +0000 Subject: [PATCH 02/10] more --- examples/flower-authentication/pyproject.toml | 4 ++-- examples/flowertune-llm/pyproject.toml | 4 ++-- examples/quickstart-pytorch-lightning/pyproject.toml | 4 ++-- examples/tensorflow-privacy/pyproject.toml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/flower-authentication/pyproject.toml b/examples/flower-authentication/pyproject.toml index 2b3bbed5c2cf..35801fb95fc2 100644 --- a/examples/flower-authentication/pyproject.toml +++ b/examples/flower-authentication/pyproject.toml @@ -8,8 +8,8 @@ version = "1.0.0" description = "Federated Learning with PyTorch and authenticated Flower " license = "Apache-2.0" dependencies = [ - "flwr>=1.14.0", - "flwr-datasets[vision]>=0.4.0", + "flwr>=1.15.0", + "flwr-datasets[vision]>=0.5.0", "torch>=2.5.0,<3.0.0", "torchvision>=0.20.1,<0.21.0", ] diff --git a/examples/flowertune-llm/pyproject.toml b/examples/flowertune-llm/pyproject.toml index 4925f3cba15a..80ebd3c93361 100644 --- a/examples/flowertune-llm/pyproject.toml +++ b/examples/flowertune-llm/pyproject.toml @@ -8,8 +8,8 @@ version = "1.0.0" description = "FlowerTune LLM: Federated LLM Fine-tuning with Flower" license = "Apache-2.0" dependencies = [ - "flwr[simulation]==1.12.0", - "flwr-datasets>=0.3.0", + "flwr[simulation]==1.15.0", + "flwr-datasets>=0.5.0", "trl==0.8.1", "bitsandbytes==0.43.0", "scipy==1.13.0", diff --git a/examples/quickstart-pytorch-lightning/pyproject.toml b/examples/quickstart-pytorch-lightning/pyproject.toml index a9ca13a5cee6..d70deafe28c7 100644 --- a/examples/quickstart-pytorch-lightning/pyproject.toml +++ b/examples/quickstart-pytorch-lightning/pyproject.toml @@ -8,8 +8,8 @@ version = "1.0.0" description = "Federated Learning with PyTorch Lightning and Flower (Quickstart Example)" license = "Apache-2.0" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", "pytorch-lightning<2.0.0; sys_platform == 'darwin'", "pytorch-lightning==1.6.0; sys_platform != 'darwin'", "torch==2.5.1", diff --git a/examples/tensorflow-privacy/pyproject.toml b/examples/tensorflow-privacy/pyproject.toml index a3df8ad118e3..d2682a57a9c6 100644 --- a/examples/tensorflow-privacy/pyproject.toml +++ b/examples/tensorflow-privacy/pyproject.toml @@ -7,8 +7,8 @@ name = "tensorflow-privacy-fl" version = "1.0.0" description = "Sample-level Differential Privacy with Tensorflow-Privacy in Flower" dependencies = [ - "flwr[simulation]>=1.14.0", - "flwr-datasets[vision]>=0.3.0", + "flwr[simulation]>=1.15.0", + "flwr-datasets[vision]>=0.5.0", "tensorflow-estimator~=2.4", "tensorflow-probability~=0.22.0", "tensorflow>=2.4.0,<=2.15.0", From 5caa95a51870db4f75564a4f39ec06508a485e00 Mon Sep 17 00:00:00 2001 From: jafermarq Date: Fri, 31 Jan 2025 11:21:35 +0000 Subject: [PATCH 03/10] w/ prev --- examples/quickstart-lerobot/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/quickstart-lerobot/pyproject.toml b/examples/quickstart-lerobot/pyproject.toml index 929d4bb51624..e8b095160ef8 100644 --- a/examples/quickstart-lerobot/pyproject.toml +++ b/examples/quickstart-lerobot/pyproject.toml @@ -16,7 +16,7 @@ authors = [ ] dependencies = [ - "flwr[simulation]==1.14.0", + "flwr[simulation]==1.15.0", "transformers>=4.30.0,<5.0", "lerobot[pusht] @ git+https://github.com/huggingface/lerobot.git@96c7052777aca85d4e55dfba8f81586103ba8f61", "flwr-datasets>=0.5.0", From 39a85ceedda099106c93aad5017a455b7decad97 Mon Sep 17 00:00:00 2001 From: jafermarq Date: Fri, 31 Jan 2025 16:34:16 +0000 Subject: [PATCH 04/10] fix pandas --- examples/quickstart-pandas/pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/quickstart-pandas/pyproject.toml b/examples/quickstart-pandas/pyproject.toml index 90857b31435f..34acdb5cf410 100644 --- a/examples/quickstart-pandas/pyproject.toml +++ b/examples/quickstart-pandas/pyproject.toml @@ -14,8 +14,8 @@ authors = [ dependencies = [ "flwr[simulation]>=1.15.0", "flwr-datasets[vision]>=0.5.0", - "numpy>=1.26.0", - "pandas==2.0.0", + "numpy>=2.0.2", + "pandas==2.2.3", ] [tool.hatch.build.targets.wheel] From b308dce4dc52ca0f30bad5a91fe2ca3c44e4b83b Mon Sep 17 00:00:00 2001 From: jafermarq Date: Fri, 31 Jan 2025 16:56:30 +0000 Subject: [PATCH 05/10] update flowertunellm example deps --- examples/flowertune-llm/pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/flowertune-llm/pyproject.toml b/examples/flowertune-llm/pyproject.toml index 80ebd3c93361..e66a020027fd 100644 --- a/examples/flowertune-llm/pyproject.toml +++ b/examples/flowertune-llm/pyproject.toml @@ -10,12 +10,13 @@ license = "Apache-2.0" dependencies = [ "flwr[simulation]==1.15.0", "flwr-datasets>=0.5.0", + "torch==2.3.1", "trl==0.8.1", - "bitsandbytes==0.43.0", + "bitsandbytes==0.45.0", "scipy==1.13.0", "peft==0.6.2", "fschat[model_worker,webui]==0.2.35", - "transformers==4.39.3", + "transformers==4.47.0", "sentencepiece==0.2.0", "omegaconf==2.3.0", "hf_transfer==0.1.8", From dc94f8ead2765d9d62fad773da26bdbcf1f16d95 Mon Sep 17 00:00:00 2001 From: jafermarq Date: Fri, 31 Jan 2025 18:24:44 +0000 Subject: [PATCH 06/10] update --- examples/embedded-devices/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/embedded-devices/pyproject.toml b/examples/embedded-devices/pyproject.toml index 7b8604fd2e56..fb37a17dd36c 100644 --- a/examples/embedded-devices/pyproject.toml +++ b/examples/embedded-devices/pyproject.toml @@ -41,5 +41,5 @@ batch-size = 32 default = "embedded-federation" [tool.flwr.federations.embedded-federation] -address = "49.12.200.204:9093" +address = "127.0.0.1:9093" insecure = true From 8388f01dfefa73bfdedc765fe16a8e944c5d4b5b Mon Sep 17 00:00:00 2001 From: jafermarq Date: Fri, 31 Jan 2025 18:37:29 +0000 Subject: [PATCH 07/10] to device embedded --- examples/embedded-devices/embeddedexample/task.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/embedded-devices/embeddedexample/task.py b/examples/embedded-devices/embeddedexample/task.py index f08441c0426a..6f89a551ee19 100644 --- a/examples/embedded-devices/embeddedexample/task.py +++ b/examples/embedded-devices/embeddedexample/task.py @@ -84,6 +84,8 @@ def train(net, trainloader, valloader, epochs, learning_rate, device): def test(net, testloader, device): """Validate the model on the test set.""" + net.to(device) # move model to GPU if available + net.eval() criterion = torch.nn.CrossEntropyLoss() correct, loss = 0, 0.0 with torch.no_grad(): From ab2c92260d81daa46785eb211ced992249c5687c Mon Sep 17 00:00:00 2001 From: dstripelis Date: Fri, 31 Jan 2025 20:43:57 +0200 Subject: [PATCH 08/10] Warning surpassing and scikit-learn minor version bump. --- examples/sklearn-logreg-mnist/pyproject.toml | 2 +- examples/vertical-fl/vertical_fl/task.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sklearn-logreg-mnist/pyproject.toml b/examples/sklearn-logreg-mnist/pyproject.toml index 94b4ad519613..a560d1264167 100644 --- a/examples/sklearn-logreg-mnist/pyproject.toml +++ b/examples/sklearn-logreg-mnist/pyproject.toml @@ -15,7 +15,7 @@ dependencies = [ "flwr[simulation]>=1.15.0", "flwr-datasets[vision]>=0.5.0", "numpy>=2.0.0", - "scikit-learn~=1.2.2", + "scikit-learn>=1.6.1", ] [tool.hatch.build.targets.wheel] diff --git a/examples/vertical-fl/vertical_fl/task.py b/examples/vertical-fl/vertical_fl/task.py index 8e76d9419a8a..700db644b740 100644 --- a/examples/vertical-fl/vertical_fl/task.py +++ b/examples/vertical-fl/vertical_fl/task.py @@ -23,7 +23,7 @@ def _bin_age(age_series): def _extract_title(name_series): - titles = name_series.str.extract(" ([A-Za-z]+)\.", expand=False) + titles = name_series.str.extract(r" ([A-Za-z]+)\.", expand=False) rare_titles = { "Lady", "Countess", From 410e7c8fd56d76e252a6c7921369d9bb45d1cb58 Mon Sep 17 00:00:00 2001 From: jafermarq Date: Fri, 31 Jan 2025 18:46:23 +0000 Subject: [PATCH 09/10] monai < numpy2 --- examples/quickstart-monai/pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/quickstart-monai/pyproject.toml b/examples/quickstart-monai/pyproject.toml index a242f3916353..3b9cc85c5a27 100644 --- a/examples/quickstart-monai/pyproject.toml +++ b/examples/quickstart-monai/pyproject.toml @@ -12,6 +12,7 @@ dependencies = [ "flwr-datasets[vision]>=0.5.0", "monai==1.3.2", "filelock==3.15.4", + "numpy<2.0.0", ] [tool.hatch.build.targets.wheel] From ff00706eb4fbefcf7ff01a1f7db70119e55fa13a Mon Sep 17 00:00:00 2001 From: jafermarq Date: Fri, 31 Jan 2025 18:53:19 +0000 Subject: [PATCH 10/10] allow wider range custom-metrics tf --- examples/custom-metrics/pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/custom-metrics/pyproject.toml b/examples/custom-metrics/pyproject.toml index 2a8108ad1740..fb67b185aa46 100644 --- a/examples/custom-metrics/pyproject.toml +++ b/examples/custom-metrics/pyproject.toml @@ -14,9 +14,9 @@ license = "Apache-2.0" dependencies = [ "flwr[simulation]>=1.15.0", "flwr-datasets[vision]>=0.5.0", - "scikit-learn>=1.2.2", - "tensorflow==2.12.1; sys_platform != 'darwin'", - "tensorflow-macos==2.12.0; sys_platform == 'darwin'", + "scikit-learn>=1.6.0", + "tensorflow>=2.12.1; (platform_machine == \"x86_64\" or platform_machine == \"aarch64\")", + "tensorflow-macos>=2.12.1; sys_platform == \"darwin\" and platform_machine == \"arm64\"", ] [tool.hatch.build.targets.wheel]