From 8b7515c00e4a079f4bd84d81e85fe7a6f6af8626 Mon Sep 17 00:00:00 2001 From: huongdm1896 <domaihuong1451997@gmail.com> Date: Wed, 16 Apr 2025 14:32:22 +0200 Subject: [PATCH] GPU correct --- README.md | 14 +++++++++----- Run/config_instances_GPU.json | 2 ++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3434088..b5ddf39 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ Configure instances of experiment in a json format, structure is shown below. python3 get_freq.py ``` - Update extraced frequencies value to configure files. - - Structure of json config: + - Structure of json config: (remark: role "modules": ["logger"] is supported by the Flower_v1 example provided in this repo to easily log FL performance values. For your FL framework just leave it blank: "modules":[]). ```json { "instances": { @@ -152,7 +152,7 @@ Configure instances of experiment in a json format, structure is shown below. Choose only one in 3 settings: - `dummy`: for testing in min and max GPU freq (`false` or `true`). - `baseline`: for testing in max GPU freq (`false` or `true`). - - last setting includes 3 parameters: test with the all freqs in the range. To disable this setting, set the `zoomfrom` and `zoomto` are same values. + - last setting is `frequencies`, includes 3 parameters: test with the all freqs in the range. To disable this setting, set the `zoomfrom` and `zoomto` are same values. - `steps`: steps to jump in range/window of frequencies (int). - `zoomfrom`: freq start - `zoomto`: freq stop @@ -272,6 +272,7 @@ Log/Flower_SingleTest │ ├── Expetator_<host_info>_<timestamp>: measurement log │ ├── Flwr_<timestamp>: Flower log │ │ ├── Client_<ip> +│ │ ├── Client_<ip> │ │ ├── Server_<ip> │ │ ├── training_results_<instance_name>_<time>.csv │ ├── Flwr_<timestamp> @@ -279,12 +280,15 @@ Log/Flower_SingleTest │ │ ├── Server_<ip> ... ``` -Output dir structure for demo campaign, includes 2 folders for 2 instances: +Output dir structure for demo campaign, includes 4 folders for 4 instances: ```plaintext Log/Flower_CampaignTest -├── Flower_instance_Flower_instance_fedAvg_cifar10 -├── Flower_instance_Flower_instance_fedAvg2Clients_cifar10 +├── Flower_instance_fedAvg_cifar10_epoch1 +├── Flower_instance_fedAvg_cifar10_epoch2 +├── Flower_instance_fedAvg2Clients_cifar10_epoch1 +├── Flower_instance_fedAvg2Clients_cifar10_epoch2 +... ``` ### Step 6. Clean Up diff --git a/Run/config_instances_GPU.json b/Run/config_instances_GPU.json index ecde358..409f1df 100644 --- a/Run/config_instances_GPU.json +++ b/Run/config_instances_GPU.json @@ -18,6 +18,7 @@ "-s fedAvg" ], "ip": "172.16.66.76", + "modules": ["logger"], "port": 8080 }, "clients": [ @@ -74,6 +75,7 @@ "-s fedAvg2Clients" ], "ip": "172.16.66.76", + "modules": ["logger"], "port": 8080 }, "clients": [ -- GitLab