Open bzjf opened 2 years ago
Not in the default configuration, but if you disable the custom CUDA kernels, it's technically possible to run the model on CPU. Of course, that would cause a slowdown so large that I'd expect model inference to be impractical for almost any application. Also, CPU inference is completely untested. LMK if you still want to move forward and I can explain how to remove said kernels.
Not in the default configuration, but if you disable the custom CUDA kernels, it's technically possible to run the model on CPU. Of course, that would cause a slowdown so large that I'd expect model inference to be impractical for almost any application. Also, CPU inference is completely untested. LMK if you still want to move forward and I can explain how to remove said kernels.
Thanks for your answer, and l'm kind of sure at least for long time l have to use CPU instead of cuda. And it would be kind of you to explain about disabling the cuda kernel. Thank you all the way.
EDIT: Note, this example is just for doing structure prediction, not training.
I'm not on the OpenFold team but I happened to have adjusted my installation so that it runs on an AMD GPU instead of Nvidia. I just did it by brute force, removing CUDA-related code that produced errors in my environment, so there are probably more elegant solutions and not all of my changes are necessarily correct. No guarantees if this will work for your case, but I'm sure you would need to do something similar. This is the relevant part of my diff, although it also includes some of the low-memory / off-loading configuration changes you may want to change:
Not in the default configuration, but if you disable the custom CUDA kernels, it's technically possible to run the model on CPU. Of course, that would cause a slowdown so large that I'd expect model inference to be impractical for almost any application. Also, CPU inference is completely untested. LMK if you still want to move forward and I can explain how to remove said kernels.
Could you please elaborate how to remove kernels? I want to run it under the debug mode using IDE so that I can better understand how the code run.
l am running the instance on VMare. It could not install cuda, or the whole machine breaks. So can l run the instance without cuda? Regardless of speed.