From eac7696bf8c9ce9aec650f4326423cd4343ba02b Mon Sep 17 00:00:00 2001 From: Chong Shen Ng Date: Wed, 18 Dec 2024 10:49:38 +0000 Subject: [PATCH] fix(examples) Update `flwr` version for XGBoost quickstart example and add `libomp` command for MacOSX (#4740) --- examples/xgboost-quickstart/README.md | 3 +++ examples/xgboost-quickstart/pyproject.toml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/xgboost-quickstart/README.md b/examples/xgboost-quickstart/README.md index a7b047c090f0..da207d2af2ef 100644 --- a/examples/xgboost-quickstart/README.md +++ b/examples/xgboost-quickstart/README.md @@ -46,6 +46,9 @@ Install the dependencies defined in `pyproject.toml` as well as the `xgboost_qui pip install -e . ``` +> \[!NOTE\] +> For MacOSX users, you may need to additionally run `brew install libomp` to install OpenMP runtime. + ## Run the project You can run your Flower project in both _simulation_ and _deployment_ mode without making changes to the code. If you are starting with Flower, we recommend you using the _simulation_ mode as it requires fewer components to be launched manually. By default, `flwr run` will make use of the Simulation Engine. diff --git a/examples/xgboost-quickstart/pyproject.toml b/examples/xgboost-quickstart/pyproject.toml index 3bfedb6b1d58..e904e7833447 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-nightly[simulation]==1.11.0.dev20240826", - "flwr-datasets>=0.3.0", + "flwr[simulation]>=1.13.1", + "flwr-datasets>=0.4.0", "xgboost>=2.0.0", ]