kostyl-toolkit 0.1.27__py3-none-any.whl → 0.1.29__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.
@@ -69,6 +69,8 @@ class ClearMLRegistryUploaderCallback(RegistryUploaderCallback):
69
69
  self._output_model: OutputModel | None = None
70
70
  self._last_uploaded_model_path: str = ""
71
71
  self._upload_callback: Callable | None = None
72
+
73
+ self._design_updated: bool = False
72
74
  return
73
75
 
74
76
  def _create_output_model(self) -> OutputModel:
@@ -116,7 +118,9 @@ class ClearMLRegistryUploaderCallback(RegistryUploaderCallback):
116
118
  auto_delete_file=False,
117
119
  async_enable=False,
118
120
  )
119
- self._output_model.update_design(config_dict=self.config_dict)
121
+ if not self._design_updated and self.config_dict is not None:
122
+ self._output_model.update_design(config_dict=self.config_dict)
123
+ self._design_updated = True
120
124
 
121
125
  self._last_uploaded_model_path = path
122
126
  return
@@ -13,21 +13,21 @@ class _LinearScheduleBase(BaseScheduler):
13
13
  self,
14
14
  param_name: str,
15
15
  num_iters: int,
16
- base_value: float,
16
+ start_value: float,
17
17
  final_value: float,
18
18
  ) -> None:
19
19
  self.param_name = param_name
20
20
  self.num_iters = num_iters
21
- self.base_value = base_value
21
+ self.start_value = start_value
22
22
  self.final_value = final_value
23
23
 
24
24
  self.scheduler_values: npt.NDArray[np.float64] = np.array([], dtype=np.float64)
25
- self.current_value_ = self.base_value
25
+ self.current_value_ = self.start_value
26
26
  return
27
27
 
28
28
  def _create_scheduler(self) -> None:
29
29
  self.scheduler_values = np.linspace(
30
- self.base_value, self.final_value, num=self.num_iters, dtype=np.float64
30
+ self.start_value, self.final_value, num=self.num_iters, dtype=np.float64
31
31
  )
32
32
  if len(self.scheduler_values) != self.num_iters:
