Adam-atan2 Fused Optimizer
Project description
Adam-atan2 Fused Operator
Usage
Drop-in replacement of torch.optim.AdamW.
- Doesn't support
foreach,fusedargument, as the optimizer is already fused - Doesn't support
amsgrad,maximize,capturable,differentiableargument yet
pip install adam-atan2
from adam_atan2 import AdamATan2
# All supported arguments are listed below
optim = AdamATan2(model.parameters(),
lr=1e-3,
weight_decay=0.1,
betas=(0.9, 0.95)
)
Consistency Tests
We tested the consistency against reference AdamW-atan2 PyTorch implementation. To run tests, clone this repository, run pytest:
pip install -e .
pytest
References
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
adam_atan2-0.0.3.tar.gz
(12.0 kB
view details)
File details
Details for the file adam_atan2-0.0.3.tar.gz.
File metadata
- Download URL: adam_atan2-0.0.3.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f07faef4a6d7476ad3be6096155a35a5ecf6a3932282367f05d45158b81ff5a8
|
|
| MD5 |
3249721e341408b0319ab04b21c823da
|
|
| BLAKE2b-256 |
06a28ef8f0bb022f39d87edda9e04e77458195eb0011d13561c4e7a85e6c1c22
|