Adapt SGD module for new models interfaces