jcjohnson / torch-rnn

Efficient, reusable RNNs and LSTMs for torch
MIT License
2.49k stars 507 forks source link

Installing torch-rnn on Windows #90

Open neurotech opened 8 years ago

neurotech commented 8 years ago

Has anyone been able to install and use torch-rnn on Windows, specifcally Windows 10?

I haven't tried yet - I won't have an opportunity to for another day or so. I was hoping to get some feedback in the meantime on whether torch-rnn is supported on a Windows environment, whether anyone has had any luck getting it to work, any gotchas etc.

HaraldKorneliussen commented 8 years ago

To run torch-rnn you need Torch, and Torch isn't officially supported on Windows. You could try looking on e.g. stack overflow for the experiences of people who have got it to work, but I don't think it's easy.

neurotech commented 8 years ago

Thanks, @vintermann. Is there any value in pursuing a solution using VMWare/VirtualBox? I'm not well-versed in virtualisation - would I be able to use my GTX 970 with CUDA with torch-rnn through a VM somehow?

one-new-message commented 7 years ago

I have experimented using the "Bash on Ubuntu on Windows" feature in Windows 10. To find out more about it, you can just find online instructions on how to enable it and set it up. Then, simply follow the Linux installation instructions using your bash shell. (Keep in mind this might not allow GPU support -- I had some difficulty with NVIDIA's CUDA drivers for Linux, and I'm not sure it will work for someone else, either)

If Bash for Windows doesn't work for you, you could try neurotech's suggestion to use Virtualbox (It's free!) and install torch-rnn in that Linux installation. Either way, I doubt you will be able to get GPU support. If you need that, consider doing a dual-boot or using a secondary hard drive just for Linux. If it comes to that, do some research, consider your options, and choose the way to install a Linux distribution that will work the best for you. (And try Ubuntu for your distribution -- it's good for beginners)

Good luck!