-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Using multiple GPUs for training the FARMReader #224
Comments
Hi @sbhttchryy , What exact part of the pipeline are you referring to here? |
Hi, @tholor thank you for your quick response. This is the code that I am using and I aim to use all the GPUs. `from haystack import Finder from haystack.database.memory import InMemoryDocumentStore from haystack.retriever.sparse import TfidfRetriever It does not use any of the GPUs. It returns this message often(the same happens if I don't use the num_processes parameter)
OS: Ubuntu 16.04.6 LTS (Xenial Xerus) Thank you. |
Ok, this training code should actually utilize all GPUs.
|
Thank you for your response.
|
Ok this sometimes happens if you install pytorch via pip. (with the version for cuda that you have installed locally, see also the official docs) If that doesn't help you will probably need to check Nvidia drivers, CUDA ... |
Indeed. Thank you very much. Now it utilizes all the GPUs. However, it runs into the following error.
The full log is as follows: Thank you again. :) |
That's indeed a bug and I was able to reproduce this. Adding a quick fix via #234. Thanks for reporting this! |
Closing this as it was fixed by #234. |
Hi, is there any way I can force Haystack to use all my GPUs?
The text was updated successfully, but these errors were encountered: