Skip to content
Michał Dobrzański edited this page Sep 25, 2016 · 5 revisions

Things that I have done here:

  • Changed functions and methods in network files in order to work with Python 3.5.2
  • Implemented Early Stopping functionality for the network2.py

How to get Theano running in Ubuntu 16.04 with CUDA 7.5.

The tutorial: http://deeplearning.net/software/theano/install_ubuntu.html#install-ubuntu

  1. install theano: sudo python3.5 -m pip install Theano

  2. download and install the latest cuda: https://developer.nvidia.com/cuda-downloads

I had some issues with that, so I followed this idea (better option is to download the 1,1GB package as .run file):

http://askubuntu.com/questions/760242/how-can-i-force-16-04-to-add-a-repository-even-if-it-isnt-considered-secure-eno

You may also want to grab the proper NVidia driver, choose it form there:

System Settings > Software & Updates > Additional Drivers.

  1. This should work, run it with: THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python3.5 test.py http://deeplearning.net/software/theano/tutorial/using_gpu.html

  2. Optionally, you can add cuDNN support from: https://developer.nvidia.com/cudnn

Clone this wiki locally