33
33
  raise ValueError(
@@ -69,7 +69,7 @@ class LinearScheduler(_LinearScheduleBase):
69
69
  optimizer: torch.optim.Optimizer,
70
70
  param_group_field: str,
71
71
  num_iters: int,
72
- base_value: float,
72
+ start_value: float,
73
73
  final_value: float,
74
74
  multiplier_field: str | None = None,
75
75
  skip_if_zero: bool = False,
@@ -83,7 +83,7 @@ class LinearScheduler(_LinearScheduleBase):
83
83
  optimizer: Optimizer whose param groups are updated in-place.
84
84
  param_group_field: Name of the field that receives the scheduled value.
85
85
  num_iters: Number of scheduler iterations before clamping at ``final_value``.
86
- base_value: Value used on the first iteration.
86
+ start_value: Value used on the first iteration.
87
87
  final_value: Value used once ``num_iters`` iterations are consumed.
88
88
  multiplier_field: Optional per-group multiplier applied to the scheduled value.
89
89
  skip_if_zero: Leave groups untouched when their target field equals zero.
@@ -99,7 +99,7 @@ class LinearScheduler(_LinearScheduleBase):
99
99
  super().__init__(
100
100
  param_name=param_group_field,
101
101
  num_iters=num_iters,
102
- base_value=base_value,
102
+ start_value=start_value,
103
103
  final_value=final_value,
104
104
  )
105
105
  self.param_group_field = param_group_field
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kostyl-toolkit
3
- Version: 0.1.27
3
+ Version: 0.1.29
4
4
  Summary: Kickass Orchestration System for Training, Yielding & Logging
5
5
  Requires-Dist: case-converter>=1.2.0
6
6
  Requires-Dist: loguru>=0.7.3
@@ -13,7 +13,7 @@ kostyl/ml/lightning/__init__.py,sha256=-F3JAyq8KU1d-nACWryGu8d1CbvWbQ1rXFdeRwfE2
13
13
  kostyl/ml/lightning/callbacks/__init__.py,sha256=enexQt3octktsTiEYHltSF_24CM-NeFEVFimXiavGiY,296
14
14
  kostyl/ml/lightning/callbacks/checkpoint.py,sha256=KNwNVB2TFh2dcn133NbeTo5ul0jgiPYCeA-8NQ7U_mw,18951
15
15
  kostyl/ml/lightning/callbacks/early_stopping.py,sha256=D5nyjktCJ9XYAf28-kgXG8jORvXLl1N3nbDQnvValPM,615
16
- kostyl/ml/lightning/callbacks/registry_uploader.py,sha256=pIZHzHVANO_VsxPIbYhS8SwgZFHL341mP2HJnQ4iMFs,4216
16
+ kostyl/ml/lightning/callbacks/registry_uploader.py,sha256=GtXKqjfBoqPa0udgIulnTrQZOK3NqUeSTEA9apjxz_o,4374
17
17
  kostyl/ml/lightning/extenstions/__init__.py,sha256=OY6QGv1agYgqqKf1xJBrxgp_i8FunVfPzYezfaRrGXU,182
18
18
  kostyl/ml/lightning/extenstions/custom_module.py,sha256=nB5jW7cqRD1tyh-q5LD2EtiFQwFkLXpnS9Yu6c5xMRg,5987
19
19
  kostyl/ml/lightning/extenstions/pretrained_model.py,sha256=QJGr2UvYJcU2Gy2w8z_cEvTodjv7hGdd2PPPfdOI-Mw,4017
@@ -26,11 +26,11 @@ kostyl/ml/schedulers/__init__.py,sha256=bxXbsU_WYnVbhvNNnuI7cOAh2Axz7D25TaleBTZh
26
26
  kostyl/ml/schedulers/base.py,sha256=9M2iOoOVSRojR_liPX1qo3Nn4iMXSM5ZJuAFWZTulUk,1327
27
27
  kostyl/ml/schedulers/composite.py,sha256=ee4xlMDMMtjKPkbTF2ue9GTr9DuGCGjZWf11mHbi6aE,2387
28
28
  kostyl/ml/schedulers/cosine.py,sha256=t74_ByT22L5NQKpnBVU9UGzBVx1ZM2GTylb9ct3_PVg,7627
29
- kostyl/ml/schedulers/linear.py,sha256=62mYEfd_2cQjOWrd0Vl5_sFeEokBKYmx496szhY04aU,5159
29
+ kostyl/ml/schedulers/linear.py,sha256=7HPkVWcPa0lbaZywutXSDdVLLSihAyWk5XIE2Dzj_5Q,5168
30
30
  kostyl/utils/__init__.py,sha256=hkpmB6c5pr4Ti5BshOROebb7cvjDZfNCw83qZ_FFKMM,240
31
31
  kostyl/utils/dict_manipulations.py,sha256=e3vBicID74nYP8lHkVTQc4-IQwoJimrbFELy5uSF6Gk,1073
32
32
  kostyl/utils/fs.py,sha256=gAQNIU4R_2DhwjgzOS8BOMe0gZymtY1eZwmdgOdDgqo,510
33
33
  kostyl/utils/logging.py,sha256=Vye0u4-yeOSUc-f03gpQbxSktTbFiilTWLEVr00ZHvc,5796
34
- kostyl_toolkit-0.1.27.dist-info/WHEEL,sha256=ZyFSCYkV2BrxH6-HRVRg3R9Fo7MALzer9KiPYqNxSbo,79
35
- kostyl_toolkit-0.1.27.dist-info/METADATA,sha256=kg7Y2CJqhAI-3--rIKsPlarm1Ukk6jQLJpW2ZBvysI8,4269
36
- kostyl_toolkit-0.1.27.dist-info/RECORD,,
34
+ kostyl_toolkit-0.1.29.dist-info/WHEEL,sha256=ZyFSCYkV2BrxH6-HRVRg3R9Fo7MALzer9KiPYqNxSbo,79
35
+ kostyl_toolkit-0.1.29.dist-info/METADATA,sha256=x2GAeUoq_SaLJK1V48yxjw07IJYnhIvQ26bh8KE5LuQ,4269
36
+ kostyl_toolkit-0.1.29.dist-info/RECORD,,