Video and slides synchronized, mp3 and slide download available at URL http://bit.ly/2mBtB81.
Jeff Smith covers some of the latest features from PyTorch - the TorchScript JIT compiler, distributed data parallel training, TensorBoard integration, new APIs, and more. He discusses some projects coming out of the PyTorch ecosystem like BoTorch, Ax, and PyTorch BigGraph. He digs into some of the use cases and industries where people are successfully taking PyTorch models to production. Filmed at qconnewyork.com.
Jeff Smith is an engineering manager at Facebook AI where he supports the PyTorch team. He’s the author of Machine Learning Systems and Exploring Deep Learning for Language. While working at the intersection of functional programming, distributed systems, and machine learning, he coined the term reactive machine learning to describe an ideal ML architecture and associated set of techniques.
2. InfoQ.com: News & Community Site
• 750,000 unique visitors/month
• Published in 4 languages (English, Chinese, Japanese and Brazilian
Portuguese)
• Post content from our QCon conferences
• News 15-20 / week
• Articles 3-4 / week
• Presentations (videos) 12-15 / week
• Interviews 2-3 / week
• Books 1 / month
Watch the video with slide
synchronization on InfoQ.com!
https://www.infoq.com/presentations/
pytorch-torchscript-botorch/
3. Presented at QCon New York
www.qconnewyork.com
Purpose of QCon
- to empower software development by facilitating the spread of
knowledge and innovation
Strategy
- practitioner-driven conference designed for YOU: influencers of
change and innovation in your teams
- speakers and topics driving the evolution and innovation
- connecting and catalyzing the influencers and innovators
Highlights
- attended by more than 12,000 delegates since 2007
- held in 9 cities worldwide
4. AGENDA 01
WHAT IS PYTORCH
02
RESEARCH TO PRODUCTION
03
PRODUCTION PYTORCH
04
ECOSYSTEM
05
RESOURCES FOR DEVELOPERS
13. AA
DATASETS & DATA LOADERS
TORCH.DATA
MODELS, DATA
TORCH.VISION
AUTO DIFFERENTIATION
TORCH.AUTOGRAD
OPTIMIZERS
TORCH.OPTIM
TORCH SCRIPT DEPLOYMENT
TORCH.JIT
NEURAL NETWORKS
TORCH.NN
14.
15. TRAINING
LOADING DATA, MISC
THE FORWARD PASS
DEFINING OUR NET
import torch
class Net(torch.nn.Module):
def __init__(self):
self.fc1 = torch.nn.Linear(8, 64)
self.fc2 = torch.nn.Linear(64, 1)
16. TRAINING
LOADING DATA, MISC
THE FORWARD PASS
DEFINING OUR NET
import torch
class Net(torch.nn.Module):
def __init__(self):
self.fc1 = torch.nn.Linear(8, 64)
self.fc2 = torch.nn.Linear(64, 1)
17. TRAINING
LOADING DATA, MISC
THE FORWARD PASS
DEFINING OUR NET
def forward(self, x):
x = torch.relu(self.fc1.forward(x))
x = torch.dropout(x, p=0.5)
x = torch.sigmoid(self.fc2.forward(x))
return x
18. TRAINING
LOADING DATA, MISC
THE FORWARD PASS
DEFINING OUR NET
def forward(self, x):
x = torch.relu(self.fc1.forward(x))
x = torch.dropout(x, p=0.5)
x = torch.sigmoid(self.fc2.forward(x))
return x
19. TRAINING
LOADING DATA, MISC
THE FORWARD PASS
DEFINING OUR NET
net = Net()
data_loader = torch.utils.data.DataLoader(
torchvision.datasets.MNIST('./data'))
optimizer = torch.optim.SGD(net.parameters())
20. TRAINING
LOADING DATA, MISC
THE FORWARD PASS
DEFINING OUR NET
net = Net()
data_loader = torch.utils.data.DataLoader(
torchvision.datasets.MNIST('./data'))
optimizer = torch.optim.SGD(net.parameters())
21. TRAINING
LOADING DATA, MISC
THE FORWARD PASS
DEFINING OUR NET
for epoch in range(1, 11):
for data, target in data_loader:
optimizer.zero_grad()
prediction = net.forward(data)
loss = F.nll_loss(prediction, target)
loss.backward()
optimizer.step()
if epoch % 2 == 0:
torch.save(net, "net.pt")
57. PYTEXT
PARAMETER SWEEPING
EVALUATION
TRAINING
MODEL AUTHORING
NEW IDEA / PAPER
PYTORCH
MODEL
PYTHON
SERVICE
SMALL-SCALE
METRICS
PYTEXT
PERFORMANCE TUNING
EXPORT VALIDATION
EXPORT TO TORCHSCRIPT
PYTORCH
TORCHSCRIPT
C++
INFERENCE
SERVICE
PYTEXT RESEARCH TO PRODUCTION CYCLE
94. PyTorch is now the
second-fastest growing
open source project on GitHub
Source: venturebeat.com/2018/10/16/github-facebooks-pytorch-and-microsofts-azure-have-the-fastest-growing-open-source-projects/
95.
96.
97. PRIVACY IN AI - FREE COURSE
FACEBOOK FUNDING
300 SCHOLARSHIPS TO
CONTINUE EDUCATION
FULL CURRICULUM OF DL
COURSES TAUGHT WITH
PYTORCH
SOME OF THE CLASSES
BASED ON PYTORCH:
98.
99. OVER 1.5 MILLION MINUTES
VIEWING TIME PER MONTH
100K MONTHLY VIDEO VIEWS
GLOBAL COMMUNITY OF
STUDENTS FROM THE US TO
BENGALURU TO LAGOS
1