Giter Site home page Giter Site logo

aws-tensorflow-setup's Introduction

Setting up TensorFlow 0.9 with Python 3.5 on AWS GPU-instance

Description

setup-aws-tensorflow.bash installs the following things on the ec2 g2.2xlarge instance running Ubuntu 14.04:

  • Required linux packages
  • CUDA 7.5
  • cuDNN v4
  • Anaconda with Python 3.5
  • TensorFlow 0.9
  • GPU usage tool gpustat

It is based on the blog post: http://max-likelihood.com/2016/06/18/aws-tensorflow-setup/.

Usage

Just run setup_aws_tensorflow.bash on the aws instance:

./setup_aws_tensorflow.bash

aws-tensorflow-setup's People

Contributors

avsecz avatar chrisloy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-tensorflow-setup's Issues

nvidia-smi - NVIDIA-SMI has failed aws-ec2-g2.2xlarge

Installation using the scrip is ok and after reboot i type 'nvidia-smi' and i get the following error:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

libcudart.so.7.5: No such file or directory

Not working for me I'm afraid.

import tensorflow gives the following error:

ImportError: libcudart.so.7.5: cannot open shared object file: No such file or directory

Below is my code.

# Launch instance

aws ec2 run-instances --image-id ami-fce3c696 --count 1 --instance-type g2.2xlarge --key-name my_aws_key --security-groups my-sg
aws_get_ip
ssh -i ~/.aws/my_aws_key.pem ubuntu@$IPADDRESS

# Install and test everything on the EC2 instance

sudo apt-get update
sudo apt-get install git
git clone https://github.com/barry/aws-tensorflow-setup/
./aws-tensorflow-setup/setup-aws-tensorflow.bash

mkdir tf_test_mnist
cd tf_test_mnist
wget https://raw.githubusercontent.com/tensorflow/tensorflow/master/tensorflow/models/image/mnist/convolutional.py
python convolutional.py

missing 'sudo' at start of command

Hi. You need to prepend "sudo " to the start of lines :

  • "bash Anaconda3-4.0.0-Linux-x86_64.sh -b -p /mnt/bin/anaconda3"
  • "/mnt/bin/anaconda3/bin/pip install $TF_BINARY_URL"

Thanks for the awesome script!

TensorFlow not installed

Thanks for the awesome script! Although looks like for me nothing was installed past Anaconda installation. I've followed your tutorial and managed to install TensorFlow manually though. See full installation log.

It might be that I've missed something, but I thought I should let you know anyway. Thanks again, the script was of a huge help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.