Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training time varies randomly without changing parameters #3049

Open
Becerril42 opened this issue Aug 17, 2024 · 0 comments
Open

Training time varies randomly without changing parameters #3049

Becerril42 opened this issue Aug 17, 2024 · 0 comments

Comments

@Becerril42
Copy link

I am training a Keras Tensorflow ResNet50 model in my Nvidia RTX4090 GPU. I am using Python 3.10, TF 2.10 (I am using Windows), Keras 2.10, CUDA 12.5, CuDNN 8.9 and PyCharm as my interpreter. The model usually takes around 2 minutes per epoch. However, I have observed that sometimes, without changing any hiperparameters and with exactly the same inputs, an epoch can take up to an hour. Moreover, this sometimes happen within the same run: the first epoch takes 15 minutes but the other epochs take 2 minutes, or the model runs at normal speed for three epochs and the fourth epoch takes over half an hour. At the beginning of the code I'm using tf.config.experimental.set_memory_growth(device, True) and tf.keras.backend.clear_session(), and I have checked the GPU usage and its the same in both cases. I am new to Machine Learning and Keras, so is there anything I'm missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant