This repository contains material to get started with PyTorch v1.3. It was the base for this [pytorch tutorial] from PyData Berlin 2018.
- Foreword - Why PyTorch and why not? Why this talk?
- PyTorch basics - tensors, GPU, autograd - [open in colab]
- Debugging - [open in colab]
- Example: linear regression - [open in colab]
- Storing and loading models - [open in colab]
- Working with data -
Dataset
,DataLoader
,Sampler
,transforms
- [open in colab]
- Training Libraries and Visualization
- Torch JIT - [open in colab]
- Hooks - register functions to be called during the forward and backward pass - [open in colab]
- Machine Learning 101 with numpy and PyTorch - [open in colab]
- PyTorch + GPU in Google's Colab
- Teacher Forcing
- RNNs from Scratch - [open in colab]
- Mean Shift Clustering - [open in colab]
- TODO
nn
andnn.Module
- TODO Deployment
- TODO Deployment with TF Serving
- TODO
nn.init
- TODO PyTorch C++ frontend
- conda
- Python 3.7 or higher
# If you have a GPU and CUDA 10
conda env create -f environment_gpu.yml
# If you don't have a GPU
conda env create -f environment_cpu.yml
# activate the conda environment
source activate pytorch_tutorial_123
Download data and models for the tutorial:
python download_data.py
Then you should be ready to go. Start jupyter lab:
jupyter lab
To get the jupyter lab table of contents extensions do the following:
jupyter labextension install @jupyterlab/toc
- Version of this tutorial for the PyData 2018 conference: [material] [video]