Keras load_model returning Unexpected keyword argument passed to optimizer: amsgrad
AMSgrad has been added on 11.12.2017 to Keras https://github.com/keras-team/keras/pull/8693 whereas Keras 2.1.2 has been built on 01.12.2017 https://github.com/keras-team/keras/releases/tag/2.1.2
So either you need to wait on the next release or install Keras from scratch if the model uses it.
Keras version 2.1.3 is required so you could just go with
pip install keras==2.1.3