# Peanut v2 - A more stable Adam variant, tested on CPU only. Try it on your dataset?

> Source: <https://discuss.huggingface.co/t/peanut-v2-a-more-stable-adam-variant-tested-on-cpu-only-try-it-on-your-dataset/191809#post_1>
> Published: 2026-11-13 17:26:14+00:00

Hi everyone,

I just made public a small peanut project I built on a CPU-only laptop, no GPU.

Repo: [https://github.com/dskc/peanut](https://l.meta.ai/?u=https%3A%2F%2Fgithub.com%2Fdskc%2Fpeanut&h=AUBzmfVeqgT0DDYXwOqyTMhbsX3D9gOzyZ4OzEHEu4B8FgYkOzUTf0mIfwA9xd4J-r0KJcgtihhFt1c4vTQ0HKZe7bv4GPyGEPdFqW_WF8r1CRmIVZrT8TFBcrVazf4MrBsI4-Z_uNlXfOh7osaPEzGugoWdd1jJINBwEQ)

Idea is simple. Peanut v2 is Adam with two changes:

Everything else is standard Adam.

Results, Fashion-MNIST, CNN, batch 64, lr 0.01, 3 seeds:

Experiment 01, 10 epochs:

Experiment 02, 20 epochs, long training:

Peanut does not beat Adam by a lot. The real win is stability.

AdamW collapsed on some seeds in my tests, 0.8803 on CNN, 0.8366 on MLP.

Peanut v2 never collapsed.

Limits, to be honest:

I kept the repo tiny on purpose:

I would love your help to test it further:

If it fails, that is also useful. Open an issue with seed, dataset, lr, and final accuracy, and I will add it to the README.

Welcome to experiment. All feedback welcome, especially negative results.

Please pay a visit to [dskc/peanut · Discussions · GitHub](https://github.com/dskc/peanut/discussions) share your thoughts there as well

Thanks!
