A comprehensive library of deep learning optimizers
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zij-0.1.0.tar.gz.
File metadata
- Download URL: zij-0.1.0.tar.gz
- Upload date:
- Size: 251.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edf99fd753858a79d38f2cb60868f71e56f8dff7262031dc247da9e6509e790e
|
|
| MD5 |
31d6047f3c23c656fe5b46ed64d021d0
|
|
| BLAKE2b-256 |
714fe00841c6610e64c93bceb1c51c317a64a1c0f39c36b6d1335c47e7f2842f
|
File details
Details for the file zij-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zij-0.1.0-py3-none-any.whl
- Upload date:
- Size: 358.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bfc650992c5fa767c702015dff7a9ef42771d8628e43beb7fe07e606c9bb962
|
|
| MD5 |
aa8c5f4898574642f131642e3c84a18b
|
|
| BLAKE2b-256 |
a89e95a4de379af1ca378158faff1b8306bf24fe0b3ed923ae0421aa23041b9d
|