I have utilized the YoloV7 algorithm to train a model using a dataset comprising 50,000 images. However, I've noticed that the size of the model has doubled compared to the initial weight file. In previous instances, I've observed that models tend to automatically strip the optimizer after training. Unfortunately, this has not been the case for me.
How to remove the optimizer from the model to effectively reduce its size?