Is it necessary to retrain the model every time for each generation, and is there a way to speed it up? It's really slow.