-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.json
87 lines (87 loc) · 2 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
{
"name": "exp-name",
"n_gpu": 1,
"arch": {
"type": "snunlp/KR-ELECTRA-discriminator",
"args": {
"gru_enabled": true
}
},
"dataloader": {
"type": "STSDataModule",
"args": {
"batch_size": 16,
"shuffle": true,
"dataset_commit_hash": "00e11acc1364f0f222777f8d828e0a8cf0de265c",
"num_workers": -1,
"k_fold": {
"enabled": false,
"k": 5
}
}
},
"optimizer": {
"type": "AdamW",
"args": {
"lr": 1e-5,
"weight_decay": 0,
"amsgrad": true
}
},
"loss": {
"type": "SmoothL1Loss",
"args": {
"bce": false,
"beta": 0.5
}
},
"metrics": ["val_pearson"],
"lr_scheduler": {
"type": "StepLR",
"args": {
"step_size": 50,
"gamma": 0.1
},
"is_schedule": false
},
"trainer": {
"epochs": 1,
"save_dir": "saved/models/",
"save_freq": 1,
"monitor": "max val_pearson",
"early_stop": 3
},
"wandb": {
"entity": "salmons",
"project_name": "sts",
"sweep_project_name" : "jihwan_sweep",
"sweep_count": 10
},
"sweep_config": {
"method": "bayes",
"metric": {
"name": "val_pearson",
"goal": "maximize"
},
"parameters": {
"lr": {
"values": [3e-6, 5e-6, 7e-6, 1e-5, 2e-5, 3e-5, 5e-5]
},
"epochs": {
"values": [4, 5, 6, 7]
},
"batch_size" : {
"values" : [16]
},
"loss_function" :{
"values" : ["SmoothL1Loss"]
},
"beta":{
"values" : [0.1, 0.5, 1.0, 2.0, 5.0]
},
"optimizer":{
"values" : ["AdamW"]
}
}
}
}