Pytorch on 940MX no longer supported

I have a laptop with a 940 MX GPU. It’s not much but I use it for learning. I recently tried to install pytorch and it told me my GPU is too old.
I read somewhere on this forum that installing it from source might still work, however I have no clue on how to do that. Could someone please explain the steps or link to some tutorial for doing so (I wasn’t able to find anything on this.).

You can find the build instructions here.
Let me know, if you encounter any problems.