Finish debugging model training framework