This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cd ~ | |
wget http://repo.continuum.io/archive/Anaconda2-4.0.0-Linux-x86_64.sh | |
bash Anaconda2-4.0.0-Linux-x86_64.sh -b | |
echo 'PATH="/home/ubuntu/anaconda2/bin:$PATH"' >> .bashrc | |
. .bashrc | |
jupyter notebook --generate-config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://bitbucket.org/maaaks/mscripts/raw/794bf751497987802a31e6466a99995efc17f213/smartupdate.sh | |
chmod 755 smartupdate.sh | |
./smartupdate.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install automake autotools-dev fuse g++ git libcurl4-gnutls-dev libfuse-dev libssl-dev libxml2-dev make pkg-config | |
git clone https://github.com/s3fs-fuse/s3fs-fuse.git | |
cd s3fs-fuse | |
./autogen.sh | |
./configure | |
make | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This script is tested on AWS instance RHEL - Red Hat Enterprise Linux (RHEL) 7 (HVM) https://aws.amazon.com/marketplace/pp/B00KWBZVK6 | |
#This installs Intel Caffe with python dependencies. | |
#This script is suited for SSD example. Uncomment Line#49 for general use. See https://github.com/intel/caffe/issues/65 | |
sudo yum group install -y "Development Tools" | |
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
sudo rpm -ivh epel-release-latest-7.noarch.rpm | |
sudo yum -y install python-devel python-pip tkinter gtk2-2.24.28-8.el7.x86_64 gtk2-devel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
#Preferred GCC version > 5 | |
## | |
#Install Bazel | |
# Bazel install intructions on CentOS | |
#Get the latest Bazel: https://github.com/bazelbuild/bazel/releases | |
wget https://github.com/bazelbuild/bazel/releases/download/0.9.0/bazel-0.9.0-installer-linux-x86_64.sh | |
chmod 755 bazel-0.9.0-installer-linux-x86_64.sh | |
sudo ./bazel-0.9.0-installer-linux-x86_64.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://repo.continuum.io/archive/Anaconda2-5.0.1-Linux-x86_64.sh | |
bash Anaconda2-5.0.1-Linux-x86_64.sh | |
conda config --add channels intel | |
#For Python 2.7 | |
conda create -n tf_intel_py27 -c intel python=2 pip numpy | |
source activate tf_intel_py27 | |
pip install -i https://pypi.anaconda.org/intel/simple tensorflow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#nmt_infer_batchsize.sh | |
### | |
#Prereq: | |
#sudo apt install -y moreutils jq | |
### | |
echo -e "\nBZ WPS \n" | |
#set -x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Git clone NMT | |
git clone https://github.com/tensorflow/nmt.git | |
#Download Dataset | |
cd nmt | |
nmt/scripts/download_iwslt15.sh /home/ubuntu/nmt_data | |
#Run training for few steps to get a model, so that we can use it for inference benchmarking. | |
python -m nmt.nmt \ | |
--src=vi --tgt=en \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install requirements. | |
pip install virtualenv | |
virtualenv --python=/usr/bin/python2.7 keras_tracing | |
source keras_tracing/bin/activate | |
cd keras_tracing/ | |
pip install keras | |
pip install -i https://pypi.anaconda.org/intel/simple tensorflow | |
#Clone mnist sample code | |
git clone https://github.com/ravi9/keras-trace-example.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Quick benchmarking resnet50 with MKL and NO MKL on TF | |
#Following are steps: | |
# Create MKL virtual envirnoment | |
# pip install a TF1.8 MKL Wheel | |
# git clone TF_CNN benchmarks. | |
# run resnet50 inference benchmark. | |
# | |
# Create NO-MKL virtual envirnoment | |
# pip install a TF1.8 Wheel this will install eigen based TF |
OlderNewer