kostyl-toolkit 0.1.16__tar.gz → 0.1.17__tar.gz

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.
Files changed (35) hide show
  1. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/PKG-INFO +1 -1
  2. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/clearml/pulling_utils.py +7 -8
  3. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/pyproject.toml +1 -1
  4. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/README.md +0 -0
  5. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/__init__.py +0 -0
  6. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/__init__.py +0 -0
  7. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/clearml/__init__.py +0 -0
  8. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/clearml/dataset_utils.py +0 -0
  9. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/clearml/logging_utils.py +0 -0
  10. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/configs/__init__.py +0 -0
  11. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/configs/base_model.py +0 -0
  12. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/configs/hyperparams.py +0 -0
  13. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/configs/training_settings.py +0 -0
  14. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/dist_utils.py +0 -0
  15. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/lightning/__init__.py +0 -0
  16. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/lightning/callbacks/__init__.py +0 -0
  17. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/lightning/callbacks/checkpoint.py +0 -0
  18. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/lightning/callbacks/early_stopping.py +0 -0
  19. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/lightning/callbacks/registry_uploading.py +0 -0
  20. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/lightning/extenstions/__init__.py +0 -0
  21. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/lightning/extenstions/custom_module.py +0 -0
  22. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/lightning/extenstions/pretrained_model.py +0 -0
  23. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/lightning/loggers/__init__.py +0 -0
  24. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/lightning/loggers/tb_logger.py +0 -0
  25. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/lightning/steps_estimation.py +0 -0
  26. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/metrics_formatting.py +0 -0
  27. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/params_groups.py +0 -0
  28. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/schedulers/__init__.py +0 -0
  29. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/schedulers/base.py +0 -0
  30. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/schedulers/composite.py +0 -0
  31. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/ml/schedulers/cosine.py +0 -0
  32. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/utils/__init__.py +0 -0
  33. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/utils/dict_manipulations.py +0 -0
  34. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/utils/fs.py +0 -0
  35. {kostyl_toolkit-0.1.16 → kostyl_toolkit-0.1.17}/kostyl/utils/logging.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kostyl-toolkit
3
- Version: 0.1.16
3
+ Version: 0.1.17
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
@@ -19,7 +19,7 @@ def get_tokenizer_from_clearml(
19
19
  task: Task | None = None,
20
20
  ignore_remote_overrides: bool = True,
21
21
  name: str | None = None,
22
- ) -> PreTrainedTokenizerBase:
22
+ ) -> tuple[PreTrainedTokenizerBase, InputModel]:
23
23
  """
24
24
  Retrieve a Hugging Face tokenizer stored in a ClearML.
25
25
 
@@ -33,8 +33,8 @@ def get_tokenizer_from_clearml(
33
33
  (default to filename of the model weights, without the file extension, or to Input Model if that is not found)
34
34
 
35
35
  Returns:
36
- PreTrainedTokenizerBase: The instantiated tokenizer loaded from the local copy
37
- of the referenced ClearML InputModel.
36
+ The instantiated tokenizer loaded from the local copy
37
+ of the referenced ClearML InputModel and the ClearML InputModel instance.
38
38
 
39
39
  """
40
40
  clearml_tokenizer = InputModel(model_id=model_id)
@@ -58,7 +58,7 @@ def get_model_from_clearml[
58
58
  ignore_remote_overrides: bool = True,
59
59
  name: str | None = None,
60
60
  **kwargs: Any,
61
- ) -> TModel:
61
+ ) -> tuple[TModel, InputModel]:
62
62
  """
63
63
  Retrieve a pretrained model from ClearML and instantiate it using the appropriate loader.
64
64
 
@@ -68,14 +68,13 @@ def get_model_from_clearml[
68
68
  task: Optional ClearML task used to resolve the input model reference. If provided, the input model
69
69
  will be connected to this task, with remote overrides optionally ignored.
70
70
  ignore_remote_overrides: When connecting the input model to the provided task,
71
- determines whether
72
- remote configuration overrides should be ignored.
71
+ determines whether remote configuration overrides should be ignored.
73
72
  name: The model name to be stored on the Task
74
73
  (default to filename of the model weights, without the file extension, or to Input Model if that is not found)
75
74
  **kwargs: Additional keyword arguments to pass to the model loading method.
76
75
 
77
76
  Returns:
78
- An instantiated model loaded either from a ClearML package directory or a Lightning checkpoint.
77
+ The instantiated model and the ClearML InputModel instance.
79
78
 
80
79
  """
81
80
  input_model = InputModel(model_id=model_id)
@@ -103,4 +102,4 @@ def get_model_from_clearml[
103
102
  "Expected a ClearML package directory or a .ckpt file."
104
103
  )
105
104
  model_instance = cast(TModel, model_instance)
106
- return model_instance
105
+ return model_instance, input_model
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "kostyl-toolkit"
3
- version = "0.1.16"
3
+ version = "0.1.17"
4
4
  description = "Kickass Orchestration System for Training, Yielding & Logging "
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"