nshtrainer 0.11.13__py3-none-any.whl → 0.12.0__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.
@@ -55,7 +55,7 @@ class BestCheckpoint(CheckpointBase[BestCheckpointCallbackConfig]):
55
55
 
56
56
  @override
57
57
  def default_filename(self):
58
- return f"epoch{{epoch:03d}}-{self._metric_name_normalized}{{{self.metric.validation_monitor}}}"
58
+ return f"epoch{{epoch}}-step{{step}}-{self._metric_name_normalized}{{{self.metric.validation_monitor}}}"
59
59
 
60
60
  @override
61
61
  def topk_sort_key(self, metadata: CheckpointMetadata):
@@ -28,7 +28,7 @@ class LastCheckpoint(CheckpointBase[LastCheckpointCallbackConfig]):
28
28
 
29
29
  @override
30
30
  def default_filename(self):
31
- return "epoch{epoch:03d}-step{step:07d}"
31
+ return "epoch{epoch}-step{step}"
32
32
 
33
33
  @override
34
34
  def topk_sort_key(self, metadata: CheckpointMetadata):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nshtrainer
3
- Version: 0.11.13
3
+ Version: 0.12.0
4
4
  Summary:
5
5
  Author: Nima Shoghi
6
6
  Author-email: nimashoghi@gmail.com
@@ -12,8 +12,8 @@ nshtrainer/callbacks/actsave.py,sha256=qbnaKts4_dvjPeAaPtv7Ds12_vEWzaHUfg_--49NB
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
14
  nshtrainer/callbacks/checkpoint/_base.py,sha256=yBUZ63P4a3m5jviIUGxBd2WXq_TigpKt3w4KdzqrzLs,6094
15
- nshtrainer/callbacks/checkpoint/best_checkpoint.py,sha256=qajV_GxeUg0GXeOtiimmPabMJnkNu_I1prZb2ksPOG8,2156
16
- nshtrainer/callbacks/checkpoint/last_checkpoint.py,sha256=ctwl2bmHC79enpg9wi-iHWQYIkP-iQIeyEvJUUJ5AW8,1105
15
+ nshtrainer/callbacks/checkpoint/best_checkpoint.py,sha256=DJiLo7NDzd-lp-O3v7Cv8WejyjXPV_6_RmfltKO9fvE,2165
16
+ nshtrainer/callbacks/checkpoint/last_checkpoint.py,sha256=CqB_8Xv32rtpLCaEEPi6DbRZm4ph5TWS-LfqIHXUIUA,1097
17
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
@@ -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.13.dist-info/METADATA,sha256=wKFqCeZ6hxeHznkFksP3-kqF6vhG7ErudiM-auKKEJE,861
86
- nshtrainer-0.11.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
87
- nshtrainer-0.11.13.dist-info/RECORD,,
85
+ nshtrainer-0.12.0.dist-info/METADATA,sha256=YKxr6_dhF7jHF1njUUJi0CZRR0BuOPDNrQiwiIO7iTU,860
86
+ nshtrainer-0.12.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
87
+ nshtrainer-0.12.0.dist-info/RECORD,,