libinephany 1.0.3__py3-none-any.whl → 1.1.1__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.
- libinephany/observations/observers/local_observers.py +8 -0
- libinephany/pydantic_models/schemas/inner_task_profile.py +4 -0
- libinephany/pydantic_models/schemas/tensor_statistics.py +1 -1
- libinephany/pydantic_models/states/hyperparameter_states.py +0 -2
- {libinephany-1.0.3.dist-info → libinephany-1.1.1.dist-info}/METADATA +1 -1
- {libinephany-1.0.3.dist-info → libinephany-1.1.1.dist-info}/RECORD +9 -9
- {libinephany-1.0.3.dist-info → libinephany-1.1.1.dist-info}/WHEEL +0 -0
- {libinephany-1.0.3.dist-info → libinephany-1.1.1.dist-info}/licenses/LICENSE +0 -0
- {libinephany-1.0.3.dist-info → libinephany-1.1.1.dist-info}/top_level.txt +0 -0
@@ -683,6 +683,14 @@ class ModuleTypeOneHot(LocalObserver):
|
|
683
683
|
|
684
684
|
return False
|
685
685
|
|
686
|
+
@property
|
687
|
+
def can_standardize(self) -> bool:
|
688
|
+
"""
|
689
|
+
:return: Whether the observation can be standardized.
|
690
|
+
"""
|
691
|
+
|
692
|
+
return False
|
693
|
+
|
686
694
|
def _get_observation_format(self) -> StatisticStorageTypes:
|
687
695
|
"""
|
688
696
|
:return: Format the observation returns data in. Must be one of the enum attributes in the StatisticStorageTypes
|
@@ -27,6 +27,7 @@ class InnerTaskProfile(BaseModel):
|
|
27
27
|
number_of_parameters: int
|
28
28
|
vram_usage: float
|
29
29
|
idle_vram_usage: float
|
30
|
+
hparam_overrides: dict[str, dict[str, Any]] | None = None
|
30
31
|
|
31
32
|
@field_validator("vram_usage", "idle_vram_usage", mode="before")
|
32
33
|
def replace_non_with_nan(cls, value: None | float) -> float:
|
@@ -244,6 +245,7 @@ class InnerTaskProfiles(BaseModel):
|
|
244
245
|
number_of_parameters: int,
|
245
246
|
vram_usage: float,
|
246
247
|
idle_vram_usage: float,
|
248
|
+
hparam_overrides: dict[str, dict[str, Any]] | None = None,
|
247
249
|
) -> None:
|
248
250
|
"""
|
249
251
|
:param inner_task_name: Name of the inner task to add a profile for.
|
@@ -254,6 +256,7 @@ class InnerTaskProfiles(BaseModel):
|
|
254
256
|
:param vram_usage: VRAM required to perform the inner task. Can be NaN if an OOM was encountered.
|
255
257
|
:param idle_vram_usage: VRAM required for the inner task to sit loaded but not actively being trained. Can be
|
256
258
|
NaN if an OOM was encountered.
|
259
|
+
:param hparam_overrides: Hyperparameter overrides for the inner task.
|
257
260
|
"""
|
258
261
|
|
259
262
|
self.profiles[inner_task_name] = InnerTaskProfile(
|
@@ -265,6 +268,7 @@ class InnerTaskProfiles(BaseModel):
|
|
265
268
|
number_of_parameters=number_of_parameters,
|
266
269
|
vram_usage=vram_usage,
|
267
270
|
idle_vram_usage=idle_vram_usage,
|
271
|
+
hparam_overrides=hparam_overrides,
|
268
272
|
)
|
269
273
|
|
270
274
|
def validate_task_profiles(self, policy_mapping_function: Callable[[str, Any, Any], str]) -> None:
|
@@ -205,7 +205,7 @@ class TensorStatistics(BaseModel):
|
|
205
205
|
for field, field_value in stats.model_dump().items():
|
206
206
|
name = field[:-1] if field.endswith(FIELD_SUFFIX) else field
|
207
207
|
|
208
|
-
if name in include_statistics:
|
208
|
+
if name in include_statistics or field in include_statistics:
|
209
209
|
setattr(stats, name, downsampled_tensor)
|
210
210
|
|
211
211
|
return stats
|
@@ -60,9 +60,7 @@ class UpdateCallbacks(BaseModel):
|
|
60
60
|
adam_eps: Callable[..., None]
|
61
61
|
sgd_momentum: Callable[..., None]
|
62
62
|
|
63
|
-
batch_size: Callable[..., None] | None
|
64
63
|
gradient_accumulation: Callable[..., None] | None
|
65
|
-
epochs: Callable[..., None] | None
|
66
64
|
|
67
65
|
def __getitem__(self, item: str) -> Callable[..., None] | None:
|
68
66
|
"""
|
@@ -9,7 +9,7 @@ libinephany/observations/statistic_manager.py,sha256=LLg1zSxnJr2oQQepYla3qoUuRy1
|
|
9
9
|
libinephany/observations/statistic_trackers.py,sha256=F98V-H2Ljx0v2YnppYCCJLJojL6pzYBdbBh8Lb4lasA,47666
|
10
10
|
libinephany/observations/observers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
libinephany/observations/observers/base_observers.py,sha256=V8PIysq2wT6K-w_CqeM5benyif-xK1hPT3M6a4ic1So,17535
|
12
|
-
libinephany/observations/observers/local_observers.py,sha256=
|
12
|
+
libinephany/observations/observers/local_observers.py,sha256=HvOQhVEANQJjAl6Ln_YuP0-fNt_Xkh8ixlkb-A5JqDM,46318
|
13
13
|
libinephany/observations/observers/observer_containers.py,sha256=VNyqGgxYJ4r49Msp_kk-POgicb-_5w54twuT1qfNdxw,9562
|
14
14
|
libinephany/observations/observers/global_observers/__init__.py,sha256=87WHRPYmL0tVsaTKUd91pwEpCZtHPSKRQoba2VQjswA,3018
|
15
15
|
libinephany/observations/observers/global_observers/base_classes.py,sha256=Q7OblhmKscypTs9JBepSQwo6ljjOdPKTU9kbpuhq_W4,7800
|
@@ -28,13 +28,13 @@ libinephany/pydantic_models/configs/observer_config.py,sha256=v_ChzaVXC_rlZ7eDZP
|
|
28
28
|
libinephany/pydantic_models/configs/outer_model_config.py,sha256=GQ0QBSC2Xht8x8X_TEMfYM2GF_x1kErLuFrA_H6Jhs0,1209
|
29
29
|
libinephany/pydantic_models/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
30
|
libinephany/pydantic_models/schemas/agent_info.py,sha256=me5gDxvZjP9TNK588mpUvxiiJrPDqy3Z7ZHRzryAYTs,2628
|
31
|
-
libinephany/pydantic_models/schemas/inner_task_profile.py,sha256=
|
31
|
+
libinephany/pydantic_models/schemas/inner_task_profile.py,sha256=2ix497uUCHUJzdfXtJRT6MDDn8OFQZ8zpZMBZUlvIHc,11976
|
32
32
|
libinephany/pydantic_models/schemas/observation_models.py,sha256=MLhxqDet9Yol1D5mkQGQsQT23sm37AStRLnPc4sgcZc,2110
|
33
33
|
libinephany/pydantic_models/schemas/request_schemas.py,sha256=VED8eAUvBofxeAx9gWU8DyCZOTVD3QsHRq-TO7kyOqk,1260
|
34
34
|
libinephany/pydantic_models/schemas/response_schemas.py,sha256=SKFuasdjX5aH_I0vT3SwnpwhyMf9cNPB1ZpDeAGgoO8,2158
|
35
|
-
libinephany/pydantic_models/schemas/tensor_statistics.py,sha256=
|
35
|
+
libinephany/pydantic_models/schemas/tensor_statistics.py,sha256=BTgeLacmhqc3uUM0WJiJdTwmdQe2RSKR9f4o5D8FZ1Y,8197
|
36
36
|
libinephany/pydantic_models/states/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
|
-
libinephany/pydantic_models/states/hyperparameter_states.py,sha256=
|
37
|
+
libinephany/pydantic_models/states/hyperparameter_states.py,sha256=SCLj-e84AsvGx2BIsl1moNQAQ79HU4Yqk1-xp3rr8sY,33697
|
38
38
|
libinephany/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
39
|
libinephany/utils/agent_utils.py,sha256=_2w1AY5Y4mQ5hes_Rq014VhZXOtIOn-W92mZgeixv3g,2658
|
40
40
|
libinephany/utils/asyncio_worker.py,sha256=Ew23zKIbG1zwyCudcyiObMrw4G0f3p2QXzZfM4mePqI,2751
|
@@ -57,8 +57,8 @@ libinephany/utils/typing.py,sha256=rGbaPO3MaUndsWiC_wHzReD_TOLYqb43i01pKN-j7Xs,6
|
|
57
57
|
libinephany/web_apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
58
58
|
libinephany/web_apps/error_logger.py,sha256=gAQIaqerqP4ornXZwFF1cghjnd2mMZEt3aVrTuUCr34,16653
|
59
59
|
libinephany/web_apps/web_app_utils.py,sha256=qiq_lasPipgN1RgRudPJc342kYci8O_4RqppxmIX8NY,4095
|
60
|
-
libinephany-1.
|
61
|
-
libinephany-1.
|
62
|
-
libinephany-1.
|
63
|
-
libinephany-1.
|
64
|
-
libinephany-1.
|
60
|
+
libinephany-1.1.1.dist-info/licenses/LICENSE,sha256=pogfDoMBP07ehIOvWymuWIar8pg2YLUhqOHsJQU3wdc,9250
|
61
|
+
libinephany-1.1.1.dist-info/METADATA,sha256=Tuhz8AcpTpOjIu4XuUd7dJsI8874RRP3RWn4OlpK-Sc,8389
|
62
|
+
libinephany-1.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
63
|
+
libinephany-1.1.1.dist-info/top_level.txt,sha256=bYAOXQdJgIoLkO2Ui0kxe7pSYegS_e38u0dMscd7COQ,12
|
64
|
+
libinephany-1.1.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|