Made it possible to load models in the training process