Skip to main content

Adam-atan2 Fused Operator

Usage

Drop-in replacement of torch.optim.AdamW.

  • Doesn't support foreach, fused argument, as the optimizer is already fused
  • Doesn't support amsgrad, maximize, capturable, differentiable argument 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

Release files for adam-atan2 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adam-atan2 0.0.3
File Size Uploaded
adam_atan2-0.0.3.tar.gz 12.0 kB Details

Release files / adam_atan2-0.0.3.tar.gz

Download URL adam_atan2-0.0.3.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f07faef4a6d7476ad3be6096155a35a5ecf6a3932282367f05d45158b81ff5a8
BLAKE2b-256 checksum
How to use checksums
06a28ef8f0bb022f39d87edda9e04e77458195eb0011d13561c4e7a85e6c1c22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page