How to use tensorflow and keras on GPU?

I have been all day trying so many ways to run my AI model on GPU throught VSCode and absolutely nothing works. I cant install CUDA since when I install it, the folder dissapears for no reason. Has anyone any solution? 24 hours remaining so my dataset uploads to drive so I can use it on colab. Thanks!