Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ class BertModule(nn.Module):
|
|
35 |
MAX_EPOCHS = 5
|
36 |
BATCH_SIZE = 12
|
37 |
|
38 |
-
num_training_steps = MAX_EPOCHS * (
|
39 |
|
40 |
def lr_schedule(current_step):
|
41 |
factor = float(num_training_steps - current_step) / float(max(1, num_training_steps))
|
|
|
35 |
MAX_EPOCHS = 5
|
36 |
BATCH_SIZE = 12
|
37 |
|
38 |
+
num_training_steps = MAX_EPOCHS * (584 // BATCH_SIZE + 1)
|
39 |
|
40 |
def lr_schedule(current_step):
|
41 |
factor = float(num_training_steps - current_step) / float(max(1, num_training_steps))
|