kostyl-toolkit 0.1.20__py3-none-any.whl → 0.1.21__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.
@@ -4,8 +4,6 @@ from pydantic import model_validator
4
4
 
5
5
  from kostyl.utils.logging import setup_logger
6
6
 
7
- from .base_model import KostylBaseModel
8
-
9
7
 
10
8
  logger = setup_logger(fmt="only_message")
11
9
 
@@ -75,7 +73,7 @@ class WeightDecay(BaseModel):
75
73
  return self
76
74
 
77
75
 
78
- class HyperparamsConfig(KostylBaseModel):
76
+ class HyperparamsConfig(BaseModel):
79
77
  """Model training hyperparameters configuration."""
80
78
 
81
79
  grad_clip_val: float | None = Field(default=None, gt=0, validate_default=False)
@@ -5,8 +5,6 @@ from pydantic import Field
5
5
 
6
6
  from kostyl.utils.logging import setup_logger
7
7
 
8
- from .base_model import KostylBaseModel
9
-
10
8
 
11
9
  logger = setup_logger(fmt="only_message")
12
10
 
@@ -95,7 +93,7 @@ class DataConfig(BaseModel):
95
93
  data_columns: list[str]
96
94
 
97
95
 
98
- class TrainingSettings(KostylBaseModel):
96
+ class TrainingSettings(BaseModel):
99
97
  """Training parameters configuration."""
100
98
 
101
99
  trainer: LightningTrainerParameters
kostyl/utils/logging.py CHANGED
@@ -118,7 +118,7 @@ def setup_logger(
118
118
  else:
119
119
  base = name
120
120
 
121
- if add_rank is None:
121
+ if (add_rank is None) or add_rank:
122
122
  try:
123
123
  add_rank = dist.is_available() and dist.is_initialized()
124
124
  except Exception:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kostyl-toolkit
3
- Version: 0.1.20
3
+ Version: 0.1.21
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
@@ -6,8 +6,8 @@ kostyl/ml/clearml/logging_utils.py,sha256=GBjIIZbH_itd5sj7XpvxjkyZwxxGOpEcQ3BiWa
6
6
  kostyl/ml/clearml/pulling_utils.py,sha256=07bb7ZYlZy-qoZLn7uWZCtz02eX2idgk3JA-PPooS9E,4077
7
7
  kostyl/ml/configs/__init__.py,sha256=IetcivbqYGutowLqxdKp7QR4tkXKBr4m8t4Zkk9jHZU,911
8
8
  kostyl/ml/configs/base_model.py,sha256=Eofn14J9RsjpVx_J4rp6C19pDDCANU4hr3JtX-d0FpQ,4820
9
- kostyl/ml/configs/hyperparams.py,sha256=CaVNEvpW4LvlHhLsbe2FockIGI1mJufCqjH298nYgKE,2971
10
- kostyl/ml/configs/training_settings.py,sha256=0cyKF6EuTv6KgXC1g0Oy9zbwnMkDP4uXTJJO1TRQ0aY,2556
9
+ kostyl/ml/configs/hyperparams.py,sha256=OqN7mEj3zc5MTqBPCZL3Lcd2VCTDLo_K0yvhRWGfhCs,2924
10
+ kostyl/ml/configs/training_settings.py,sha256=Sq2tiRuwkbmi9zKDG2JghZLXo5DDt_eQqN_KYJSdcTY,2509
11
11
  kostyl/ml/dist_utils.py,sha256=Onf0KHVLA8oeUgZTcTdmR9qiM22f2uYLoNwgLbMGJWk,3495
12
12
  kostyl/ml/lightning/__init__.py,sha256=-F3JAyq8KU1d-nACWryGu8d1CbvWbQ1rXFdeRwfE2X8,175
13
13
  kostyl/ml/lightning/callbacks/__init__.py,sha256=Vd-rozY4T9Prr3IMqbliXxj6sC6y9XsovHQqRwzc2HI,297
@@ -29,7 +29,7 @@ kostyl/ml/schedulers/cosine.py,sha256=jufULVHn_L_ZZEc3ZTG3QCY_pc0jlAMH5Aw496T31j
29
29
  kostyl/utils/__init__.py,sha256=hkpmB6c5pr4Ti5BshOROebb7cvjDZfNCw83qZ_FFKMM,240
30
30
  kostyl/utils/dict_manipulations.py,sha256=e3vBicID74nYP8lHkVTQc4-IQwoJimrbFELy5uSF6Gk,1073
31
31
  kostyl/utils/fs.py,sha256=gAQNIU4R_2DhwjgzOS8BOMe0gZymtY1eZwmdgOdDgqo,510
32
- kostyl/utils/logging.py,sha256=CQmPZ1x7yiVz56OkK6IZCtdoHs_Owo7fxJ03oOct-Qc,5782
33
- kostyl_toolkit-0.1.20.dist-info/WHEEL,sha256=3id4o64OvRm9dUknh3mMJNcfoTRK08ua5cU6DFyVy-4,79
34
- kostyl_toolkit-0.1.20.dist-info/METADATA,sha256=HaAS7ZSdaBNwoyKc6juh3nTDfEgQBPbWtMhAZg7Xg3s,4269
35
- kostyl_toolkit-0.1.20.dist-info/RECORD,,
32
+ kostyl/utils/logging.py,sha256=Vye0u4-yeOSUc-f03gpQbxSktTbFiilTWLEVr00ZHvc,5796
33
+ kostyl_toolkit-0.1.21.dist-info/WHEEL,sha256=z-mOpxbJHqy3cq6SvUThBZdaLGFZzdZPtgWLcP2NKjQ,79
34
+ kostyl_toolkit-0.1.21.dist-info/METADATA,sha256=nd_zUIEvb2Bda7h6tbJHnUonjK9iBj4nMNYGMivhU2o,4269
35
+ kostyl_toolkit-0.1.21.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.9.13
2
+ Generator: uv 0.9.15
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any