torchzero 0.1.8__py3-none-any.whl → 0.3.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.
- docs/source/conf.py +57 -0
- tests/test_identical.py +230 -0
- tests/test_module.py +50 -0
- tests/test_opts.py +884 -0
- tests/test_tensorlist.py +1787 -0
- tests/test_utils_optimizer.py +170 -0
- tests/test_vars.py +184 -0
- torchzero/__init__.py +4 -4
- torchzero/core/__init__.py +3 -13
- torchzero/core/module.py +629 -510
- torchzero/core/preconditioner.py +137 -0
- torchzero/core/transform.py +252 -0
- torchzero/modules/__init__.py +13 -21
- torchzero/modules/clipping/__init__.py +3 -0
- torchzero/modules/clipping/clipping.py +320 -0
- torchzero/modules/clipping/ema_clipping.py +135 -0
- torchzero/modules/clipping/growth_clipping.py +187 -0
- torchzero/modules/experimental/__init__.py +13 -18
- torchzero/modules/experimental/absoap.py +350 -0
- torchzero/modules/experimental/adadam.py +111 -0
- torchzero/modules/experimental/adamY.py +135 -0
- torchzero/modules/experimental/adasoap.py +282 -0
- torchzero/modules/experimental/algebraic_newton.py +145 -0
- torchzero/modules/experimental/curveball.py +89 -0
- torchzero/modules/experimental/dsoap.py +290 -0
- torchzero/modules/experimental/gradmin.py +85 -0
- torchzero/modules/experimental/reduce_outward_lr.py +35 -0
- torchzero/modules/experimental/spectral.py +286 -0
- torchzero/modules/experimental/subspace_preconditioners.py +128 -0
- torchzero/modules/experimental/tropical_newton.py +136 -0
- torchzero/modules/functional.py +209 -0
- torchzero/modules/grad_approximation/__init__.py +4 -0
- torchzero/modules/grad_approximation/fdm.py +120 -0
- torchzero/modules/grad_approximation/forward_gradient.py +81 -0
- torchzero/modules/grad_approximation/grad_approximator.py +66 -0
- torchzero/modules/grad_approximation/rfdm.py +259 -0
- torchzero/modules/line_search/__init__.py +5 -30
- torchzero/modules/line_search/backtracking.py +186 -0
- torchzero/modules/line_search/line_search.py +181 -0
- torchzero/modules/line_search/scipy.py +37 -0
- torchzero/modules/line_search/strong_wolfe.py +260 -0
- torchzero/modules/line_search/trust_region.py +61 -0
- torchzero/modules/lr/__init__.py +2 -0
- torchzero/modules/lr/lr.py +59 -0
- torchzero/modules/lr/step_size.py +97 -0
- torchzero/modules/momentum/__init__.py +14 -4
- torchzero/modules/momentum/averaging.py +78 -0
- torchzero/modules/momentum/cautious.py +181 -0
- torchzero/modules/momentum/ema.py +173 -0
- torchzero/modules/momentum/experimental.py +189 -0
- torchzero/modules/momentum/matrix_momentum.py +124 -0
- torchzero/modules/momentum/momentum.py +43 -106
- torchzero/modules/ops/__init__.py +103 -0
- torchzero/modules/ops/accumulate.py +65 -0
- torchzero/modules/ops/binary.py +240 -0
- torchzero/modules/ops/debug.py +25 -0
- torchzero/modules/ops/misc.py +419 -0
- torchzero/modules/ops/multi.py +137 -0
- torchzero/modules/ops/reduce.py +149 -0
- torchzero/modules/ops/split.py +75 -0
- torchzero/modules/ops/switch.py +68 -0
- torchzero/modules/ops/unary.py +115 -0
- torchzero/modules/ops/utility.py +112 -0
- torchzero/modules/optimizers/__init__.py +18 -10
- torchzero/modules/optimizers/adagrad.py +146 -49
- torchzero/modules/optimizers/adam.py +112 -118
- torchzero/modules/optimizers/lion.py +18 -11
- torchzero/modules/optimizers/muon.py +222 -0
- torchzero/modules/optimizers/orthograd.py +55 -0
- torchzero/modules/optimizers/rmsprop.py +103 -51
- torchzero/modules/optimizers/rprop.py +342 -99
- torchzero/modules/optimizers/shampoo.py +197 -0
- torchzero/modules/optimizers/soap.py +286 -0
- torchzero/modules/optimizers/sophia_h.py +129 -0
- torchzero/modules/projections/__init__.py +5 -0
- torchzero/modules/projections/dct.py +73 -0
- torchzero/modules/projections/fft.py +73 -0
- torchzero/modules/projections/galore.py +10 -0
- torchzero/modules/projections/projection.py +218 -0
- torchzero/modules/projections/structural.py +151 -0
- torchzero/modules/quasi_newton/__init__.py +7 -4
- torchzero/modules/quasi_newton/cg.py +218 -0
- torchzero/modules/quasi_newton/experimental/__init__.py +1 -0
- torchzero/modules/quasi_newton/experimental/modular_lbfgs.py +265 -0
- torchzero/modules/quasi_newton/lbfgs.py +228 -0
- torchzero/modules/quasi_newton/lsr1.py +170 -0
- torchzero/modules/quasi_newton/olbfgs.py +196 -0
- torchzero/modules/quasi_newton/quasi_newton.py +475 -0
- torchzero/modules/second_order/__init__.py +3 -4
- torchzero/modules/second_order/newton.py +142 -165
- torchzero/modules/second_order/newton_cg.py +84 -0
- torchzero/modules/second_order/nystrom.py +168 -0
- torchzero/modules/smoothing/__init__.py +2 -5
- torchzero/modules/smoothing/gaussian.py +164 -0
- torchzero/modules/smoothing/{laplacian_smoothing.py → laplacian.py} +115 -128
- torchzero/modules/weight_decay/__init__.py +1 -0
- torchzero/modules/weight_decay/weight_decay.py +52 -0
- torchzero/modules/wrappers/__init__.py +1 -0
- torchzero/modules/wrappers/optim_wrapper.py +91 -0
- torchzero/optim/__init__.py +2 -10
- torchzero/optim/utility/__init__.py +1 -0
- torchzero/optim/utility/split.py +45 -0
- torchzero/optim/wrappers/nevergrad.py +2 -28
- torchzero/optim/wrappers/nlopt.py +31 -16
- torchzero/optim/wrappers/scipy.py +79 -156
- torchzero/utils/__init__.py +27 -0
- torchzero/utils/compile.py +175 -37
- torchzero/utils/derivatives.py +513 -99
- torchzero/utils/linalg/__init__.py +5 -0
- torchzero/utils/linalg/matrix_funcs.py +87 -0
- torchzero/utils/linalg/orthogonalize.py +11 -0
- torchzero/utils/linalg/qr.py +71 -0
- torchzero/utils/linalg/solve.py +168 -0
- torchzero/utils/linalg/svd.py +20 -0
- torchzero/utils/numberlist.py +132 -0
- torchzero/utils/ops.py +10 -0
- torchzero/utils/optimizer.py +284 -0
- torchzero/utils/optuna_tools.py +40 -0
- torchzero/utils/params.py +149 -0
- torchzero/utils/python_tools.py +40 -25
- torchzero/utils/tensorlist.py +1081 -0
- torchzero/utils/torch_tools.py +48 -12
- torchzero-0.3.1.dist-info/METADATA +379 -0
- torchzero-0.3.1.dist-info/RECORD +128 -0
- {torchzero-0.1.8.dist-info → torchzero-0.3.1.dist-info}/WHEEL +1 -1
- {torchzero-0.1.8.dist-info → torchzero-0.3.1.dist-info/licenses}/LICENSE +0 -0
- torchzero-0.3.1.dist-info/top_level.txt +3 -0
- torchzero/core/tensorlist_optimizer.py +0 -219
- torchzero/modules/adaptive/__init__.py +0 -4
- torchzero/modules/adaptive/adaptive.py +0 -192
- torchzero/modules/experimental/experimental.py +0 -294
- torchzero/modules/experimental/quad_interp.py +0 -104
- torchzero/modules/experimental/subspace.py +0 -259
- torchzero/modules/gradient_approximation/__init__.py +0 -7
- torchzero/modules/gradient_approximation/_fd_formulas.py +0 -3
- torchzero/modules/gradient_approximation/base_approximator.py +0 -105
- torchzero/modules/gradient_approximation/fdm.py +0 -125
- torchzero/modules/gradient_approximation/forward_gradient.py +0 -163
- torchzero/modules/gradient_approximation/newton_fdm.py +0 -198
- torchzero/modules/gradient_approximation/rfdm.py +0 -125
- torchzero/modules/line_search/armijo.py +0 -56
- torchzero/modules/line_search/base_ls.py +0 -139
- torchzero/modules/line_search/directional_newton.py +0 -217
- torchzero/modules/line_search/grid_ls.py +0 -158
- torchzero/modules/line_search/scipy_minimize_scalar.py +0 -62
- torchzero/modules/meta/__init__.py +0 -12
- torchzero/modules/meta/alternate.py +0 -65
- torchzero/modules/meta/grafting.py +0 -195
- torchzero/modules/meta/optimizer_wrapper.py +0 -173
- torchzero/modules/meta/return_overrides.py +0 -46
- torchzero/modules/misc/__init__.py +0 -10
- torchzero/modules/misc/accumulate.py +0 -43
- torchzero/modules/misc/basic.py +0 -115
- torchzero/modules/misc/lr.py +0 -96
- torchzero/modules/misc/multistep.py +0 -51
- torchzero/modules/misc/on_increase.py +0 -53
- torchzero/modules/operations/__init__.py +0 -29
- torchzero/modules/operations/multi.py +0 -298
- torchzero/modules/operations/reduction.py +0 -134
- torchzero/modules/operations/singular.py +0 -113
- torchzero/modules/optimizers/sgd.py +0 -54
- torchzero/modules/orthogonalization/__init__.py +0 -2
- torchzero/modules/orthogonalization/newtonschulz.py +0 -159
- torchzero/modules/orthogonalization/svd.py +0 -86
- torchzero/modules/regularization/__init__.py +0 -22
- torchzero/modules/regularization/dropout.py +0 -34
- torchzero/modules/regularization/noise.py +0 -77
- torchzero/modules/regularization/normalization.py +0 -328
- torchzero/modules/regularization/ortho_grad.py +0 -78
- torchzero/modules/regularization/weight_decay.py +0 -92
- torchzero/modules/scheduling/__init__.py +0 -2
- torchzero/modules/scheduling/lr_schedulers.py +0 -131
- torchzero/modules/scheduling/step_size.py +0 -80
- torchzero/modules/smoothing/gaussian_smoothing.py +0 -90
- torchzero/modules/weight_averaging/__init__.py +0 -2
- torchzero/modules/weight_averaging/ema.py +0 -72
- torchzero/modules/weight_averaging/swa.py +0 -171
- torchzero/optim/experimental/__init__.py +0 -20
- torchzero/optim/experimental/experimental.py +0 -343
- torchzero/optim/experimental/ray_search.py +0 -83
- torchzero/optim/first_order/__init__.py +0 -18
- torchzero/optim/first_order/cautious.py +0 -158
- torchzero/optim/first_order/forward_gradient.py +0 -70
- torchzero/optim/first_order/optimizers.py +0 -570
- torchzero/optim/modular.py +0 -148
- torchzero/optim/quasi_newton/__init__.py +0 -1
- torchzero/optim/quasi_newton/directional_newton.py +0 -58
- torchzero/optim/second_order/__init__.py +0 -1
- torchzero/optim/second_order/newton.py +0 -94
- torchzero/optim/zeroth_order/__init__.py +0 -4
- torchzero/optim/zeroth_order/fdm.py +0 -87
- torchzero/optim/zeroth_order/newton_fdm.py +0 -146
- torchzero/optim/zeroth_order/rfdm.py +0 -217
- torchzero/optim/zeroth_order/rs.py +0 -85
- torchzero/random/__init__.py +0 -1
- torchzero/random/random.py +0 -46
- torchzero/tensorlist.py +0 -826
- torchzero-0.1.8.dist-info/METADATA +0 -130
- torchzero-0.1.8.dist-info/RECORD +0 -104
- torchzero-0.1.8.dist-info/top_level.txt +0 -1
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.2
|
|
2
|
-
Name: torchzero
|
|
3
|
-
Version: 0.1.8
|
|
4
|
-
Summary: Modular optimization library for PyTorch.
|
|
5
|
-
Author-email: Ivan Nikishev <nkshv2@gmail.com>
|
|
6
|
-
License: MIT License
|
|
7
|
-
|
|
8
|
-
Copyright (c) 2024 inikishev
|
|
9
|
-
|
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
-
in the Software without restriction, including without limitation the rights
|
|
13
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
-
furnished to do so, subject to the following conditions:
|
|
16
|
-
|
|
17
|
-
The above copyright notice and this permission notice shall be included in all
|
|
18
|
-
copies or substantial portions of the Software.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
-
SOFTWARE.
|
|
27
|
-
|
|
28
|
-
Project-URL: Homepage, https://github.com/inikishev/torchzero
|
|
29
|
-
Project-URL: Repository, https://github.com/inikishev/torchzero
|
|
30
|
-
Project-URL: Issues, https://github.com/inikishev/torchzero/isses
|
|
31
|
-
Keywords: optimization,optimizers,torch,neural networks,zeroth order,second order
|
|
32
|
-
Requires-Python: >=3.10
|
|
33
|
-
Description-Content-Type: text/markdown
|
|
34
|
-
License-File: LICENSE
|
|
35
|
-
Requires-Dist: torch
|
|
36
|
-
Requires-Dist: numpy
|
|
37
|
-
Requires-Dist: typing_extensions
|
|
38
|
-
|
|
39
|
-

