Closed tongzhang111 closed 7 months ago
I didn't quite understand your question, but I think it's normal for the memory usage to gradually increase in the early stages of training.
With each iteration, the max mem gradually increases
I understand what you mean now, I didn't notice this situation before, I'm not quite sure about the reason, it might need careful debugging.
One speculation is that the image size is dynamic, which would lead to a gradual increase in video memory.
As the number of iterations increases, the maximum memory also increases. Therefore, the problem of video memory explosion will occur. I determine whether there is a memory leak
If the OOM (Out of Memory) error occurs, you may need to reduce the resolution.
With each iteration, the model’s video memory gradually increases