
In the first lecture you will see a working web application whose backend side consists of various machine learning models deployed to AWS Lambda with the help of Serverless Framework. Whitin the next couple of course sections you will be able to build such systems too!
In this lecture I describe main concepts of serverless computing. After completing the lecture, you will uderstand what does "serverless computing" mean in general.
Expose machine learning models through AWS Lambda and API Gateway by deploying with optional S3-stored models, detailing warm and cold starts and end-to-end prediction flow.
In this lecture I will briefly explain why I decided to do the practical lectures on Linux.
Download and extract the Ubuntu VM image, install 7-zip, and create a new Witchel machine in VirtualBox. Allocate RAM and attach the VDI as the hard disk.
Configure Ubuntu in a virtual machine by adjusting CPU cores in VirtualBox, installing guest additions for full screen, updating software, and configuring keyboard language and time zone.
Install Miniconda to manage Python environments, download the Linux installer, run the bash script, accept the license, initialize conda in your terminal, and create a VM snapshot for safety.
Install Visual Studio Code on Ubuntu using Ubuntu Software, launch it, and install the Python extension to enable linting, debugging, and IntelliSense for serverless deployment of Lambda functions.
Install python3 and pip3 on Ubuntu via the terminal, download get-pip.py with wget, and run it with python3 to install pip. Then install test resources and create a backup snapshot.
Discover Docker fundamentals, including containerization and the differences from virtual machines. Learn how Docker images package code and dependencies for portable, serverless deployment to AWS Lambda.
Create a hello world AWS lambda using the serverless framework, generating a python 3 boilerplate service and wiring event, context, and a proxy API gateway response.
Set memory size to 128 megabytes and a 30-second timeout for the serverless hello world function, then deploy with serverless, complete packaging, and create the cloud formation stack and endpoint.
Explore how API Gateway triggers AWS Lambda executions, deploy serverless machine learning models with the Serverless Framework, and monitor performance with CloudWatch and CloudFormation.
In this lecture I will show you the dataset which we will use for our model training and explain how you will use frontend code.
In this lesson we will create a virtual Python environment with miniconda and install required packages.
In this lecture we will use simple data description functions from pandas package.
In this lecture we will train the SVR model in scikit-learn.
In this lecture we will discuss some model saving options.
In this lecture we will create a serverless project and start editing handler.py file.
In this lecture we will code a function which will serve as Lambda and provide predictions from trained machine learning model.
After this lecture you will be introduced with options for testing lambda functions locally.
In this lecture we will edit serverless.yml file.
After this lecture you will be introduced with requirements.txt file, why it is used and how you can invoke your deployed Lambda function.
After this lecture you will know what to pay attention on in CloudWatch logs.
In this lecture I will show you a simple technique of keeping your Lambda functions warm.
In this lecture I'll give a more detailed overview about cold starts.
After this lecture you will be able to create usage plans and API keys for your APIs.
In this lecture I will give an overview of costs components for AWS services used so far.
Explore deploying spaCy NLP models to AWS Lambda, including a named entity recognition model and a parts-of-speech tagging and parsing model, with nine-language support and visualizers.
Create a conda virtual environment named spacy mianus dev with python 3.6, install spacy with pip, download the small English model, and verify loading it in Python for lambda deployment.
Create a serverless project using the serverless framework, generate a Python three boilerplate template, and install the serverless Python requirements plugin.
Code an AWS Lambda function handler in Python to perform spaCy-based named entity recognition, loading the model outside the handler, returning spans as JSON in the response.
Update handler.py to load the space model directly from the installed package instead of using spaCy loading, ensuring reliable deployment on AWS Lambda.
Deploy serverless space function on AWS Lambda, packaging Python code and testing with CloudWatch for cold start timing. Explore endpoint testing via a web GUI and analyze named entity recognition.
In this lecture I’ll give you a brief overview of the architecture which you will build though the section to be able to deploy computer vision models such as ResNet50 or InceptionV3, to AWS Lambda.
In this lecture we will create a new conda environment for our keras example.
In this lecture I will show you hot to download and use ResNet50 model with Keras framework.
In this lecture we will create two S3 buckets – first one for uploaded images, and the second for deep learning models.
Demonstrate accessing s3 buckets with boto3 in a notebook, download and load a model and an image, and run a prediction as preparation for deploying to aws lambda.
In this lecture we will create project with serverless and start editing handler.py file.
In this video we will mainly finish editing handler.py file.
In this lecture we will update our handler.py file and start editing serverless.yml file.
In this lecture we will finish editing serverless.yml file.
In this lecture we will test whether our Lambda function will work locally.
In this lecture we will setup all necessary Python packages required for Lambda to work.
In this lecture we will finally deploy our function to AWS Lambda service.
In this lecture we will setup our web page example to be able to upload an image to S3 bucket and obtain predictions from ResNet50 model.
In this lecture we will test our web page example to obtain predictions from deployed ResNet50 model.
In this course you will discover a very scalable, cost-effective and quick way of deploying various machine learning models to production by using principles of serverless computing. Once when you deploy your trained ML model to the cloud, the service provider (AWS in this course) will take care of managing server infrastructure, automated scaling, monitoring, security updating and logging.
You will use free AWS resources which are enough for going through the entire course. If you spend them, which is very unlikely, you will pay only for what you use.
By following course lectures, you will learn about Amazon Web Services, especially Lambda, API Gateway, S3, CloudWatch and others. You will be introduced with various real-life use cases which deploy different kinds of machine learning models, such as NLP, deep learning computer vision or regression models. We will use different ML frameworks - scikit-learn, spaCy, Keras / Tensorflow - and show how to prepare them for AWS Lambda. You will also be introduced with easy-to-use and effective Serverless Framework which makes Lambda creation and deployment very easy.
Although this course doesn't focus much on techniques for training and fine-tuning machine learning models, there will be some examples of training the model in Jupyter Notebook and usage of pre-trained models.