kostyl-toolkit 0.1.9__py3-none-any.whl → 0.1.10__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.
@@ -1,4 +1,5 @@
1
1
  from pathlib import Path
2
+ from typing import cast
2
3
 
3
4
  from clearml import InputModel
4
5
  from clearml import Task
@@ -47,7 +48,7 @@ def get_model_from_clearml[
47
48
  model: type[TModel],
48
49
  task: Task | None = None,
49
50
  ignore_remote_overrides: bool = True,
50
- ) -> PreTrainedModel:
51
+ ) -> TModel:
51
52
  """
52
53
  Retrieve a pretrained model from ClearML and instantiate it using the appropriate loader.
53
54
 
@@ -83,4 +84,5 @@ def get_model_from_clearml[
83
84
  f"Unsupported model format for path: {local_path}. "
84
85
  "Expected a ClearML package directory or a .ckpt file."
85
86
  )
87
+ model_instance = cast(TModel, model_instance)
86
88
  return model_instance
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kostyl-toolkit
3
- Version: 0.1.9
3
+ Version: 0.1.10
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
@@ -4,7 +4,7 @@ kostyl/ml_core/clearml/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
4
4
  kostyl/ml_core/clearml/config_mixin.py,sha256=sN24RPs8kWW1iXpIr_6w1bfEZZSXIV_i_RXypqzjwXg,3368
5
5
  kostyl/ml_core/clearml/dataset_utils.py,sha256=eij_sr2KDhm8GxEbVbK8aBjPsuVvLl9-PIGGaKVgXLA,1729
6
6
  kostyl/ml_core/clearml/logging_utils.py,sha256=GBjIIZbH_itd5sj7XpvxjkyZwxxGOpEcQ3BiWaJTyq8,1210
7
- kostyl/ml_core/clearml/pulling_utils.py,sha256=7GgCVGWDKa8hqIXvXmdETNWdZ9WqbgobFDpVhlosfHI,3314
7
+ kostyl/ml_core/clearml/pulling_utils.py,sha256=mXL17sQxRaSLJKmLIjm7hCsZ7OjzLIKxrtebowBOtvQ,3379
8
8
  kostyl/ml_core/configs/__init__.py,sha256=pBuEhcumGBNncprqz-t_IGll2XtMmogTn9S6ZPHXCTg,997
9
9
  kostyl/ml_core/configs/base_model.py,sha256=nOuiBIQn5pYDRRq-F4HbfWi5cn8pfaT2kM02VGoo4TE,1622
10
10
  kostyl/ml_core/configs/hyperparams.py,sha256=u-7FIM-cD3nz9Sycuvg7r0Vdiu4pduafiCoAxq8JK0s,3011
@@ -31,6 +31,6 @@ 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=3MvfDPArZhwakHu5nMlp_LpOsWg0E0SP26y41clsBtA,5232
34
- kostyl_toolkit-0.1.9.dist-info/WHEEL,sha256=3id4o64OvRm9dUknh3mMJNcfoTRK08ua5cU6DFyVy-4,79
35
- kostyl_toolkit-0.1.9.dist-info/METADATA,sha256=iYt6-2YZOekG947b37TbF-ZC9ZG2jrCfCVnhjN3Ctw4,4268
36
- kostyl_toolkit-0.1.9.dist-info/RECORD,,
34
+ kostyl_toolkit-0.1.10.dist-info/WHEEL,sha256=3id4o64OvRm9dUknh3mMJNcfoTRK08ua5cU6DFyVy-4,79
35
+ kostyl_toolkit-0.1.10.dist-info/METADATA,sha256=WRGWDJWvhk-VsChASkzG5vlzPLj89nv37gOVh9_FgPo,4269
36
+ kostyl_toolkit-0.1.10.dist-info/RECORD,,