We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5ab1d2 commit 0804c81Copy full SHA for 0804c81
.gitignore
@@ -1,6 +1,7 @@
1
spliceai_train_code/
2
3
data/
4
+ckpts/
5
note/.ipynb_checkpoints/
6
7
*.egg-info/
tranception_pytorch/train.py
@@ -136,6 +136,9 @@ def main():
136
running_loss = []
137
138
if (cnt // args.gradient_accumulation_steps) % 25000 == 0:
139
+ if not os.path.exists(os.path.dirname(args.output)):
140
+ os.makedirs(os.path.dirname(args.output))
141
+
142
idx = cnt // args.gradient_accumulation_steps
143
torch.save(model.state_dict(), f'{args.output}_{idx}.pt')
144
0 commit comments