Skip to main content

Nadir is a library of bleeding-edge DL optimisers built for speed and functionality in PyTorch for researchers

Project description

NADIRbanner2

Nadir

PyPI - Downloads GitHub commit activity GitHub Repo stars Twitter Follow

Nadir (pronounced nay-di-ah) is derived from the arabic word nazir, and means "the lowest point of a space". In optimisation problems, it is equivalent to the point of minimum. If you are a machine learning enthusiast, a data scientist or an AI practitioner, you know how important it is to use the best optimization algorithms to train your models. The purpose of this library is to help optimize machine learning models and enable them to reach the point of nadir in the appropriate context.

PyTorch is a popular machine learning framework that provides a flexible and efficient way of building and training deep neural networks. This library, Nadir, is built on top of PyTorch to provide high-performing general-purpose optimisation algorithms.

Table of Contents

Installation

You can either choose to install from the PyPI index, in the following manner:

$ pip install nadir

or install from source, in the following manner:

$ pip install git+https://github.com/Dawn-Of-Eve/nadir.git

Note: Installing from source might lead to a breaking package. It is recommended that you install from PyPI itself.

Simple Usage

import nadir as nd

# some model setup here...
model = ...

# set up your Nadir optimiser
config = nd.SGDConfig(lr=learning_rate)
optimizer = nd.SGD(model.parameters(), config)

# Call the optimizer step
optimizer.step()

Supported Optimisers

Optimiser Paper
SGD https://paperswithcode.com/method/sgd
Momentum https://paperswithcode.com/method/sgd-with-momentum
Adagrad https://www.jmlr.org/papers/volume12/duchi11a/duchi11a.pdf
RMSProp https://paperswithcode.com/method/rmsprop
Adam https://arxiv.org/abs/1412.6980v9
Adamax https://arxiv.org/abs/1412.6980v9
AdamW https://arxiv.org/abs/1711.05101v3
Adadelta https://arxiv.org/abs/1212.5701v1
AMSGrad https://arxiv.org/abs/1904.09237v1
RAdam https://arxiv.org/abs/1908.03265v4
Lion https://arxiv.org/abs/2302.06675

Acknowledgements

We would like to thank all the amazing contributors of this project who spent so much effort making this repositary awesome! :heart:

Citation

You can use the Cite this repository button provided by Github or use the following bibtex:

@software{MinhasNadir,
    title        = {{Nadir: A Library for Bleeding-Edge Optimizers in PyTorch}},
    author       = {Minhas, Bhavnick and Kalathukunnel, Apsal},
    year         = 2023,
    month        = 3,
    version      = {0.0.2}
}

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

nadir-0.0.3.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

nadir-0.0.3-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file nadir-0.0.3.tar.gz.

File metadata

  • Download URL: nadir-0.0.3.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for nadir-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7ecc77caa56a71dd76f07ad540e7eb0fdf73ea1a3e969bbe417687cc8b104ec4
MD5 d74255ede34824393cf3ca8fb48fc0f4
BLAKE2b-256 bfd018beb158ba02e4b8e45bd5f25eab1bb09f4e7754ea754f6692fdefc86ee1

See more details on using hashes here.

Provenance

File details

Details for the file nadir-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: nadir-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for nadir-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7019d55200ee83d591294d112737764d19cf25406cd2921dc85751a9e15656f4
MD5 077d11b7199d67e1fd6b49033d7248e5
BLAKE2b-256 ba9b1b1ed65f5d3ce3bdbe5fc9c236d39a9364211391f68906552e05d74eea65

See more details on using hashes here.

Provenance

Supported by

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