Model Sometimes Takes Significantly Longer to Iterate Through

I’m pretty new to PyTorch, so please excuse my lack of knowledge on this subject. I’m working with OpenAI’s Shape-E. It runs on CUDA, and is usually able to run pretty fast (about 15-30 seconds). However, sometimes it randomly takes significantly longer, (about 6-7 minutes) and I have no idea what is causing this. I’ve tried restarting my PC, but this hasn’t fixed the issue. Are there common causes for issues like this? How could I go about debugging it?