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

[ASK] The Training using a GPU is very slow for NCF model #2131

Open
orrimoch opened this issue Jul 15, 2024 · 0 comments
Open

[ASK] The Training using a GPU is very slow for NCF model #2131

orrimoch opened this issue Jul 15, 2024 · 0 comments
Labels
help wanted Need help from developers

Comments

@orrimoch
Copy link

I've set up an virtual environment based on the following commands:
!conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1
!pip install recommenders[gpu]

Moreover I've added the following commands in the code:

tf.debugging.set_log_device_placement(True)
gpus = tf.config.experimental.list_physical_devices('GPU')
tf.config.set_visible_devices([], 'CPU') # hide the CPU
tf.config.set_visible_devices(gpus[0], 'GPU') # unhide potentially hidden GPU
tf.config.get_visible_devices()

Set the environment to use GPU

physical_devices = tf.config.list_physical_devices('GPU')
if physical_devices:
tf.config.experimental.set_memory_growth(physical_devices[0], True)

Non of the steps above helped me to increase the utilization of the gpu.
Any suggestion would be helpful.

Thanks,
Or

@orrimoch orrimoch added the help wanted Need help from developers label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Need help from developers
Projects
None yet
Development

No branches or pull requests

1 participant