Skip to content

Instantly share code, notes, and snippets.

@sono-bfio
sono-bfio / gist:0876cac7a8068eb37350
Last active February 19, 2016 17:28
PyCaffe Install on Bitfusion Caffe AMI
sudo su -
pip install --upgrade pip
cd /opt/caffe/python
/usr/local/bin/pip install -r requirements.txt
cd ..
make pycaffe -j2
make distribute
echo 'export PYTHONPATH=/opt/caffe/python:$PYTHONPATH' >> ~/.bashrc
echo 'export PYTHONPATH=/opt/caffe/python:$PYTHONPATH' >> /home/ubuntu/.bashrc
exit
@sono-bfio
sono-bfio / gist:e3c62a40243a8df67e30
Last active February 23, 2016 20:42
BitFusion Silent Install
curl https://boost.labs.bitfusion.io/license/U5EbxzeR2SR3hPNS4q6d/install | sudo bash -s -- -s
# Silent install with long option
curl https://boost.labs.bitfusion.io/license/U5EbxzeR2SR3hPNS4q6d/install | sudo bash -s -- --silentinstall
mkdir -p .jupyter/custom
touch .jupyter/custom/startup.py
Contents:
import warnings:
warnings.filterwarnings('ignore')
sudo service ipython-notebook restart

Install Jupyter with Python 2 and Python 3 Kernels

  • Assumes you are logged in as the ubuntu user
  • Tested and run on ubuntu 14.04

Install Jupyter (Python2)

sudo pip2 install jupyter
@sono-bfio
sono-bfio / TensorflowServeringInstall.md
Last active August 16, 2016 20:49
Tensorflow Server Install

To install TensorFlow Serving dependencies, execute the following:

sudo /usr/local/bin/pip2 install mock
sudo apt-get update && sudo apt-get install -y \
        build-essential \
        curl \
        git \
        libfreetype6-dev \
        libpng12-dev \
        libzmq3-dev \
@sono-bfio
sono-bfio / tflearn-install.md
Created August 19, 2016 18:28
Installing TF Learn

Installing tf learn - python 2.7

/usr/local/bin/pip2 tflearn

Install tf learn - python 3.4

/usr/local/bin/pip3 tflearn
@sono-bfio
sono-bfio / bird_classifier.py
Created August 24, 2016 16:07
tflearn and cifar 10
from __future__ import division, print_function, absolute_import
# Import tflearn and some helpers
import tflearn
from tflearn.data_utils import shuffle
from tflearn.layers.core import input_data, dropout, fully_connected
from tflearn.layers.conv import conv_2d, max_pool_2d
from tflearn.layers.estimator import regression
from tflearn.data_preprocessing import ImagePreprocessing
from tflearn.data_augmentation import ImageAugmentation
@sono-bfio
sono-bfio / boost_cluster_update.md
Last active August 27, 2016 14:01
Updating a boost cluster

Upgrading the GPU nodes

1. Launch Bitfusion Boost cluster
2. Log into the client node
$ ssh -l ubuntu -i path/to/your_key.pem {IP}
@sono-bfio
sono-bfio / boost_cluster_update.md
Created August 27, 2016 13:58
How to update a boost cluster manually

Upgrading the GPU nodes

1. Launch Bitfusion Boost cluster
2. Log into the client node
$ ssh -l ubuntu -i path/to/your_key.pem {IP}
@sono-bfio
sono-bfio / bird_classifier.py
Created August 31, 2016 17:10
cifar-10 and tflearn
from __future__ import division, print_function, absolute_import
# Import tflearn and some helpers
import tflearn
from tflearn.data_utils import shuffle
from tflearn.layers.core import input_data, dropout, fully_connected
from tflearn.layers.conv import conv_2d, max_pool_2d
from tflearn.layers.estimator import regression
from tflearn.data_preprocessing import ImagePreprocessing
from tflearn.data_augmentation import ImageAugmentation