Remote => Server/GPU Computer Client => You/Dumb Computer
This allows you to later run jupyterlab at 8080 on remote pc and its tunneled so u can view stuff in client.
ssh -p <PORT> <REMOTE_USER>@<REMOTE_IP> -L 8080:localhost:8080
;; Prints a table of vars in an ns with name/line/added/macro flag/deprecated flag | |
(defn pr-vars [ns-sym] | |
(->> (ns-publics ns-sym) vals (map meta) (sort-by :name) | |
(map #(select-keys % [:name :line :added :macro :deprecated])) | |
(map #(merge {:added nil :macro false :deprecated false} %)) | |
clojure.pprint/print-table)) | |
(pr-vars 'clojure.string) | |
;; | :added | :macro | :deprecated | :name | :line | |
zmq = require("zmq") | |
fs = require("fs") | |
var config = JSON.parse(fs.readFileSync(process.argv[2])) | |
var connexion = "tcp://"+config.ip+":" | |
var shell_conn = connexion+config.shell_port | |
var pub_conn = connexion+config.iopub_port | |
var hb_conn = connexion+config.hb_port |
// From http://robots.thoughtbot.com/an-introduction-to-webgl | |
var app = function () { | |
var canvas = document.getElementById('canvas'), | |
gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl'); | |
// Create elements on the page which contain your shaders. | |
// I like using script tags with a different type attribute, like: | |
// `<script id="vertex-shader" type="x-vertex/x-shader">` | |
// You could also just put the shaders inline, but I hate escaping line breaks. | |
var shaders = { |
""" | |
Clean and simple Keras implementation of network architectures described in: | |
- (ResNet-50) [Deep Residual Learning for Image Recognition](https://arxiv.org/pdf/1512.03385.pdf). | |
- (ResNeXt-50 32x4d) [Aggregated Residual Transformations for Deep Neural Networks](https://arxiv.org/pdf/1611.05431.pdf). | |
Python 3. | |
""" | |
from keras import layers | |
from keras import models |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start