From eac260ecf13a249d71ba53b100e3f39750b3b81d Mon Sep 17 00:00:00 2001 From: Ziyue Xu Date: Fri, 30 Aug 2024 11:00:31 -0400 Subject: [PATCH] update the tb path in fedbn example --- research/fed-bn/README.md | 3 ++- research/fed-bn/create_job.sh | 2 +- research/fed-bn/run_job.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/research/fed-bn/README.md b/research/fed-bn/README.md index 4796cea225..09152c3cf8 100644 --- a/research/fed-bn/README.md +++ b/research/fed-bn/README.md @@ -56,7 +56,8 @@ Run the FedBN simulation with the following command: ``` ## Visualizing Results -With tensorboard, below is an example of the loss for the two sites: +The training record will be stored under the job workspace `/tmp/nvflare/fed_bn/workspace/server/simulate_job/tb_events/`. +With tensorboard, we can visualize the loss for the two sites, example run as below: ![FedBN Loss Results](./figs/loss.png) diff --git a/research/fed-bn/create_job.sh b/research/fed-bn/create_job.sh index c793ca3444..1d1ab6b381 100755 --- a/research/fed-bn/create_job.sh +++ b/research/fed-bn/create_job.sh @@ -1 +1 @@ -nvflare job create -force -j ./jobs/fed_bn -w sag_pt -sd ./src/ -f config_fed_client.conf app_script=fedbn_cifar10.py +nvflare job create -force -j /tmp/nvflare/fed_bn/job -w sag_pt -sd ./src/ -f config_fed_client.conf app_script=fedbn_cifar10.py diff --git a/research/fed-bn/run_job.sh b/research/fed-bn/run_job.sh index e7cd2231e7..dd82506bfe 100755 --- a/research/fed-bn/run_job.sh +++ b/research/fed-bn/run_job.sh @@ -1 +1 @@ -nvflare simulator -n 2 -t 2 ./jobs/fed_bn -w fedbn_workspace +nvflare simulator -n 2 -t 2 /tmp/nvflare/fed_bn/job -w /tmp/nvflare/fed_bn/workspace