-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.py
45 lines (34 loc) · 958 Bytes
/
_config.py
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
import wandb
class Config:
wandb.config = {
# Training Hyperparameters:
"LR" : 1e-4,
"MOMENTUM" : 0.9,
"WEIGHT_DECAY" : 0,
"ETA" : 0.001,
"EPOCHS" : 3,
# Paths:
"LOSS_PATH" : '/home/terasquid/Documents/NLP/context_enhancement/loss.txt',
"MODEL_STORE_PATH" : '/home/terasquid/Documents/NLP/context_enhancement/',
"CHECKPOINT_PATH" : '/home/terasquid/Documents/NLP/context_enhancement/',
# Dataset parameters:
"LANG_PAIR" : 'de-en',
"SPLIT" : 'test',
"BATCH_SIZE" : 8,
# Tokenizer parameters:
"TOKENIZER" : 'bert-base-multilingual-cased',
# transformer hyperparameters:
"D_MODEL" : 768,
"N_HEAD" : 4,
"DIM_FEEDFORWARD" : 256,
"NUM_LAYERS" : 2,
# Model Hyperparameters:
"PROJECTOR_LAYERS" : '768-800',
"MBERT_OUT_SIZE" : 768,
"LAMBD" : 0.6,
# GPU parameters:
"NUM_GPUS" : 1,
"NODES" : 4,
"WORLD_SIZE" : 4
}
config = wandb.config