nshtrainer 0.11.10__py3-none-any.whl → 0.11.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,6 +62,7 @@ class CheckpointBase(Checkpoint, ABC, Generic[TConfig]):
62
62
 
63
63
  self.config = config
64
64
  self.dirpath = dirpath / self.name()
65
+ self.dirpath.mkdir(parents=True, exist_ok=True)
65
66
  self.symlink_dirpath = dirpath
66
67
 
67
68
  self._last_global_step_saved = 0
@@ -73,6 +73,9 @@ class OnExceptionCheckpoint(_OnExceptionCheckpoint):
73
73
  self.config = config
74
74
  del config
75
75
 
76
+ dirpath = dirpath / "on_exception"
77
+ dirpath.mkdir(parents=True, exist_ok=True)
78
+
76
79
  super().__init__(dirpath, filename)
77
80
 
78
81
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nshtrainer
3
- Version: 0.11.10
3
+ Version: 0.11.11
4
4
  Summary:
5
5
  Author: Nima Shoghi
6
6
  Author-email: nimashoghi@gmail.com
@@ -11,10 +11,10 @@ nshtrainer/callbacks/_throughput_monitor_callback.py,sha256=aJo_11rc4lo0IYOd-kHm
11
11
  nshtrainer/callbacks/actsave.py,sha256=qbnaKts4_dvjPeAaPtv7Ds12_vEWzaHUfg_--49NB9I,4041
12
12
  nshtrainer/callbacks/base.py,sha256=UnlYZAqSb8UwBJR-N5-XunxFx2yZjZ4lyGqUfhbCRlI,3555
13
13
  nshtrainer/callbacks/checkpoint/__init__.py,sha256=g-3zIthupERKqWZQw-A_busQPaPRkto6iHBV-M7nK1Y,527
14
- nshtrainer/callbacks/checkpoint/_base.py,sha256=9HQSa-toOyjtuDldQ71gaDVBRdryAaB_nRv5Y554tIk,5938
14
+ nshtrainer/callbacks/checkpoint/_base.py,sha256=wb5ARqqSslZXB5FSwNd9a_7qtt4-F9dC7E1vNHKCK1o,5994
15
15
  nshtrainer/callbacks/checkpoint/best_checkpoint.py,sha256=ySeyALxc-YJaS5IhmW0MkAhr41Mxsm_BllHuufXGy4Y,2067
16
16
  nshtrainer/callbacks/checkpoint/last_checkpoint.py,sha256=CM8f37dwaYHkjQFfJNTZTzSoF45zEjFRm-Fg1CzYmP4,1037
17
- nshtrainer/callbacks/checkpoint/on_exception_checkpoint.py,sha256=s8tOHrnb_uVqLVeV2K38ZszXrXPTEGdDVfXuXgo_KDQ,3277
17
+ nshtrainer/callbacks/checkpoint/on_exception_checkpoint.py,sha256=ctT88EGT22_t_6tr5r7Sfo43cuve6XeroBnBYRMPOus,3372
18
18
  nshtrainer/callbacks/early_stopping.py,sha256=LGn3rdbvkFfUo9kwMzK4eMGlPAqD9uFdowDx6VdfozQ,3761
19
19
  nshtrainer/callbacks/ema.py,sha256=8-WHmKFP3VfnzMviJaIFmVD9xHPqIPmq9NRF5xdu3c8,12131
20
20
  nshtrainer/callbacks/finite_checks.py,sha256=gJC_RUr3ais3FJI0uB6wUZnDdE3WRwCix3ppA3PwQXA,2077
@@ -82,6 +82,6 @@ nshtrainer/util/seed.py,sha256=Or2wMPsnQxfnZ2xfBiyMcHFIUt3tGTNeMMyOEanCkqs,280
82
82
  nshtrainer/util/slurm.py,sha256=rofIU26z3SdL79SF45tNez6juou1cyDLz07oXEZb9Hg,1566
83
83
  nshtrainer/util/typed.py,sha256=NGuDkDzFlc1fAoaXjOFZVbmj0mRFjsQi1E_hPa7Bn5U,128
84
84
  nshtrainer/util/typing_utils.py,sha256=8ptjSSLZxlmy4FY6lzzkoGoF5fGNClo8-B_c0XHQaNU,385
85
- nshtrainer-0.11.10.dist-info/METADATA,sha256=KC2AcgRB55-p9SZvLv_MD7wATBOSQJp4VcHzU8LfiCI,861
86
- nshtrainer-0.11.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
87
- nshtrainer-0.11.10.dist-info/RECORD,,
85
+ nshtrainer-0.11.11.dist-info/METADATA,sha256=GaYo1g6duhsnTuAEE1OVxBUJLI1kTfpPDzH7qNiKDUM,861
86
+ nshtrainer-0.11.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
87
+ nshtrainer-0.11.11.dist-info/RECORD,,