You know Machine Learning, your models are working well, the team likes the results… but now you need to “serve” them in an API so that others can interact with it (developers/frontend team/other systems).
In this talk, you will learn how to easily build a production-ready web (JSON) API for your ML models with FastAPI, including best practices by default... explained with memes.
With very little code, you will get automatic/interactive documentation, data validation, authentication, open standards (OpenAPI, JSON Schema, OAuth2), and the best performance available in Python (on par with Go and NodeJS).
On top of that, you will have autocompletion and type checks in your editor, even for your own data, no matter the complexity of its shape.
1. Serving ML easily with
High performance, easy to learn,
fast to code, ready for production
2. Who am I?
Sebastián Ramírez
github.com/tiangolo
linkedin.com/in/tiangolo
twitter.com/tiangolo
Dev at Explosion
Berlin, Germany
Explosion created:
I created:
tiangolo.com
3. About FastAPI
● 16K GitHub stars (about 1K+ per month)
● Used by Microsoft, Uber, Netflix, etc.
● Performance in the top rank for Python
@tiangolo
But why would it be useful for you,
Machine Learning people?
4. FastAPI for ML people
I will assume you know:
● Machine Learning
● The basics of web / API development
● HTTP, JSON...
@tiangolo
5. Based on standards
● OpenAPI
● JSON Schema
● OAuth2
● Automatic API docs
@tiangolo
50. Other tools
@tiangolo
Build great CLIs. Easy to code.
Based on Python type hints.
Functional deep learning with types,
compatible with your favorite libraries.
typer.tiangolo.com thinc.ai