zij
A comprehensive library of deep learning optimizers.
zij packages a large, growing collection of PyTorch optimizers — from the
torch.optim classics to current research methods (Muon, SOAP, Sophia, Prodigy,
Schedule-Free, GaLore, Lion, AdEMAMix, and many more) — behind one consistent
interface, each vendored from its original source with attribution and covered
by convergence tests.
pip install zij
import zij
opt = zij.AdamW(model.parameters(), lr=3e-4)
opt = zij.Prodigy(model.parameters()) # learning-rate-free
opt = zij.GaLoreAdamW(model.parameters(), lr=1e-2) # memory-efficient
opt = zij.SAM(model.parameters(), base_optimizer=zij.SGD, lr=0.1) # sharpness-aware
zij.list_optimizers("adam*") # discover by name
opt = zij.load_optimizer("soap")(model.parameters(), lr=2e-2)
Both zij.AdamW and zij.optim.AdamW work; the latter mirrors torch.optim.
When you use an optimizer, please cite both its original paper and zij —
the papers are linked in every class docstring.
The full Canon of 573 optimization methods (including paper-only methods and the memory-efficient, fractional-order, and quantum families) lives in the project repository:
https://github.com/junaidaliop/zij
Apache-2.0. Vendored components retain their original licenses; see
THIRD_PARTY_NOTICES.md in the repository.
Release files for zij 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zij-0.1.1.tar.gz | 251.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zij-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 610.4 kB
Release files / zij-0.1.1.tar.gz
| Download URL | zij-0.1.1.tar.gz |
|---|---|
| Size | 251.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0f45563f7a5ba22974f3a4e26209f1495c8fbd608c0920bb48d1354ae462905
|
|
BLAKE2b-256 checksum How to use checksums |
a2a0f15de0a82bc9a63a88f5bad66f7262f2132fad030f0df2529d822d13a4da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / zij-0.1.1-py3-none-any.whl
| Download URL | zij-0.1.1-py3-none-any.whl |
|---|---|
| Size | 358.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8b8af45d67c30652583619c61a0d1d40e0c0e76e35ca982d5767d8d0ac6f594
|
|
BLAKE2b-256 checksum How to use checksums |
ee1b0af5f2f7aef4212105ea719aae36dafc88bd586c88a5a75d6aa18fcda19f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|