-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test federated plugin using GitHub action. (#10336)
Co-authored-by: Philip Hyunsu Cho <[email protected]>
- Loading branch information
1 parent
7ae5c97
commit 7354955
Showing
4 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,16 @@ | ||
XGBoost Plugin for Federated Learning | ||
===================================== | ||
|
||
This folder contains the plugin for federated learning. Follow these steps to build and test it. | ||
This folder contains the plugin for federated learning. | ||
|
||
Install gRPC | ||
------------ | ||
Refer to the [installation guide from the gRPC website](https://grpc.io/docs/languages/cpp/quickstart/). | ||
See [build instruction](../../doc/build.rst) for how to build the plugin. | ||
|
||
Build the Plugin | ||
---------------- | ||
```shell | ||
# Under xgboost source tree. | ||
mkdir build | ||
cd build | ||
cmake .. -GNinja \ | ||
-DPLUGIN_FEDERATED=ON \ | ||
-DUSE_CUDA=ON\ | ||
-DUSE_NCCL=ON | ||
ninja | ||
cd ../python-package | ||
pip install -e . | ||
``` | ||
If CMake fails to locate gRPC, you may need to pass `-DCMAKE_PREFIX_PATH=<grpc path>` to CMake. | ||
|
||
Test Federated XGBoost | ||
---------------------- | ||
```shell | ||
# Under xgboost source tree. | ||
cd tests/distributed | ||
cd tests/distributed/test_federated | ||
# This tests both CPU training (`hist`) and GPU training (`gpu_hist`). | ||
./runtests-federated.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ dependencies: | |
- c-compiler | ||
- cxx-compiler | ||
- gtest | ||
- protobuf | ||
- libgrpc |