Spaces:
Runtime error
Runtime error
nroggendorff
commited on
Commit
•
cfa89e3
1
Parent(s):
9a5c3c2
Update train.py
Browse files
train.py
CHANGED
@@ -12,7 +12,7 @@ from huggingface_hub import HfApi
|
|
12 |
from torch.utils.data import DataLoader
|
13 |
from itertools import islice
|
14 |
|
15 |
-
BATCH_SIZE =
|
16 |
EPOCHS = 1
|
17 |
LEARNING_RATE = 2e-4
|
18 |
FACTOR = 12 ** 3 // 3
|
@@ -27,7 +27,7 @@ SHARD_SIZE = int(2e+6)
|
|
27 |
FP16 = True
|
28 |
WARMUP_STEPS = 50
|
29 |
WEIGHT_DECAY = 1e-3
|
30 |
-
GRADIENT_ACCUMULATION_STEPS =
|
31 |
PUSH_TO_HUB = True
|
32 |
|
33 |
class Space:
|
|
|
12 |
from torch.utils.data import DataLoader
|
13 |
from itertools import islice
|
14 |
|
15 |
+
BATCH_SIZE = 8
|
16 |
EPOCHS = 1
|
17 |
LEARNING_RATE = 2e-4
|
18 |
FACTOR = 12 ** 3 // 3
|
|
|
27 |
FP16 = True
|
28 |
WARMUP_STEPS = 50
|
29 |
WEIGHT_DECAY = 1e-3
|
30 |
+
GRADIENT_ACCUMULATION_STEPS = 4
|
31 |
PUSH_TO_HUB = True
|
32 |
|
33 |
class Space:
|