Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
PyTorch Deep Learning Hands-On

You're reading from   PyTorch Deep Learning Hands-On Build CNNs, RNNs, GANs, reinforcement learning, and more, quickly and easily

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher Packt
ISBN-13 9781788834131
Length 250 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Sherin Thomas Sherin Thomas
Author Profile Icon Sherin Thomas
Sherin Thomas
Sudhanshu Passi Sudhanshu Passi
Author Profile Icon Sudhanshu Passi
Sudhanshu Passi
Arrow right icon
View More author details
Toc

Summary

In this chapter, we have gone through three different approaches to take PyTorch to production, starting from the easiest but least performant way: using Flask. Then we moved to the MXNet model server, which is a pre-built, optimized server implementation that can be managed using management APIs. The MXNet model server is useful for people who don't need a lot of complexity but need an efficient server implementation that can be scaled as required.

Lastly, we tried with TorchScript to create the most efficient version of our model and imported that in C++. For those who are ready to take up the complexity of building and maintaining a low-level language server like C++, Go, or Rust, you can take this approach and build a custom server until we have better runtime available that can read the script module and serve that like MXNet does on ONNX models.

The year 2018 was the year of model servers; there were numerous model servers from different organizations with...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime