# rnn-tutorial-gru-lstm **Repository Path**: Hippop2/rnn-tutorial-gru-lstm ## Basic Information - **Project Name**: rnn-tutorial-gru-lstm - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README **This repositoriy belongs to [Part 4 of the WildML RNN Tutorial](http://www.wildml.com/2015/10/recurrent-neural-network-tutorial-part-4-implementing-a-grulstm-rnn-with-python-and-theano/)**. The previous parts are here: - [Recurrent Neural Networks Tutorial, Part 1 – Introduction to RNNs](http://www.wildml.com/2015/09/recurrent-neural-networks-tutorial-part-1-introduction-to-rnns/) - [Recurrent Neural Networks Tutorial, Part 2 – Implementing a RNN with Python, Numpy and Theano](http://www.wildml.com/2015/09/recurrent-neural-networks-tutorial-part-2-implementing-a-language-model-rnn-with-python-numpy-and-theano/) - [Recurrent Neural Networks Tutorial, Part 3 – Backpropagation Through Time and Vanishing Gradients](http://www.wildml.com/2015/10/recurrent-neural-networks-tutorial-part-3-backpropagation-through-time-and-vanishing-gradients/) ### Jupyter Notebook Setup System Requirements: - Python, pip - [virtualenv](https://virtualenv.pypa.io/en/latest/) (optional, but recommended) To start the [Jupyter Notebook](https://jupyter.org/index.html): ```bash # Clone the repo git clone https://github.com/dennybritz/rnn-tutorial-lstm cd rnn-tutorial-lstm # Create a new virtual environment (optional, but recommended) virtualenv venv source venv/bin/activate # Install requirements pip install -r requirements.txt # Start the notebook server jupyter notebook ``` ### Setting up a CUDA-enabled GPU instance on EC2: ```bash # Install build tools sudo apt-get update sudo apt-get install -y build-essential git python-pip libfreetype6-dev libxft-dev libncurses-dev libopenblas-dev gfortran python-matplotlib libblas-dev liblapack-dev libatlas-base-dev python-dev python-pydot linux-headers-generic linux-image-extra-virtual sudo pip install -U pip # Install CUDA 7 wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1410/x86_64/cuda-repo-ubuntu1410_7.0-28_amd64.deb sudo dpkg -i cuda-repo-ubuntu1410_7.0-28_amd64.deb sudo apt-get update sudo apt-get install -y cuda sudo reboot # Clone the repo and install requirements git clone git@github.com:dennybritz/nn-theano.git cd nn-theano sudo pip install -r requirements.txt # Set Environment variables export CUDA_ROOT=/usr/local/cuda-7.0 export PATH=$PATH:$CUDA_ROOT/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CUDA_ROOT/lib64 export THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 # For profiling only export CUDA_LAUNCH_BLOCKING=1 # Startup jupyter noteboook jupyter notebook ``` To start a public notebook server that is accessible over the network you can [follow the official instructions](http://jupyter-notebook.readthedocs.org/en/latest/public_server.html#notebook-public-server).