Booguy commited on
Commit
d6958ad
1 Parent(s): db09b01

Create config.py

Browse files
Files changed (1) hide show
  1. src/config.py +21 -0
src/config.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CONFIG = dict(
2
+ model_name="microsoft/deberta-v3-large",
3
+ num_classes=6,
4
+ lr=2e-5,
5
+
6
+ batch_size=8,
7
+ num_workers=8,
8
+ max_length=512,
9
+ weight_decay=0.01,
10
+
11
+ accelerator='gpu',
12
+ max_epochs=5,
13
+ accumulate_grad_batches=4,
14
+ precision=16,
15
+ gradient_clip_val=1000,
16
+ train_size=0.8,
17
+ num_cross_val_splits=5,
18
+ num_frozen_layers=20, # out of 24 in deberta
19
+ )
20
+
21
+ # we can also try nn.SmoothL1Loss