# AdaMod
An optimizer which exerts adaptive momental upper bounds on individual learning rates to prevent them becoming undesirably lager than what the historical statistics suggest and avoid the non-convergence issue, thus to a better performance. Strong empirical results on many deep learning applications demonstrate the effectiveness of our proposed method especially on complex networks such as DenseNet and Transformer.
<p align=’center’><img src=’img/Loss.bmp’ width=”100%”/></p>
## Installation
AdaMod requires Python 3.6.0 or later.
### Installing via pip
The preferred way to install AdaMod is via pip with a virtual environment. Just run `bash pip install adamod ` in your Python environment and you are ready to go!
### Using source code
As AdaMod is a Python class with only 100+ lines, an alternative way is directly downloading [adamod.py](./adamod/adamod.py) and copying it to your project.
## Usage
You can use AdaMod just like any other PyTorch optimizers.
`python3 optimizer = adamod.AdaMod(model.parameters(), lr=1e-3, beta3=0.999) ` As described in the paper, AdaMod can smooths out unexpected large learning rates throughout the training process. The beta3 parameter is the smoothing coefficient for actual learning rate, which controls the average range. In common cases, a beta3 in {0.999,0.9999} can achieve relatively good and stable results. See the paper for more details.
## Demos
For the full list of demos, please refer to [this page](./demos).
## Contributors
[@luoruixuan](https://github.com/luoruixuan)
Metadata
Release files for adamod 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| adamod-0.0.3.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adamod-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / adamod-0.0.3.tar.gz
| Download URL | adamod-0.0.3.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e542b2982ad183ea7879671661d19acb581f8037adcb879464df6887d6df108
|
|
BLAKE2b-256 checksum How to use checksums |
233842505c02b17039057ea63b5047ab8ce7348ecf840161d0c865fb40543326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/36.5.0.post20170921 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Release files / adamod-0.0.3-py3-none-any.whl
| Download URL | adamod-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb77ec37f93d930e13adfa9646d4dfb63e91d8311df5b4dd826bdb677340fcc8
|
|
BLAKE2b-256 checksum How to use checksums |
088436499b6bd4b0bd06670210b636216780699488f6c7666f766dc6f164db7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/36.5.0.post20170921 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Security for adamod 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.