Giter Club home page Giter Club logo

aws_setup.github.io's Introduction

A Notebook on Quickly getting a deep learning base AMI running

TODO

  • Look into using a environment file for all of this
# ./environment.yml
# To use:
#   $ conda env create -f environment.yml
#   $ conda activate d2l
name: d2l
dependencies:
  - python=3.9
  - pip
  - pip:
    - d2l==0.17.0
    - torch==1.8.1
    - torchvision==0.9.1

First of all, getting miniconda installed

ssh -i '.path/to/key' ubuntu@<ip>
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && chmod u+x Miniconda3-latest-Linux-x86_64.sh && ./Miniconda3-latest-Linux-x86_64.sh  && source .bashrc
conda install -y pytorch torchvision torchaudio cudatoolkit pandas scikit-learn matplotlib tqdm seaborn tensorboard -c pytorch 
conda install -c conda-forge jupyterlab
conda clean -a

server-configurations:

touch .jupyter/jupyter_server_config.py
nano .jupyter/jupyter_server_config.py

then inside you can add this

c.ServerApp.open_browser = False
c.ServerApp.port = 8888 # or any other ports you'd like
c.ServerApp.ip = '*' # bind to any network interface
c.ServerApp.password = 

then to get the password we

jupyter server password

nohup jupyter lab --no-browser &

then

cat .jupyter/jupyter_server_config.json

copy the hashed password into the .py file you created above

Getting the lab launched

tmux new-session
tmux new -s mysession
> jupyter lab

Ctrl + b w
Session and Window Preview

Ctrl + b d
Detach from session

tmux ls
Ctrl + b s
Show all sessions

tmux a
Attach to last session

tmux a -t mysession
Attach to a session with the name mysession

go here

:8888/lab

Running Tensorboard on aws and access through localhost

You would have installed tensorboardX and tensorboard

pip install tensorboard
pip install tensorboardX

Then in a local terminal run

ssh -i '.\Documents\Other docs\Key\Moayad.pem' -NL 6006:localhost:6006 ubuntu@

replace the key file if needed and add the public IP address. Then on a browser navigate to

http://localhost:6006/

aws_setup.github.io's People

Contributors

moayad-hsn avatar nduatik avatar

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.