Browse Source

Amazon AWS EC2 startup and re-startup scripts (#2282)

5.0
Glenn Jocher GitHub 3 years ago
parent
commit
0070995bd5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      utils/aws/resume.py

+ 3
- 0
utils/aws/resume.py View File

@@ -2,11 +2,14 @@
# Usage: $ python utils/aws/resume.py

import os
import sys
from pathlib import Path

import torch
import yaml

sys.path.append('./') # to run '$ python *.py' files in subdirectories

port = 0 # --master_port
path = Path('').resolve()
for last in path.rglob('*/**/last.pt'):

Loading…
Cancel
Save