Skip to content

Commit

Permalink
Update configuration object examples for new definition
Browse files Browse the repository at this point in the history
  • Loading branch information
JMGaljaard committed Sep 4, 2022
1 parent 6c07694 commit 5ab8071
Show file tree
Hide file tree
Showing 15 changed files with 77 additions and 1,118 deletions.
125 changes: 71 additions & 54 deletions configs/distributed_tasks/example_arrival_config.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,75 @@
[
{
"type": "distributed",
"jobClassParameters": {
"networkConfiguration": {
"network": "FashionMNISTCNN",
"lossFunction": "CrossEntropyLoss",
"dataset": "mnist"
},
"systemParameters": {
"dataParallelism": 2,
"configurations": {
"default": {
"cores": "1000m",
"memory": "1Gi"
}
}
},
"hyperParameters": {
"default": {
"batchSize": 128,
"testBatchSize": 128,
"learningRateDecay": 0.0002,
"optimizerConfig": {
"type": "Adam",
"learningRate": 0.001,
"betas": [
0.9,
0.999
]
{
"experimentConfiguration": {
"randomSeed": [
1,
41,
42,
43,
430
]
},
"trainTasks": [
{
"type": "distributed",
"lambda": 0.004,
"preemptJobs": false,
"jobClassParameters": [
{
"classProbability": 0.1,
"priorities": [
{
"priority": 1,
"probability": 0.9
},
{
"priority": 0,
"probability": 0.1
}
],
"networkConfiguration": {
"network": "FashionMNISTCNN",
"lossFunction": "CrossEntropyLoss",
"dataset": "mnist"
},
"systemParameters": {
"dataParallelism": 2,
"configurations": {
"default": {
"cores": "1000m",
"memory": "1Gi"
}
}
},
"hyperParameters": {
"default": {
"totalEpochs": 100,
"batchSize": 128,
"testBatchSize": 128,
"learningRateDecay": 0.0002,
"optimizerConfig": {
"type": "Adam",
"learningRate": 0.001,
"betas": [
0.9,
0.999
]
},
"schedulerConfig": {
"schedulerStepSize": 50,
"schedulerGamma": 0.5,
"minimumLearningRate": 1e-10
}
},
"configurations": {
"Master": null,
"Worker": null
}
},
"schedulerConfig": {
"schedulerStepSize": 50,
"schedulerGamma": 0.5,
"minimumLearningRate": 1e-10
"learningParameters": {
"cuda": false
}
},
"configurations": {
"Master": null,
"Worker": null
}
},
"learningParameters": {
"totalEpochs": 100,
"cuda": false
},
"experimentConfiguration": {
"randomSeed": [
1,
41,
42,
43,
430
]
}
]
}
}
]
]
}
7 changes: 3 additions & 4 deletions configs/example_cloud_experiment.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"cluster": {
"orchestrator": {
"wait_for_clients": true,
"service": "fl-server.test.svc.cluster.local",
"nic": "eth0"
"orchestrator_type": "simulated"
},
"client": {
"prefix": "client",
"tensorboard_active": false
},
"image": "gcr.io/test-bed-distml/fltk:latest"
"image": "gcr.io/test-bed-distml/fltk:latest",
"namespace": "test"
},
"execution_config": {
"duration": 3600,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from torchvision import datasets
from torchvision import transforms

from fltk.datasets.distributed.dataset import DistDataset
from fltk.datasets.distributed import DistDataset
from fltk.samplers import get_sampler
from fltk.util.config import FedLearningConfig

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from abc import abstractmethod
from typing import Any

# from fltk.util.arguments import Arguments
from fltk.util.config import FedLearningConfig
from fltk.util.log import getLogger

Expand Down
File renamed without changes.
File renamed without changes.
47 changes: 0 additions & 47 deletions fltk/datasets/loader_util.py

This file was deleted.

70 changes: 0 additions & 70 deletions fltk/util/generate_data_distribution.py

This file was deleted.

Loading

0 comments on commit 5ab8071

Please sign in to comment.