Skip to main content

EVE: The EVer Evolving Deep Learning Optimizer

Upload Python Package

EVE is a new optimizer library built on top of PyTorch that combines the best of multiple state-of-the-art optimizer algorithms into one flexible, infinitely customizable super-optimizer.

The goal of EVE is not to provide one final, static optimizer, but rather an interface to a PyTorch optimizer that will continue to implement the latest, well-tested methods from modern research.

In preliminary testing, the current implementation of EVE was able to beat Adam and other near state-of-the-art optimizers without a significant increase in compute time. Here are some inital results from training a ResNet18 on the ImageNette (subset of ImageNet that encompasses a few hard to classify classes) 5 epoch challenge.

Adam (Final Accuracy = 40.00%)

epoch train_loss valid_loss accuracy time
0 2.479557 9.522848 0.129936 00:33
1 2.223202 2.041943 0.433121 00:33
2 2.529300 2.300190 0.212994 00:34
3 2.018234 1.866597 0.347261 00:35
4 1.780924 1.732265 0.400000 00:35

EVE (Final Accuracy = 70.62%)

epoch train_loss valid_loss accuracy time
0 2.396812 2.617368 0.335287 00:39
1 2.170482 1.626544 0.478726 00:39
2 1.526003 1.672156 0.501146 00:39
3 0.956125 0.949652 0.696306 00:39
4 0.567583 0.949395 0.706242 00:39

Here are a few animations demonstrating EVE's convergence properties on simple functions:

2D Convex Surface 2D Non-Convex Surface 3D Surface with Saddle Point

Installation and Getting Started

The simplest way to use EVE in your PyTorch models is to install it using pip:

pip install eve-optimizer

Then, the main EVE optimizer can be imported as follows:

from eve.optimizers import eveo3

This will import a function that returns a torch.optim.Optimizer object, which can be used in the usual way.

The EVE library also provides a direct interface to other optimizers (like Ranger, RAdam, etc.) that were used in part or were built upon to create the main EVE optimizer. These can also be accessed from eve.optimizers in the same way.

What Exactly is EVE?

At present, EVE implements (and combines) the following algorithms:

We are currently working on adding in the following variants as well:

Metadata

Release files for eve-optimizer 0.0.7

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

Source distribution (sdist)

Source distribution for eve-optimizer 0.0.7
File Size Uploaded
eve_optimizer-0.0.7.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eve-optimizer 0.0.7
File Interpreter ABI Platform
eve_optimizer-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / eve_optimizer-0.0.7.tar.gz

Download URL eve_optimizer-0.0.7.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0c9b550fb9a6c8f0881cae59e06315b2be2f28a89e5cef5992136e60a0e14ca0
BLAKE2b-256 checksum
How to use checksums
5137bed84d1dab16728335f5e2c64d02d3f8986d46ac707b34824f6eee323a5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release files / eve_optimizer-0.0.7-py3-none-any.whl

Download URL eve_optimizer-0.0.7-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45349de2c3f88ad94d5b27acd402b0f231f0da99383ec5ae7a951e3e2e79401c
BLAKE2b-256 checksum
How to use checksums
afc8abb7a0c5c5056824b4cb84493aaa1012641f86dc358adc5c7bef1be507e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

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