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.2.tar.gz
(12.0 kB
view details)
File details
Details for the file adam_atan2-0.0.2.tar.gz.
File metadata
- Download URL: adam_atan2-0.0.2.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 |
876f980402a3ef0001e4f18ff80790ad72e3defdb0b52932135bc269e6b711ac
|
|
| MD5 |
33833c1168b29d58ccca18383a9393b5
|
|
| BLAKE2b-256 |
b0264c509b610fd6681dfde48c0e81098d8612a1b6df040a333b65f13e39e0c1
|