Skip to content

Commit

Permalink
Fix a bug in dashboard that server local resource file was not genera…
Browse files Browse the repository at this point in the history
…ted (#2964)

correctly

Co-authored-by: Yuan-Ting Hsieh (謝沅廷) <yuantingh@nvidia.com>
  • Loading branch information
IsaacYangSLA and YuanTingHsieh authored Sep 26, 2024
1 parent 75ba33a commit 2d67f17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nvflare/lighter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,10 @@ def _write_local(type, dest_dir, template, capacity=""):
template["default_authz"],
"t",
)
resources = json.loads(template["local_client_resources"])
if type == "client":
if type == "server":
resources = json.loads(template["local_server_resources"])
elif type == "client":
resources = json.loads(template["local_client_resources"])
for component in resources["components"]:
if "nvflare.app_common.resource_managers.gpu_resource_manager.GPUResourceManager" == component["path"]:
component["args"] = json.loads(capacity)
Expand Down

0 comments on commit 2d67f17

Please sign in to comment.