Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zij-0.1.1.tar.gz (251.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zij-0.1.1-py3-none-any.whl (358.6 kB view details)

Uploaded Python 3

File details

Details for the file zij-0.1.1.tar.gz.

File metadata

  • Download URL: zij-0.1.1.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

Hashes for zij-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d0f45563f7a5ba22974f3a4e26209f1495c8fbd608c0920bb48d1354ae462905
MD5 e75a42d7575d9bc2114b970dff436beb
BLAKE2b-256 a2a0f15de0a82bc9a63a88f5bad66f7262f2132fad030f0df2529d822d13a4da

See more details on using hashes here.

File details

Details for the file zij-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: zij-0.1.1-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

Hashes for zij-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8b8af45d67c30652583619c61a0d1d40e0c0e76e35ca982d5767d8d0ac6f594
MD5 00edcf1fb96d6e141e6249b96ec04a3a
BLAKE2b-256 ee1b0af5f2f7aef4212105ea719aae36dafc88bd586c88a5a75d6aa18fcda19f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page