pytorch-optimizer VS sam

Compare pytorch-optimizer vs sam and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
pytorch-optimizer sam
3 3
2,946 1,651
- -
3.1 0.0
about 1 month ago 2 months ago
Python Python
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

pytorch-optimizer

Posts with mentions or reviews of pytorch-optimizer. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-28.

sam

Posts with mentions or reviews of sam. We have used some of these posts to build our list of alternatives and similar projects.
  • What is the correct way to sum loss into a total loss and then to backprop?
    1 project | /r/MLQuestions | 24 Nov 2021
    Which from here I understand that I shouldn't use the same loss variable for both forward passes but I'm not sure how else to do this. I thought that I could maybe create a variable called total_loss and add the loss to it and then after the iterations to backprop over it, but I'm not sure if that's the correct approach.
  • [R] Sharpness-Aware Minimization for Efficiently Improving Generalization
    1 project | /r/MachineLearning | 30 Apr 2021
    They reached sota on a few tasks. Do you really believe that the entire community missed the magic hyperparameters of batch size 128 and Adam to beat SOTA? I think getting SOTA really solidifies the approach, albeit the 2x speed cost seems heavy. As for implementation, it looks fairly trivial to adapt to all optimizers, at least from this random github https://github.com/davda54/sam
  • Help me implement this paper expanding on Google's SAM optimizer
    1 project | /r/MLQuestions | 12 Apr 2021
    Here is the code for SAM. SAM isn't too complicated. There are two forward and backward passes, a gradient accent after the first one, and the gradient decent after the second. The gradient accent is to get the noised SAM model which is calculated as for each p in param group add epsilon, which is rho * (p.grad / grad_norm), with rho being SAM's only hyperparameter.

What are some alternatives?

When comparing pytorch-optimizer and sam you can also consider the following projects:

DemonRangerOptimizer - Quasi Hyperbolic Rectified DEMON Adam/Amsgrad with AdaMod, Gradient Centralization, Lookahead, iterative averaging and decorrelated Weight Decay

southpaw - Python Fanduel API (2023) - Lineup Automation

VQGAN-CLIP - Just playing with getting VQGAN+CLIP running locally, rather than having to use colab.

AdamP - AdamP: Slowing Down the Slowdown for Momentum Optimizers on Scale-invariant Weights (ICLR 2021)

imagenette - A smaller subset of 10 easily classified classes from Imagenet, and a little more French

PHP Documentor 3 - Documentation Generator for PHP

simple-sam - Sharpness-Aware Minimization for Efficiently Improving Generalization

RAdam - On the Variance of the Adaptive Learning Rate and Beyond

PythonPID_Tuner - Python PID Tuner - Based on a FOPDT model obtained using a Open Loop Process Reaction Curve

AdasOptimizer - ADAS is short for Adaptive Step Size, it's an optimizer that unlike other optimizers that just normalize the derivative, it fine-tunes the step size, truly making step size scheduling obsolete, achieving state-of-the-art training performance