However, at this point pre-trained encoding layers exist and image identification models can be trained very efficiently by only retraining the last few layers of the network using PyTorch. Training is the very costly part of the process and these LLMs are retrained all the time.