Giter Club home page Giter Club logo

kaggle's Introduction

SSH Kaggle Kernel Setup ๐Ÿš€

Quick script to setup SSH to Kaggle Kernel for Deep Learning. In order to use that sexy P100 for free :P

How setup SSH connection

  • Step 1: Create a new Kaggle kernel

  • Step 2: Go to Kernel Settings and turn on GPU and Internet

    setting

  • Step 3: Copy the whole content of the get_ssh.py

  • Step 4: Click Commit on the top right conner and wait a minutes for everything to set up. You should see a pop-up windows

    Save theRoot user , Root password and Port to somewhere else since you won't be able to see this information after you close this windown

How to SSH

  • ssh -J teleport.anhdh.com root@User -p Port <-- port number dictated in above output
  • With root password also dictated in above output
  • You can turn off the browser, disconnect from the server and it will still running. But keep in mind this server can only live for 9 hours at max.

How to quickly setup the server

  • Kaggle Kernel already provide many Machine Learning and Deep Learning package and library ready to use with a powerful NVIDIA Tesla P100 GPU so you might be good to go. But if you want something more that I usually use. Run this to get more:

    cd ~
    wget https://github.com/lamhoangtung/kaggle-kernel-setup/raw/master/install_common.sh
    chmod 777 install_common.sh
    ./install_common.sh

    And follow the instruction.

  • You only need to Commit again in the same kernel to get everything up and running again after terminate the server. Root password and host address information will be reset each time you commit.

  • You will need multiple Kaggle account to get multiple server at the same time.

How to terminate the server

  • Go to https://www.kaggle.com/kernels and look at the Your Recent Kernels section and hit Stop.

    stop

  • If you encounter any problem while setting up the connection. Please terminate the server as above. Then open the kernel in editor mode and go to Run > Power off, then turn it on manually.

    power_off

  • Keep in mind everything will be lost (including process and files, ...) when you Power off or Terminate the kernel

scp -o "ProxyJump teleport.anhdh.com" -rp face-recognition root@kaggle:/root/projects

kaggle's People

Contributors

anhdhbn avatar

Watchers

James Cloos 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.