Skip to content

Commit

Permalink
Fix NVFLARE demo (#8340)
Browse files Browse the repository at this point in the history
  • Loading branch information
rongou committed Oct 14, 2022
1 parent 748d516 commit b3208aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions demo/nvflare/custom/trainer.py
Expand Up @@ -53,6 +53,7 @@ def _do_training(self, fl_ctx: FLContext):
client_name = fl_ctx.get_prop(FLContextKey.CLIENT_NAME)
rank = int(client_name.split('-')[1]) - 1
communicator_env = {
'xgboost_communicator': 'federated',
'federated_server_address': self._server_address,
'federated_world_size': self._world_size,
'federated_rank': rank,
Expand Down

0 comments on commit b3208aa

Please sign in to comment.