-
Notifications
You must be signed in to change notification settings - Fork 7
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 neural network is not working on GPU #55
Comments
Hmmm, that sounds frustrating @sametsoekel!
|
Hi @juliasilge I tried to train the first example you attached. At the beginning of training %4 of my GPU is used, about 5 minutes later I saw %15 of my GPU is being used. Shortly, I can say yes. I'm going to let you know if unwrapped brulee model still using my GPU. Update : I tried unwrapped brulee model you attached also, and set the epochs 200. While training, my GPU is never used. Thanks for interest |
Thank you @sametsoekel! That sounds like it is an issue with brulee then. 👍 |
I suspect this is because brulee pre-dates luz. It doesn't look like brulee does anything to auto-switch between cpu and gpu. For example, there would have to be code to switch between cpu and gpu as needed in here: https://github.com/tidymodels/brulee/blob/main/R/mlp-fit.R#L635 I think this might require a pretty big refactor to implement, although you might be able to do the switching based on cuda_is_available (I've already forgotten how to do that cleanly without luz, I'm spoiled!). |
@sametsoekel Thanks for filing the issue. We currently don't support GPU's in brulee, we'll add support for it soon and let you know here. |
Thank you all for the precious attention, I'll be looking forward to the feature being added. |
I'm having trouble with training
mlp()
specification bybrulee
. I know that brulee uses torch and I checked my torch & gpu relationship, seems okay. But in the example below, training goes on CPU.The text was updated successfully, but these errors were encountered: