FS-TFP/federatedscope/nlp/baseline/fedavg_lr_on_twitter.yaml

34 lines
571 B
YAML

use_gpu: True
device: 0
early_stop:
patience: 5
federate:
mode: standalone
total_round_num: 100
sample_client_num: 10
share_local_model: True
online_aggr: True
data:
root: data/
type: twitter
subsample: 0.005
dataloader:
batch_size: 5
model:
type: lr
out_channels: 2
dropout: 0.0
train:
local_update_steps: 10
optimizer:
lr: 0.0003
weight_decay: 0.0
criterion:
type: CrossEntropyLoss
trainer:
type: nlptrainer
eval:
freq: 1
metrics: ['acc', 'correct', 'f1']
split: [ 'train' ]
best_res_update_round_wise_key: 'train_loss'