-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathconfig.json
88 lines (88 loc) · 1.91 KB
/
config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"wandb": {
"enabled": false,
"project": "FedAsync",
"name": "1"
},
"global": {
"use_file_system": false,
"multi_gpu": true,
"experiment": "FedAsync/1",
"stale": [0,0,0,0,0,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16],
"dataset": {
"path": "dataset.MNIST.MNIST",
"params": {}
},
"iid": false,
"client_num": 20
},
"server": {
"path": "server.NormalServer.NormalServer",
"epochs": 300,
"model": {
"path": "model.LeNet5.LeNet5",
"params": {}
},
"scheduler": {
"path": "scheduler.AsyncScheduler.AsyncScheduler",
"schedule_interval": 8,
"schedule_delay": 20,
"schedule": {
"path": "schedule.RandomSchedule.RandomSchedule",
"params": {
"c_ratio": 0.4
}
}
},
"updater": {
"path": "updater.AsyncUpdater.AsyncUpdater",
"num_generator": 1,
"loss": "torch.nn.functional.cross_entropy",
"update": {
"path": "update.FedAsync.FedAsync",
"params": {
"a": 10,
"b": 8,
"alpha": 0.9,
"r" : 1
}
}
}
},
"queue_manager": {
"path": "queuemanager.SingleQueueManager.SingleQueueManager",
"receiver": {
"path": "receiver.NormalReceiver.NormalReceiver",
"params": {
}
},
"checker": {
"path": "checker.AllChecker.AllChecker",
"params": {
}
}
},
"client_manager": {
"path": "clientmanager.NormalClientManager.NormalClientManager"
},
"client": {
"path": "client.NormalClient.NormalClient",
"epochs": 2,
"batch_size": 64,
"test_size": 0.1,
"test_batch_size": 16,
"model": {
"path": "model.LeNet5.LeNet5",
"params": {}
},
"loss": "torch.nn.functional.cross_entropy",
"mu": 0,
"optimizer": {
"path": "torch.optim.SGD",
"params": {
"lr": 0.01,
"weight_decay": 0
}
}
}
}