heavyball 0.21.2__py3-none-any.whl → 0.21.3__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.
- heavyball/utils.py +1 -1
- {heavyball-0.21.2.dist-info → heavyball-0.21.3.dist-info}/METADATA +1 -1
- {heavyball-0.21.2.dist-info → heavyball-0.21.3.dist-info}/RECORD +6 -6
- {heavyball-0.21.2.dist-info → heavyball-0.21.3.dist-info}/LICENSE +0 -0
- {heavyball-0.21.2.dist-info → heavyball-0.21.3.dist-info}/WHEEL +0 -0
- {heavyball-0.21.2.dist-info → heavyball-0.21.3.dist-info}/top_level.txt +0 -0
heavyball/utils.py
CHANGED
@@ -968,7 +968,7 @@ class PSGDBase(StatefulOptimizer):
|
|
968
968
|
@torch.compile(mode='max-autotune-no-cudagraphs', fullgraph=True, dynamic=True)
|
969
969
|
def _compilable_precond_grad_cached_(cached_q, ea, expr, param, lr, weight_decay):
|
970
970
|
md = min_dtype(cached_q + [ea])
|
971
|
-
new = torch.einsum(
|
971
|
+
new = torch.einsum(expr, *[c_.to(md) for c_ in cached_q], ea.to(md)).to(torch.float32)
|
972
972
|
update_param_([param], self.clip_fn([new]), lr, weight_decay)
|
973
973
|
|
974
974
|
|
@@ -16,9 +16,9 @@ heavyball/precond_schedule_sfpsoap.py,sha256=PNneiOkrRyV1yIZn91lPmYofd1_OiLqJTDy
|
|
16
16
|
heavyball/psgd_kron.py,sha256=RSLJi5FnSmYjvYBufNDClnYRm-eN_Kpa1Ar2tNP6-X0,5824
|
17
17
|
heavyball/pure_psgd.py,sha256=LZK0qmvZkBF8g00evaVLtW-sIUJmdoxag1K7O26AqEo,4820
|
18
18
|
heavyball/schedule_free_palm_foreach_soap.py,sha256=_AqrnChY6iDlQUkF2YUxS7eLjSWCIuvEUOHvMHVM1yY,6873
|
19
|
-
heavyball/utils.py,sha256=
|
20
|
-
heavyball-0.21.
|
21
|
-
heavyball-0.21.
|
22
|
-
heavyball-0.21.
|
23
|
-
heavyball-0.21.
|
24
|
-
heavyball-0.21.
|
19
|
+
heavyball/utils.py,sha256=uwzxBwlc5JOBBnjle4DiVoXR9HZQX8OG71_HR96BnMg,37187
|
20
|
+
heavyball-0.21.3.dist-info/LICENSE,sha256=CGdGJim64YifGmUVPaeyRsxkvyExtClswhRNIp8FY_U,1322
|
21
|
+
heavyball-0.21.3.dist-info/METADATA,sha256=6LEa-C-RwfG1sjpIIZhIm1iTiKpxS7VSh8RMXrLV-SE,11926
|
22
|
+
heavyball-0.21.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
23
|
+
heavyball-0.21.3.dist-info/top_level.txt,sha256=SzCxSVg_qCUPA4kZObW3Zyo4v-d_mMOD-p7a-WXTl2E,10
|
24
|
+
heavyball-0.21.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|