GithubHelp home page GithubHelp logo

multiaki / pytorch-webinar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidmertz/pytorch-webinar

0.0 1.0 0.0 48.22 MB

Machine Learning with PyTorch tutorials (for Pearson)

Jupyter Notebook 97.76% Python 2.24%

pytorch-webinar's Introduction

About the course

This repository is for use with the Pearson Publishing live webinar "Machine Learning with PyTorch." Versions of this material are used by other training provided by David Mertz ([email protected]) and KDM Training.

If you have attended one of the webinars using this material, I encourage you to complete the survey on it at: Machine Learning Webinar survey. As folks fill this out, we will fold back the updated answers into the dataset used in the lessons themselves.

Installing training materials

Before attending this course, please configure the environments you will need. Within the repository, find the file requirements.txt to install software using pip, or the file environment.yml to install software using conda. I.e.:

$ conda env create -f environment.yml
$ conda activate Pearson-PyTorch
(Pearson-ML) $ jupyter notebook Outline.ipynb

Or

$ pip install -r requirements.txt
$ juypter notebook Outline.ipynb

PyTorch often works vastly faster when utilizing a CUDA GPU to perform training. Students who wish to be able to follow along running the material on their own machines in real time, are advised to obtain access to a GPU machine while attending this webinar.

Numerous cloud services provide access to rented GPU instances are reasonable hourly costs. AWS EC2 instances are very well known, and can be leased with good GPU configurations. The author is very fond of a service called vast.ai (https://vast.ai/) that he will use during presentation of the webinar. The Docker image pytorch/pytorch is my preferred starting point on vast.ai.

Of course, if you have any moderately recent CUDA-enabled GPU on your home or work machine, you will be fine also.

If you run this material on a leased cloud GPU, you will probably start with a fairly minimal base Docker image. It will probably be a good idea to install a few tools using the system installer (some of those are used in the lessons themselves, but nothing important depends on them if you follow without those available).

I setup a new cloud instance with these steps, once I open a terminal into that machine:

$ apt-get update  # Make sure latest repo information
$ apt-get install git jq curl tree vim wget unzip -y

### For modification of repo...
### Create ~/.ssh/id_rsa based on local /home/dmertz/.ssh/id_rsa.vastai
$ chmod 600 ~/.ssh/id_rsa
$ git clone [email protected]:DavidMertz/PyTorch-webinar.git
$ git config --global user.email "[email protected]"  # substitute as needed
$ git config --global user.name "David Mertz"

### For cloning without intention to push changes...
$ git clone https://github.com/DavidMertz/PyTorch-webinar.git

$ cd PyTorch-webinar/
$ pip install --upgrade pip  # latest version changes often
$ pip install -r requirements.txt

Recommended reading

pytorch-webinar's People

Contributors

davidmertz 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.