AI tools, scored for your job
Get paid to train AI
🤝 You're in the Free & Open Source library — community-built tools you can use without paying. A different concept from our scored AI directory.
Home › Free & Open Source › Project Management › pytorch-optimizer
✦ Free & open sourceProject Management

pytorch-optimizer

A production-focused PyTorch optimization toolkit with 100+ optimizers.

pytorch-optimizer for PyTorch Training

Access 100+ optimizers, schedulers, and loss functions behind a consistent API.

Free forever · open source · Apache-2.0
✓ Use today✓ Browser-based✓ Real-time collaboration
6.4
ZEKAI
Essential PyTorch optimizer toolkit
Free & open source · Project Management
Ease of setup2
Usefulness9
Maintenance9.5
Community5
★ 431
GITHUB
Oct 2026
UPDATED
Apache-2.0
LICENSE
🛠 Don't want to self-host? We can set it up →
⚡ Quick answer

This library offers over 100 optimizers, 10+ learning rate schedulers, and 10+ loss functions for PyTorch through a consistent API. It is built for deep learning engineers who want to experiment with recent research variants without rewriting optimizer boilerplate code.

Runs on
Cross-platform
Hosting
Self-host
Languages
Python
License
Apache-2.0

What it is

The package groups various optimization algorithms, loss functions, and schedulers like AdaBelief, AdamP, and Lookahead into a unified loader. You can load components directly by name, use helper creation functions, or compile optimizer steps for fused updates.

Who it's for

It suits machine learning practitioners and researchers looking to test multiple non-standard optimizers quickly within PyTorch. It does not suit beginners who are unfamiliar with PyTorch training loops or those who only require standard native optimizers.

Key features

100+ Optimizers

Access a broad collection of recent research optimizers behind a single API.

Consistent Loaders

Load optimizers, learning rate schedulers, and loss functions by name or helper functions.

Optional Compilation

Compile optimizer steps to automatically fuse updates for supported algorithms.

Ecosystem Integrations

Works with optional dependencies like bitsandbytes, q-galore-torch, and torchao.

How to start

Up and running in 3 steps

1
Install the library via pip install pytorch-optimizer.
2
Import your chosen optimizer or use create_optimizer for your model parameters.
3
Optionally pass compile=True to optimize and fuse optimizer update steps.
Real talk

Our honest verdict

What's great

  • Eliminates the need to copy-paste or write custom optimizer boilerplate.
  • Includes built-in support for Gradient Centralization and Lookahead.
  • Supports automatic step compilation for select optimizers.
  • Provides filtering helpers to easily discover available components.

Where it falls short

  • Requires maintaining compatibility with specific Python and PyTorch versions.
  • Optional backend integrations like bitsandbytes require manual separate installation.
  • Running heavy experimental optimizers may introduce unexpected training instability.
Cost

Pricing & license

Free under its license, with no paid hosted option provided. The only cost is running your own hardware infrastructure for model training.

Paid work

Open remote AI-training roles

880 open remote AI-training roles, updated November 15, 2026; most pay $20–$175 an hour. Zekai lists them free; the application goes to the employer’s platform.

See all open roles →
Compare

Alternatives

🎁 Free & open-source alternatives
Get more

Use it, or have us set it up

📄 Free PDF: pytorch-optimizer for Project Management
A plain-language guide to getting your first result. Sent to your inbox.
🔔 64 people want a full video tutorial — add your vote
🛠 Don't want to set it up yourself?
We'll install, host & configure pytorch-optimizer for you — and train your team.
Get it done for you ↗
Questions

FAQ

What Python and PyTorch versions are required?

You need Python 3.10+ and PyTorch 2.1+ to use the package.

Can I compile optimizer steps for faster execution?

Yes, setting compile=True lets PyTorch automatically fuse optimizer updates for supported algorithms.

Radar

Latest AI news

✉️ The weekly free toolkit
The best new free & open-source tools for Project Management — one short email a week, in your language.
Free · 1 email/week · unsubscribe anytime
Get paid to train AI →

See Zekai first in Google