From 9ac1ac6465ca3523e7527b26e7b95f943b8f1333 Mon Sep 17 00:00:00 2001 From: "substra-bot[bot]" <100303497+substra-bot[bot]@users.noreply.github.com> Date: Thu, 12 Sep 2024 16:38:24 +0200 Subject: [PATCH] chore: release 0.47.0 (#246) Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: substra-bot[bot] <100303497+substra-bot[bot]@users.noreply.github.com> Co-authored-by: substra-bot[bot] --- CHANGELOG.md | 25 +++++++++++++++++++++++++ changes/226.added | 1 - changes/227.added | 1 - changes/228.fixed | 4 ---- changes/229.fixed | 1 - changes/230.fixed | 1 - changes/231.fixed | 1 - changes/241.changed | 1 - changes/242.changed | 1 - changes/244.fixed | 1 - changes/245.fixed | 1 - pyproject.toml | 4 ++-- substrafl/__version__.py | 2 +- 13 files changed, 28 insertions(+), 16 deletions(-) delete mode 100644 changes/226.added delete mode 100644 changes/227.added delete mode 100644 changes/228.fixed delete mode 100644 changes/229.fixed delete mode 100644 changes/230.fixed delete mode 100644 changes/231.fixed delete mode 100644 changes/241.changed delete mode 100644 changes/242.changed delete mode 100644 changes/244.fixed delete mode 100644 changes/245.fixed diff --git a/CHANGELOG.md b/CHANGELOG.md index 7426bfa4..930ff9d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +## [0.47.0](https://github.com/Substra/substrafl/releases/tag/0.47.0) - 2024-09-12 + +### Added + +- Python 3.12 support ([#226](https://github.com/Substra/substrafl/pull/226)) +- Add Docker GPU base image, activated through the `Dependency` object with the variable `use_gpu=True`. The Docker image used is `nvidia/cuda:11.8.0-runtime-ubuntu22.04`. ([#227](https://github.com/Substra/substrafl/pull/227)) + +### Changed + +- BREAKING: change `use_gpu` to `diasble_gpu` in all `TorchAlgo`. The device is set to `cpu` is no GPU are available or if `disable_gpu` is set to `True`. You must inverse the boolean in your code to keep the same behaviour (`diasble_gpu == not use_gpu`). ([#241](https://github.com/Substra/substrafl/pull/241)) +- Remove packages named `build-essential` and `*-dev` after building dependencies to decrease CVE ([#242](https://github.com/Substra/substrafl/pull/242)) + +### Fixed + +- Add a non-root user to the generated Dockerfile for the compute functions. + + Compute pods were already running as non-root (ensured by a security context in the backend), we are making it more + explicit here. ([#228](https://github.com/Substra/substrafl/pull/228)) +- Added `subprocess_only` tag to prevent simulation mode tests to run in remote mode. ([#229](https://github.com/Substra/substrafl/pull/229)) +- Bump pytorch version to 2.2.1 in tests. ([#230](https://github.com/Substra/substrafl/pull/230)) +- Bump NumPy version to 1.26.4 in tests. ([#231](https://github.com/Substra/substrafl/pull/231)) +- Actually trigger the GPU docker configuration with `use_gpu` flag when running Camelyon benchmark ([#244](https://github.com/Substra/substrafl/pull/244)) +- Use Tensor.cpu() to copy the tensor to host memory first in Camelyon benchmark ([#245](https://github.com/Substra/substrafl/pull/245)) + + ## [0.46.0](https://github.com/Substra/substrafl/releases/tag/0.46.0) - 2024-06-03 diff --git a/changes/226.added b/changes/226.added deleted file mode 100644 index 3c484d83..00000000 --- a/changes/226.added +++ /dev/null @@ -1 +0,0 @@ -Python 3.12 support diff --git a/changes/227.added b/changes/227.added deleted file mode 100644 index 5b64c1be..00000000 --- a/changes/227.added +++ /dev/null @@ -1 +0,0 @@ -Add Docker GPU base image, activated through the `Dependency` object with the variable `use_gpu=True`. The Docker image used is `nvidia/cuda:11.8.0-runtime-ubuntu22.04`. diff --git a/changes/228.fixed b/changes/228.fixed deleted file mode 100644 index 3675ef30..00000000 --- a/changes/228.fixed +++ /dev/null @@ -1,4 +0,0 @@ -Add a non-root user to the generated Dockerfile for the compute functions. - -Compute pods were already running as non-root (ensured by a security context in the backend), we are making it more -explicit here. diff --git a/changes/229.fixed b/changes/229.fixed deleted file mode 100644 index b4cc5003..00000000 --- a/changes/229.fixed +++ /dev/null @@ -1 +0,0 @@ -Added `subprocess_only` tag to prevent simulation mode tests to run in remote mode. diff --git a/changes/230.fixed b/changes/230.fixed deleted file mode 100644 index 01cf4583..00000000 --- a/changes/230.fixed +++ /dev/null @@ -1 +0,0 @@ -Bump pytorch version to 2.2.1 in tests. diff --git a/changes/231.fixed b/changes/231.fixed deleted file mode 100644 index 63c269f7..00000000 --- a/changes/231.fixed +++ /dev/null @@ -1 +0,0 @@ -Bump NumPy version to 1.26.4 in tests. diff --git a/changes/241.changed b/changes/241.changed deleted file mode 100644 index e44d1508..00000000 --- a/changes/241.changed +++ /dev/null @@ -1 +0,0 @@ -BREAKING: change `use_gpu` to `diasble_gpu` in all `TorchAlgo`. The device is set to `cpu` is no GPU are available or if `disable_gpu` is set to `True`. You must inverse the boolean in your code to keep the same behaviour (`diasble_gpu == not use_gpu`). diff --git a/changes/242.changed b/changes/242.changed deleted file mode 100644 index 424e2bd4..00000000 --- a/changes/242.changed +++ /dev/null @@ -1 +0,0 @@ -Remove packages named `build-essential` and `*-dev` after building dependencies to decrease CVE diff --git a/changes/244.fixed b/changes/244.fixed deleted file mode 100644 index 5332e812..00000000 --- a/changes/244.fixed +++ /dev/null @@ -1 +0,0 @@ -Actually trigger the GPU docker configuration with `use_gpu` flag when running Camelyon benchmark diff --git a/changes/245.fixed b/changes/245.fixed deleted file mode 100644 index 41957967..00000000 --- a/changes/245.fixed +++ /dev/null @@ -1 +0,0 @@ -Use Tensor.cpu() to copy the tensor to host memory first in Camelyon benchmark diff --git a/pyproject.toml b/pyproject.toml index 272b428f..fe761d5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,8 +22,8 @@ readme = "README.md" dependencies = [ "numpy>=1.24,<2.0", "cloudpickle>=1.6.0", - "substra~=0.54.0a1", - "substratools~=0.22.0a2", + "substra~=0.54.0", + "substratools~=0.22.0", "pydantic>=2.3.0,<3.0", "pip>=21.2", "tqdm", diff --git a/substrafl/__version__.py b/substrafl/__version__.py index 6f709872..bf97bc40 100644 --- a/substrafl/__version__.py +++ b/substrafl/__version__.py @@ -1 +1 @@ -__version__ = "0.46.0" +__version__ = "0.47.0"