How to install pytorch from source with GPU

I have been just started learning pytorch and it has been difficult journey so far .
First installed pytorch but DLL error.
Next installed pytorch with GPU with pip but my Graphics card wasnt supported .
So next installed pytorch from source but this time it cant detect Cuda .
Can anyone explain How to install Pytorch from source with GPU in windows ?
The official documents seems very unclear for newbiw like me.

What GPU card are you using?

Have you installed CUDA correctly? Which version of CUDA are you using?

The build script is hosted at https://github.com/pytorch/builder/blob/master/windows/build_pytorch.bat. We should work on a better tutorial, but it is not our top priority.