39 lines
670 B
YAML
39 lines
670 B
YAML
use_gpu: True
|
|
seed: 1
|
|
device: 2
|
|
federate:
|
|
mode: standalone
|
|
total_round_num: 50
|
|
client_num: 1
|
|
sample_client_rate: 1.0
|
|
method: global
|
|
restore_from: '../test_supervised.ckpt'
|
|
data:
|
|
root: 'data'
|
|
type: 'Cifar4LP'
|
|
batch_size: 256
|
|
splitter: 'lda'
|
|
splitter_args: [{'alpha': 0.5}]
|
|
num_workers: 4
|
|
model:
|
|
type: 'SimCLR_linear'
|
|
train:
|
|
local_update_steps: 1
|
|
batch_or_epoch: 'epoch'
|
|
optimizer:
|
|
lr: 0.01
|
|
momentum: 0.9
|
|
weight_decay: 0.0
|
|
scheduler:
|
|
type: CosineAnnealingLR
|
|
T_max: 50
|
|
early_stop:
|
|
patience: 0
|
|
criterion:
|
|
type: CrossEntropyLoss
|
|
trainer:
|
|
type: 'lptrainer'
|
|
eval:
|
|
freq: 5
|
|
metrics: ['acc']
|
|
split: ['val', 'test'] |