Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Speed up your Neural Network with Theano and the GPU

NotificationsYou must be signed in to change notification settings

dennybritz/nn-theano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Read the blog post here.

Local Jupyter notebook setup

# Create a new virtual environment (optional)virtualenv venv# Install requirementspip install -r requirements.txt# Start the notebook serverjupyter notebook.

Running on an GPU-optimized Amazon EC2 instance

Use an AWS GPU-optimized instance, for exampleg2.2xlarge. You can use the following commands to configure an Ubuntu machine:

# Install build toolssudo apt-get updatesudo 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-virtualsudo pip install -U pip# Install CUDA 7wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1410/x86_64/cuda-repo-ubuntu1410_7.0-28_amd64.debsudo dpkg -i cuda-repo-ubuntu1410_7.0-28_amd64.debsudo apt-get updatesudo apt-get install -y cudasudo reboot# Clone the repo and install requirementsgit clone git@github.com:dennybritz/nn-theano.gitcd nn-theanosudo pip install -r requirements.txt# Set Environment variablesexport CUDA_ROOT=/usr/local/cuda-7.0export PATH=$PATH:$CUDA_ROOT/binexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CUDA_ROOT/lib64export THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32# For profiling onlyexport CUDA_LAUNCH_BLOCKING=1# Startup jupyter noteboookjupyter notebook

To start a public notebook server that is accessible over the network you canfollow the official instructions.

About

Speed up your Neural Network with Theano and the GPU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp