An open API service indexing awesome lists of open source software.

https://github.com/titu1994/keras-lamb-optimizer

Implementation of the LAMB optimizer for Keras from the paper "Reducing BERT Pre-Training Time from 3 Days to 76 Minutes"
https://github.com/titu1994/keras-lamb-optimizer

Last synced: 2 months ago
JSON representation

Implementation of the LAMB optimizer for Keras from the paper "Reducing BERT Pre-Training Time from 3 Days to 76 Minutes"

Awesome Lists containing this project

README

          

# Keras LAMB Optimizer (Layer-wise Adaptive Moments optimizer for Batch training)
-----

Implementation of the LAMB optimizer from the paper [Reducing BERT Pre-Training Time from 3 Days to 76 Minutes](https://arxiv.org/abs/1904.00962).

Supports large batch training of upto 64k while only using the learning rate as a hyper parameter. Also supports smaller batch sizes without any change in other hyper parameters.

# Usage

```python

from keras_lamb import LAMBOptimizer

optimizer = LAMBOptimizer(0.001, weight_decay=0.01)
model.compile(optimizer, ...)
```

# Requirements
- Keras 2.2.4+
- Tensorflow 1.13+