Spaces:
Running
Running
fix: missing arg
Browse filesFormer-commit-id: ae6b730efc6819a366c2b35810d0f2c0a90b3227
seq2seq/run_seq2seq_flax.py
CHANGED
|
@@ -703,7 +703,7 @@ def main():
|
|
| 703 |
)
|
| 704 |
if model_args.from_checkpoint is not None:
|
| 705 |
# restore optimizer state, step and optimizer_step
|
| 706 |
-
restore_state(state)
|
| 707 |
|
| 708 |
# label smoothed cross entropy
|
| 709 |
def loss_fn(logits, labels):
|
|
|
|
| 703 |
)
|
| 704 |
if model_args.from_checkpoint is not None:
|
| 705 |
# restore optimizer state, step and optimizer_step
|
| 706 |
+
restore_state(state, artifact_dir)
|
| 707 |
|
| 708 |
# label smoothed cross entropy
|
| 709 |
def loss_fn(logits, labels):
|