Observed since 20 Oct, 20:04 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Pytorch Lion optimizer with updated and advanced features.
This repository provides an enhanced implementation of the Lion optimizer, incorporating several state-of-the-art techniques to improve performance, stability, and memory efficiency. It includes two base variants: the original Lion and D-Adapt-Lion.
Reduces memory overhead by hooking gradients as they become available during the backward pass, eliminating the need to store them explicitly via the step_parameter method.
Achieves FP32-level performance in BF16 training by implementing stochastic rounding for the final update. This allows for faster training with lower-precision data types without sacrificing accuracy.
Improves model generalization and enhances numerical stability by modifying gradients to be orthogonal to the parameters.
Theoretically accelerates the convergence speed of Lion by 33.33% while making training more stable in noisy, small-batch environments. The main trade-off is the requirement of an additional state to store gradients from the previous step.
Includes the "Cautious" variant of Lion, an approach introduced to refine the optimization process and improve training outcomes.
Enhances training stability by applying gradient norm clipping on a per-parameter basis, preventing erratic updates from large gradients.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.1 | 1 Sept 2025 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 20:04 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0dc411a0570566a95b723f0dc1cb851be095e87eea283a70291b093d749d5f2c