|
|
40
|
-
|
|
41
|
-
# torchzero
|
|
42
|
-
|
|
43
|
-
`torchzero` implements a large number of chainable optimization modules that can be chained together to create custom optimizers:
|
|
44
|
-
|
|
45
|
-
```py
|
|
46
|
-
import torchzero as tz
|
|
47
|
-
|
|
48
|
-
optimizer = tz.Modular(
|
|
49
|
-
model.parameters(),
|
|
50
|
-
tz.m.Adam(),
|
|
51
|
-
tz.m.Cautious(),
|
|
52
|
-
tz.m.LR(1e-3),
|
|
53
|
-
tz.m.WeightDecay(1e-4)
|
|
54
|
-
)
|
|
55
|
-
|
|
56
|
-
# standard training loop
|
|
57
|
-
for batch in dataset:
|
|
58
|
-
preds = model(batch)
|
|
59
|
-
loss = criterion(preds)
|
|
60
|
-
optimizer.zero_grad()
|
|
61
|
-
optimizer.step()
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Each module takes the output of the previous module and applies a further transformation. This modular design avoids redundant code, such as reimplementing cautioning, orthogonalization, laplacian smoothing, etc for every optimizer. It is also easy to experiment with grafting, interpolation between different optimizers, and perhaps some weirder combinations like nested momentum.
|
|
65
|
-
|
|
66
|
-
Modules are not limited to gradient transformations. They can perform other operations like line searches, exponential moving average (EMA) and stochastic weight averaging (SWA), gradient accumulation, gradient approximation, and more.
|
|
67
|
-
|
|
68
|
-
There are over 100 modules, all accessible within the `tz.m` namespace. For example, the Adam update rule is available as `tz.m.Adam`. Complete list of modules is available in [documentation](https://torchzero.readthedocs.io/en/latest/autoapi/torchzero/modules/index.html).
|
|
69
|
-
|
|
70
|
-
## Closure
|
|
71
|
-
|
|
72
|
-
Some modules and optimizers in torchzero, particularly line-search methods and gradient approximation modules, require a closure function. This is similar to how `torch.optim.LBFGS` works in PyTorch. In torchzero, closure needs to accept a boolean backward argument (though the argument can have any name). When `backward=True`, the closure should zero out old gradients using `opt.zero_grad()`, and compute new gradients using `loss.backward()`.
|
|
73
|
-
|
|
74
|
-
```py
|
|
75
|
-
def closure(backward = True):
|
|
76
|
-
preds = model(inputs)
|
|
77
|
-
loss = loss_fn(preds, targets)
|
|
78
|
-
|
|
79
|
-
if backward:
|
|
80
|
-
optimizer.zero_grad()
|
|
81
|
-
loss.backward()
|
|
82
|
-
return loss
|
|
83
|
-
|
|
84
|
-
optimizer.step(closure)
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
If you intend to use gradient-free methods, `backward` argument is still required in the closure. Simply leave it unused. Gradient-free and gradient approximation methods always call closure with `backward=False`.
|
|
88
|
-
|
|
89
|
-
All built-in pytorch optimizers, as well as most custom ones, support closure too. So the code above will work with all other optimizers out of the box, and you can switch between different optimizers without rewriting your training loop.
|
|
90
|
-
|
|
91
|
-
# Documentation
|
|
92
|
-
|
|
93
|
-
For more information on how to create, use and extend torchzero modules, please refer to the documentation at [torchzero.readthedocs.io](https://torchzero.readthedocs.io/en/latest/index.html).
|
|
94
|
-
|
|
95
|
-
# Extra
|
|
96
|
-
|
|
97
|
-
Some other optimization related things in torchzero:
|
|
98
|
-
|
|
99
|
-
### scipy.optimize.minimize wrapper
|
|
100
|
-
|
|
101
|
-
scipy.optimize.minimize wrapper with support for both gradient and hessian via batched autograd
|
|
102
|
-
|
|
103
|
-
```py
|
|
104
|
-
from torchzero.optim.wrappers.scipy import ScipyMinimize
|
|
105
|
-
opt = ScipyMinimize(model.parameters(), method = 'trust-krylov')
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Use as any other closure-based optimizer, but make sure closure accepts `backward` argument. Note that it performs full minimization on each step.
|
|
109
|
-
|
|
110
|
-
### Nevergrad wrapper
|
|
111
|
-
|
|
112
|
-
[Nevergrad](https://github.com/facebookresearch/nevergrad) is an optimization library by facebook with an insane number of gradient free methods.
|
|
113
|
-
|
|
114
|
-
```py
|
|
115
|
-
from torchzero.optim.wrappers.nevergrad import NevergradOptimizer
|
|
116
|
-
opt = NevergradOptimizer(bench.parameters(), ng.optimizers.NGOptBase, budget = 1000)
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
Use as any other closure-based optimizer, but make sure closure accepts `backward` argument.
|
|
120
|
-
|
|
121
|
-
### NLopt wrapper
|
|
122
|
-
|
|
123
|
-
[NLopt](https://nlopt.readthedocs.io/en/latest/NLopt_Algorithms/) is another optimization library similar to scipy.optimize.minimize, with a large number of both gradient based and gradient free methods.
|
|
124
|
-
|
|
125
|
-
```py
|
|
126
|
-
from torchzero.optim.wrappers.nlopt import NLOptOptimizer
|
|
127
|
-
opt = NLOptOptimizer(bench.parameters(), 'LD_TNEWTON_PRECOND_RESTART', maxeval = 1000)
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
Use as any other closure-based optimizer, but make sure closure accepts `backward` argument. Note that it performs full minimization on each step.
|
torchzero-0.1.8.dist-info/RECORD
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
torchzero/__init__.py,sha256=CCIYfhGNYMnRP_cdXL7DgocxkEWYUZYgB3Sf1T5tdYY,203
|
|
2
|
-
torchzero/tensorlist.py,sha256=V9m5zJ44PtiJxTOiM7cADxYaWK-ogv5Tk_KnyQqm1oo,41601
|
|
3
|
-
torchzero/core/__init__.py,sha256=hab7HAep0JIVeJ-EQhcOAB9oKIIo2MuCVn7yS3BFVYA,266
|
|
4
|
-
torchzero/core/module.py,sha256=iFgRX_PY2Y0WD8_w5q6ygry1VhvpsE3jO-ySS_YQkuQ,23023
|
|
5
|
-
torchzero/core/tensorlist_optimizer.py,sha256=MenRzyNPQJWx26j4Tj2vbX2pEcRu_26HQPIpUu_nsFc,9957
|
|
6
|
-
torchzero/modules/__init__.py,sha256=5f8kt2mMn1eo9YcjXc3ESW-bqMQIRf646V3zlr8UAO4,571
|
|
7
|
-
torchzero/modules/adaptive/__init__.py,sha256=YBVDXCosr4-C-GFCoreHS3DFyHiYMhCbOWgdhVVaZ_E,161
|
|
8
|
-
torchzero/modules/adaptive/adaptive.py,sha256=Zp6cBbuLIeyEDcZJxgpdXPVnw7sjhkBSe9Pd3HHkHXk,6477
|
|
9
|
-
torchzero/modules/experimental/__init__.py,sha256=dRLPbhTO8efkRQHB-8Z29dKS3BEleCso1dsXxgccFgM,647
|
|
10
|
-
torchzero/modules/experimental/experimental.py,sha256=4w3WyBL43WWwYL1ZdoCAdtBHnJfTrUYe9NBmmqTxYes,9808
|
|
11
|
-
torchzero/modules/experimental/quad_interp.py,sha256=6Nsvpv580KpSujPYHxK-qB5m6b7C_dFdBxCXE49VHAQ,4106
|
|
12
|
-
torchzero/modules/experimental/subspace.py,sha256=6n0INUqya24RR4Onm7bGNAPsdqw4lPYIGqT6OCwXNOU,11766
|
|
13
|
-
torchzero/modules/gradient_approximation/__init__.py,sha256=q8rNkk2PK6Y9zk42Mq8pY2YF6fHt5QuJd7BK-RTFKpg,179
|
|
14
|
-
torchzero/modules/gradient_approximation/_fd_formulas.py,sha256=mXqRwsDYjXi3pnI4mkpwwtJE85omYEvcmtbJAOfpg9o,82
|
|
15
|
-
torchzero/modules/gradient_approximation/base_approximator.py,sha256=VjQ_NNLElDnk4kGPYy8iK9A6f2Y6yo6H1axpXkkAeSw,3632
|
|
16
|
-
torchzero/modules/gradient_approximation/fdm.py,sha256=1FVPe3J3tOBgktCKlcd-wOv3bo_FynuF9U4RKbsz-CY,4976
|
|
17
|
-
torchzero/modules/gradient_approximation/forward_gradient.py,sha256=3CC-tcUIAL0d422WHUQLPx0UMcU5URQ5uYCNbgpi19M,6456
|
|
18
|
-
torchzero/modules/gradient_approximation/newton_fdm.py,sha256=BqkNZp00pUBJLWAXKNTk2eggbE4o6u-eLmvWw55zihg,7100
|
|
19
|
-
torchzero/modules/gradient_approximation/rfdm.py,sha256=2nYl_Pu6Lc3gUjTu0GqTImoMSCX5MPFKmvoagpdrf0w,4966
|
|
20
|
-
torchzero/modules/line_search/__init__.py,sha256=hYysFi5b9a5g0jcRNkgZYGRcZ1V7_JacBVWMR7idP38,1380
|
|
21
|
-
torchzero/modules/line_search/armijo.py,sha256=Iw7bsx2yhDhZ0POvD2lc28tv_b5zphOq3MPed8dAYLk,1955
|
|
22
|
-
torchzero/modules/line_search/base_ls.py,sha256=tPlJxZ_CVGPxVrG_jxud8LRbgceZKMf-ZBbDv0jJX2Q,5319
|
|
23
|
-
torchzero/modules/line_search/directional_newton.py,sha256=PMNjjj6n1GVuMe9fwGGYnxbA9Tw5CQxLXgJNhNiwURs,9148
|
|
24
|
-
torchzero/modules/line_search/grid_ls.py,sha256=tCrDxE1OMIXMisYdyiBF56XBRP16mbSs5SFDRcy1vCw,5603
|
|
25
|
-
torchzero/modules/line_search/scipy_minimize_scalar.py,sha256=STGvMuCPcqxw9iaiD6jLsI6YgxAvEic0tfqDQ90qAiA,2196
|
|
26
|
-
torchzero/modules/meta/__init__.py,sha256=ARVR3Vzvq50n-3uFMNxcGUDd2r4Euamay5UYtpIxXNg,407
|
|
27
|
-
torchzero/modules/meta/alternate.py,sha256=kJB3Y507u_a_dra7N0Wo4uTQhbMSfizG0mmmuISzeH8,2119
|
|
28
|
-
torchzero/modules/meta/grafting.py,sha256=IenyBO0FmJDO6st_mfFAUnu98UlChm4Io4aKARsDI0s,7560
|
|
29
|
-
torchzero/modules/meta/optimizer_wrapper.py,sha256=x1nkKoqGK6-lgiuRYzVFcTNUCYeiwFet0MZoaQ3kv8U,6432
|
|
30
|
-
torchzero/modules/meta/return_overrides.py,sha256=Amp4_yiMtXNM8_JgnAKK71BP-NrqvkYha4wt8mA-Nb4,2023
|
|
31
|
-
torchzero/modules/misc/__init__.py,sha256=P43XRz1nnOuJbpq_bQboLJ7hip80SQmvhua2baPdJ-c,390
|
|
32
|
-
torchzero/modules/misc/accumulate.py,sha256=M66TaL0XBioC-2WkPOj8crKoQrWx-np-Im4I2pzvwHU,1324
|
|
33
|
-
torchzero/modules/misc/basic.py,sha256=EnuS6nZwyRXjWytyQef3f5885NC2b79wiQeZSU-urYA,3475
|
|
34
|
-
torchzero/modules/misc/lr.py,sha256=xG1TCPeZazp1SBkAdwxY3tbt9-Tgufzq0noPlcsZkO4,3523
|
|
35
|
-
torchzero/modules/misc/multistep.py,sha256=Jnbs1upMpvabhSkju10ciOuPzMd0CD5UoK4ueUrh048,1770
|
|
36
|
-
torchzero/modules/misc/on_increase.py,sha256=WT86io0qtTk4UbrNAQlXyPD7ad61EagKqhr2mrrRcYA,1998
|
|
37
|
-
torchzero/modules/momentum/__init__.py,sha256=Cj_3KJ76RLX-WQ7xsOoLY9mucQvnkyudTeVH8fnvdwc,138
|
|
38
|
-
torchzero/modules/momentum/momentum.py,sha256=3zpmhzOI7KLX2nbaWivGEquo9nboEmkIyAO8k8SmWdw,3931
|
|
39
|
-
torchzero/modules/operations/__init__.py,sha256=4SxIQMh-ixEqEDXWdizeGOzfhFw-af4Wz0A-00ypmg0,378
|
|
40
|
-
torchzero/modules/operations/multi.py,sha256=3T0mqrnKrdE1G7wayolCZVjWWjLG7geafu1vbClmz3Y,10273
|
|
41
|
-
torchzero/modules/operations/reduction.py,sha256=mMqxW-PO7T-azTnbx2vFnfOVTHfw7u7BzZveoaaCfxc,4621
|
|
42
|
-
torchzero/modules/operations/singular.py,sha256=J1_0HKPi6Tu0j-25lMP4FPRwgjm8drM5QRcUCmvQNV8,3560
|
|
43
|
-
torchzero/modules/optimizers/__init__.py,sha256=QZu8yvqy7ouY45Xju5Z2oHWJiFa1CslknodhWWRZRms,247
|
|
44
|
-
torchzero/modules/optimizers/adagrad.py,sha256=7SQiQBtkN72nhZ6a22p4KCCwzxUYcvt1qPRgT_y2I7w,2014
|
|
45
|
-
torchzero/modules/optimizers/adam.py,sha256=17HJl5VHtUDHPVSW8nTVb9XrjuXQ1H6lFLAaGUkq028,4714
|
|
46
|
-
torchzero/modules/optimizers/lion.py,sha256=DRm09OpQSs2YjFx21OMA5ADp6dVYLPN6uu61GkxyF6o,904
|
|
47
|
-
torchzero/modules/optimizers/rmsprop.py,sha256=vcPjGh1krMLGX97sNKgKc5rx0-tT_cQznSwgmEtlq0w,2152
|
|
48
|
-
torchzero/modules/optimizers/rprop.py,sha256=OjLmHhhPjfRe0KxdPSKduIQs5atwoCvbNLLoDbFWAfI,3603
|
|
49
|
-
torchzero/modules/optimizers/sgd.py,sha256=t31zfKuV6tJRzIOEtZBX0gH_KGdRi4ddvKhYibK5eCM,2242
|
|
50
|
-
torchzero/modules/orthogonalization/__init__.py,sha256=brvrj57U_1qKKU8AUqbe9lyY9jsfzZvUGnvsU4wjDSQ,151
|
|
51
|
-
torchzero/modules/orthogonalization/newtonschulz.py,sha256=gXSkONee9GC5oTODWde2d2HaxTVWbSZMIG1ZD9p5LRE,7517
|
|
52
|
-
torchzero/modules/orthogonalization/svd.py,sha256=HO72YUP4Jlk-WeCoVpT3kqPLuiUwcApNvsXx3-PMFAI,3651
|
|
53
|
-
torchzero/modules/quasi_newton/__init__.py,sha256=G5lW-q0pI47SJ2AZuY4qkjbqfYzJS0qATDo7V0BGzD4,124
|
|
54
|
-
torchzero/modules/regularization/__init__.py,sha256=FD_KERcYY4bdVR22OuKXUUVt63jyfE9V84evwDC1edo,498
|
|
55
|
-
torchzero/modules/regularization/dropout.py,sha256=Wt0rHQxMt2t28fNaNkfNlXVcbcf3TlqWhKzWi1kz6lU,1003
|
|
56
|
-
torchzero/modules/regularization/noise.py,sha256=LFSG4Ga5W2VuT1jzkApKodMiDsHbi8zYJ9N_ZnsLMoI,3026
|
|
57
|
-
torchzero/modules/regularization/normalization.py,sha256=LxegX6Wf0QYZPSxjtUsx7x6IO9UCGc_SBYRfFp3EJHk,12152
|
|
58
|
-
torchzero/modules/regularization/ortho_grad.py,sha256=TLaF8GIM6_tbHHvUhi9XUKJvTdPgF9RM364HXYmVliw,3126
|
|
59
|
-
torchzero/modules/regularization/weight_decay.py,sha256=AjR1RuUDa2DM1PbHx-wBT41XaaAs2w5PKLjRRpV3JrU,3624
|
|
60
|
-
torchzero/modules/scheduling/__init__.py,sha256=NxR1cpKXtZSbVqPRlzzzgH3_JBMuxQCf3nUhmxBN2Cc,89
|
|
61
|
-
torchzero/modules/scheduling/lr_schedulers.py,sha256=MYcQ13YexvyTSD9AHxdu54DSu_neTxY-BImUwBFc7Iw,4963
|
|
62
|
-
torchzero/modules/scheduling/step_size.py,sha256=NTHOFO34GroEE_O2IWmZprRpD9wiyLu7iNvaAUlfVbc,3664
|
|
63
|
-
torchzero/modules/second_order/__init__.py,sha256=oRyRy8mCjurMINHNdsxjlptLbQNU0VnstkDm1Ccv_80,182
|
|
64
|
-
torchzero/modules/second_order/newton.py,sha256=iVNawkyiz-Yj8_cAKi1BYeffk9P0G9UoddnVTBogR64,6751
|
|
65
|
-
torchzero/modules/smoothing/__init__.py,sha256=sKc9P7QJUNEyuoQXjhMkAELFdqe11tB1HnnKeMI4ciQ,194
|
|
66
|
-
torchzero/modules/smoothing/gaussian_smoothing.py,sha256=kP72r-f0prGEEzgaVeY1RLFLTfx05L_SOtLMCrkXeOs,3827
|
|
67
|
-
torchzero/modules/smoothing/laplacian_smoothing.py,sha256=ehb0lj479RRKZTJ5_9FGDXwidWF5soo9hw8vquqrl5s,5552
|
|
68
|
-
torchzero/modules/weight_averaging/__init__.py,sha256=nJJRs68AV2G4rGwiiHNRfm6XmtM-xUev1pCtzNIVfa8,66
|
|
69
|
-
torchzero/modules/weight_averaging/ema.py,sha256=xdVnKC8PxCQCec4ad3ncvznvVsQM5O6EVfsOKsRr18k,2854
|
|
70
|
-
torchzero/modules/weight_averaging/swa.py,sha256=syio5qq1vf76d5bAJU-I8Zc8U12bR2n8C9hEznCgr7s,6764
|
|
71
|
-
torchzero/optim/__init__.py,sha256=vk6pIYJHWAGYJMdtJ1otsmVph-pdL5HwBg-CTeBCGso,253
|
|
72
|
-
torchzero/optim/modular.py,sha256=tg-VUcxDAhBzM4uR7SFkf5I2hV_SScfqXCbZpvV1Yzc,6788
|
|
73
|
-
torchzero/optim/experimental/__init__.py,sha256=RqNzJu5mVl3T0u7cf4TBzSiA20M1kxTZVYWjSVhEHuU,585
|
|
74
|
-
torchzero/optim/experimental/experimental.py,sha256=tMHZVbEXm3s6mMr7unFSvk_Jks3uAaAG0fzsH6gr098,10928
|
|
75
|
-
torchzero/optim/experimental/ray_search.py,sha256=GYyssL64D6RiImrZ2tchoZJ04x9rX-Bp1y2nQXEGxX0,2662
|
|
76
|
-
torchzero/optim/first_order/__init__.py,sha256=CRT4farcwi8sO1qqDGxXv1856zOwuKlJKBIAIvpL2Z0,336
|
|
77
|
-
torchzero/optim/first_order/cautious.py,sha256=XBeqrLQ4gFKVUYnJI5ROmF9wQJGhY90HR6UG5IS7vYk,6610
|
|
78
|
-
torchzero/optim/first_order/forward_gradient.py,sha256=8u_ya0NuFSopPPhOiqqSov35irg8tF3LeHYg-qthTG0,3065
|
|
79
|
-
torchzero/optim/first_order/optimizers.py,sha256=jYmU6YDsYRGMRsCNkYc6AlvOf3wlU7Uv1xUrzl0o8zo,24501
|
|
80
|
-
torchzero/optim/quasi_newton/__init__.py,sha256=0X83dl-85_j3ck8itWxJR49ZbFeOcWurW6FI8J12F1w,49
|
|
81
|
-
torchzero/optim/quasi_newton/directional_newton.py,sha256=oZ-If8SRcFXTDFKS_zlAcJnif-v5dTCR9HXqmfvsvNA,2595
|
|
82
|
-
torchzero/optim/second_order/__init__.py,sha256=3Gt0dR4NzBK07TV0NF8KZImUGHbI8E2zncDmhIC377I,31
|
|
83
|
-
torchzero/optim/second_order/newton.py,sha256=-DqJrS8JPea6Y9jp5lDV14KyP8A24YKiPxJ32Vsfiv4,3848
|
|
84
|
-
torchzero/optim/wrappers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
85
|
-
torchzero/optim/wrappers/nevergrad.py,sha256=4PLqfs2L9XJhveyX6l7kJu1cIPl6uv7_UD76amIlP7I,4733
|
|
86
|
-
torchzero/optim/wrappers/nlopt.py,sha256=fGDOZ82sRI2VLH3hKIAhZY4EuKSdu_g217c-NZvD_rs,7104
|
|
87
|
-
torchzero/optim/wrappers/scipy.py,sha256=_BQwFDQ7SBqIA5i1SJ29Xj0jDXVV8MQ_9RcsPT3U6VQ,18047
|
|
88
|
-
torchzero/optim/zeroth_order/__init__.py,sha256=_6T0znO6V63Niq7DMhJPgUuMc_nPvAGxjCjMdf-r64U,218
|
|
89
|
-
torchzero/optim/zeroth_order/fdm.py,sha256=5iJc_F_tRR4cGQfy2Jr8PmAnCGrPva89ZWczSdcBkFk,3686
|
|
90
|
-
torchzero/optim/zeroth_order/newton_fdm.py,sha256=-5E1FGzeJMr8_IougzE_FEOPFt9pEjQxID4Y89Hpmh0,6537
|
|
91
|
-
torchzero/optim/zeroth_order/rfdm.py,sha256=_Y7yiF1bsVRlXt5IK-3zQccwVl95JF0-Xw-fl8Q_7y4,10529
|
|
92
|
-
torchzero/optim/zeroth_order/rs.py,sha256=3w2nnPGWPecourEdUG583vchcqdNxC6Q_PBL3l0PvCk,3333
|
|
93
|
-
torchzero/random/__init__.py,sha256=8EowQhC4yTZuF8w1ZDl73YZtLej8SuhxCk1Bkifbkms,93
|
|
94
|
-
torchzero/random/random.py,sha256=Oq4GvM_6AOsabg5ke6b8h51V9npyHVxp8ob_wC5D-Aw,2829
|
|
95
|
-
torchzero/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
96
|
-
torchzero/utils/compile.py,sha256=pYEyX8P26iCb_hFqAXC8IP2SSQrRfC7ZDhXS0vVCsfY,1257
|
|
97
|
-
torchzero/utils/derivatives.py,sha256=koLmuUcVcX41SrH_9rvfJyMXyHyocNLuZ-C8Kr2B7hk,4844
|
|
98
|
-
torchzero/utils/python_tools.py,sha256=kkyDhoP695HhapfKrdjcrRbRAbcvB0ArP1pkxuVUlf0,1192
|
|
99
|
-
torchzero/utils/torch_tools.py,sha256=sSBY5Bmk9LOAgPtaq-6TK4wDgPXsg6FIWxv8CVDx82k,3580
|
|
100
|
-
torchzero-0.1.8.dist-info/LICENSE,sha256=r9ZciAoZoqKC_FNADE0ORukj1p1XhLXEbegdsAyqhJs,1087
|
|
101
|
-
torchzero-0.1.8.dist-info/METADATA,sha256=gtnLFgZ4XQwI7GO5U_p8fUFrt1X8V_Lyv9bvISGnSro,6058
|
|
102
|
-
torchzero-0.1.8.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
103
|
-
torchzero-0.1.8.dist-info/top_level.txt,sha256=isztuDR1ZGo8p2tORLa-vNuomcbLj7Xd208lhd-pVPs,10
|
|
104
|
-
torchzero-0.1.8.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
torchzero
|