nshtrainer 1.0.0b32__py3-none-any.whl → 1.0.0b33__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.
@@ -12,13 +12,11 @@ from typing_extensions import Never, TypeVar, deprecated, override
12
12
 
13
13
  from ..model.mixins.callback import CallbackRegistrarModuleMixin
14
14
  from ..model.mixins.debug import _DebugModuleMixin
15
- from ..util.hparams import HyperparamsMixin
16
15
 
17
16
  THparams = TypeVar("THparams", bound=C.Config, infer_variance=True)
18
17
 
19
18
 
20
19
  class LightningDataModuleBase(
21
- HyperparamsMixin,
22
20
  _DebugModuleMixin,
23
21
  CallbackRegistrarModuleMixin,
24
22
  LightningDataModule,
nshtrainer/model/base.py CHANGED
@@ -16,7 +16,6 @@ from lightning.pytorch.utilities.rank_zero import rank_zero_warn
16
16
  from typing_extensions import Never, TypeVar, deprecated, override
17
17
 
18
18
  from ..callbacks.rlp_sanity_checks import _RLPSanityCheckModuleMixin
19
- from ..util.hparams import HyperparamsMixin
20
19
  from .mixins.callback import CallbackModuleMixin
21
20
  from .mixins.debug import _DebugModuleMixin
22
21
  from .mixins.logger import LoggerLightningModuleMixin
@@ -55,7 +54,6 @@ VALID_REDUCE_OPS = (
55
54
 
56
55
 
57
56
  class LightningModuleBase(
58
- HyperparamsMixin,
59
57
  _DebugModuleMixin,
60
58
  _RLPSanityCheckModuleMixin,
61
59
  LoggerLightningModuleMixin,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nshtrainer
3
- Version: 1.0.0b32
3
+ Version: 1.0.0b33
4
4
  Summary:
5
5
  Author: Nima Shoghi
6
6
  Author-email: nimashoghi@gmail.com
@@ -99,7 +99,7 @@ nshtrainer/configs/util/config/dtype/__init__.py,sha256=PmGF-O4r6SXqEaagVsQ5YxEq
99
99
  nshtrainer/configs/util/config/duration/__init__.py,sha256=44lS2irOIPVfgshMTfnZM2jC6l0Pjst9w2M_lJoS_MU,353
100
100
  nshtrainer/data/__init__.py,sha256=K4i3Tw4g9EOK2zlMMbidi99y0SyI4w8P7_XUf1n42Ts,260
101
101
  nshtrainer/data/balanced_batch_sampler.py,sha256=r1cBKRXKHD8E1Ax6tj-FUbE-z1qpbO58mQ9VrK9uLnc,5481
102
- nshtrainer/data/datamodule.py,sha256=zov9GycH_kqHk-zp6S9gH5W-1lPYlRxx6zeX7jvartg,4204
102
+ nshtrainer/data/datamodule.py,sha256=lSOgH32nysJWa6Y7ba1QyOdUV0DVVdO98qokP8wigjk,4138
103
103
  nshtrainer/data/transform.py,sha256=qd0lIocO59Fk_m90xyOHgFezbymd1mRwly8nbYIfHGc,2263
104
104
  nshtrainer/loggers/__init__.py,sha256=-y8B-9TF6vJdZUQewJNDcZ2aOv04FEUFtKwaiDobIO0,670
105
105
  nshtrainer/loggers/_base.py,sha256=nw4AZzJP3Z-fljgQlgq7FkuMkPmYKTsXj7OfJJSmtXI,811
@@ -114,7 +114,7 @@ nshtrainer/lr_scheduler/reduce_lr_on_plateau.py,sha256=vXH5S26ESHO_LPPqW8aDC3S5N
114
114
  nshtrainer/metrics/__init__.py,sha256=Nqkn_jsDf3n5WtfMcnaaEftYjIIT2b-S7rmsB1MOMkU,86
115
115
  nshtrainer/metrics/_config.py,sha256=XIRokFM8PHrhBa3w2R6BM6a4es3ncsoBqE_LqXQFsFE,1223
116
116
  nshtrainer/model/__init__.py,sha256=3G-bwPPSRStWdsdwG9-rn0bXcRpEiP1BiQpF_qavtls,97
117
- nshtrainer/model/base.py,sha256=M_EJ6nXuG0B2u3iHOHTDQ2iNYYm6tGsBJIZ76RmFLn0,10422
117
+ nshtrainer/model/base.py,sha256=JL3AmH17GQjQIoMrZl3O0vUI7dj5ZsO5iEJgoLPyzHw,10356
118
118
  nshtrainer/model/mixins/callback.py,sha256=0LPgve4VszHbLipid4mpI1qnnmdGS2spivs0dXLvqHw,3154
119
119
  nshtrainer/model/mixins/debug.py,sha256=1LX9KzeFX9JDPs_a6YCdYDZXLhEk_5rBO2aCqlfBy7w,2087
120
120
  nshtrainer/model/mixins/logger.py,sha256=27H99FuLaxc6_dDLG2pid4E_5E0-eLGnc2Ifpt0HYIM,6066
@@ -148,12 +148,11 @@ nshtrainer/util/config/__init__.py,sha256=Z39JJufSb61Lhn2GfVcv3eFW_eorOrN9-9llDW
148
148
  nshtrainer/util/config/dtype.py,sha256=Fn_MhhQoHPyFAnFPSwvcvLiGR3yWFIszMba02CJiC4g,2213
149
149
  nshtrainer/util/config/duration.py,sha256=mM-UfU_HvhXwW33TYEDg0x58n80tnle2e6VaWtxZTjk,764
150
150
  nshtrainer/util/environment.py,sha256=s-B5nY0cKYXdFMdNYumvC_xxacMATiI4DvV2gUDu20k,4195
151
- nshtrainer/util/hparams.py,sha256=4i9czN6JQfDke2wuZzaOTNvwqHJvAvmoVD-PeL5c4r4,475
152
151
  nshtrainer/util/path.py,sha256=L-Nh9tlXSUfoP19TFbQq8I0AfS5ugCfGYTYFeddDHcs,3516
153
152
  nshtrainer/util/seed.py,sha256=diMV8iwBKN7Xxt5pELmui-gyqyT80_CZzomrWhNss0k,316
154
153
  nshtrainer/util/slurm.py,sha256=HflkP5iI_r4UHMyPjw9R4dD5AHsJUpcfJw5PLvGYBRM,1603
155
154
  nshtrainer/util/typed.py,sha256=Xt5fUU6zwLKSTLUdenovnKK0N8qUq89Kddz2_XeykVQ,164
156
155
  nshtrainer/util/typing_utils.py,sha256=MjY-CUX9R5Tzat-BlFnQjwl1PQ_W2yZQoXhkYHlJ_VA,442
157
- nshtrainer-1.0.0b32.dist-info/METADATA,sha256=lfVvKpZRYWMu5z95GD7-M3wGjzTUDYmWWA6_WG03sDs,988
158
- nshtrainer-1.0.0b32.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
159
- nshtrainer-1.0.0b32.dist-info/RECORD,,
156
+ nshtrainer-1.0.0b33.dist-info/METADATA,sha256=HV4xY5ye1RhwlSttGP9OUTmRVzUUl7H8r_KZCsSN_YY,988
157
+ nshtrainer-1.0.0b33.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
158
+ nshtrainer-1.0.0b33.dist-info/RECORD,,
@@ -1,18 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from typing import TYPE_CHECKING
4
-
5
- import nshconfig as C
6
- from lightning.pytorch.core.mixins.hparams_mixin import (
7
- HyperparametersMixin as _LightningHyperparametersMixin,
8
- )
9
-
10
-
11
- class HyperparamsMixin(_LightningHyperparametersMixin):
12
- if not TYPE_CHECKING:
13
-
14
- def _to_hparams_dict(self, hp):
15
- if isinstance(hp, C.Config):
16
- return hp.model_dump(mode="python")
17
-
18
- return super()._set_hparams(hp)