
Learn to build, deploy, and scale large language model powered applications, including local testing of a GPT-based summarizer, containerization, API key management, and load balancing.
Install software for building llm apps, including docker, vscode, anaconda, and a conda environment from requirements.txt, then build a front end to drop text and generate a summary with gpt-3.5.
Build a prediction pipeline that tests the OpenAI LM locally with an API key, then deploy and scale, using LangChain to chunk text and a map-reduce summarize chain.
Test the prediction pipeline with safe API key handling, test texts, and learn abstractive versus extractive summarization, evaluation metrics, and production deployment with AWS Lambda and API Gateway.
Install the AWS CLI to connect your local VS Code app with AWS, pass OpenAI's API key at runtime, and access Secrets Manager using IAM users and keys.
Set up aws secrets manager to inject your openai api key into your application. Create and store the secret, then access it with python, boto3, and prepare for docker integration.
Inject the OpenAI API key from AWS Secrets Manager into your application by securely retrieving, parsing as JSON, and using the secret in the prediction pipeline.
Fetch the API key from AWS Secrets Manager and pass it directly to the prediction pipeline, avoiding printing the secret key on the terminal and using map-reduce style summarization.
Build a simple streamlit front end that collects text input, triggers the prediction pipeline to generate a summary, and displays it in the browser, with AWS and Docker deployment notes.
Test the front end of your llm app by running streamlit, validate the prediction pipeline, generate summaries, and explore deployment options with streamlit cloud, docker, or kubernetes.
Create and configure a dockerfile to build the application inside a container, install dependencies, expose port 8501, and run app.py with streamlit, preparing deployment on AWS ECS and ECR.
Package a Streamlit app in a docker container, create an elastic container registry repository named Lang chain Streamlit, and push the image with aws cli, docker build, tag, and push.
Push and inspect a Docker image in an Amazon ECR repository, discuss its size and effect on inference latency, and cover secrets access via Secrets Manager and IAM roles.
Create an iam role with inline policies to inject the openai api key from secrets manager into a docker container on elastic container service with fargate for scalable deployment.
Deploy a scalable ECS Fargate cluster by creating a task definition, linking Secrets Manager, and configuring the Docker image from ECR with the OpenAI key and port 8501.
Deploy the ECS Fargate task to the cluster, enable public access on port 8501, and verify the running Streamlit app with a runtime OpenAI summary generation.
Explore horizontal scaling versus vertical scaling using a text summarization app deployed on AWS ECS with Docker containers, involving replicas, a load balancer, and autoscaling concepts.
Add an application load balancer and auto scaling to deploy a scalable llm powered app on aws fargate and ecs, configuring health checks, port 8501, and target tracking.
Expose and test a scalable AWS elastic container service deployment on port 8501 with a load balancer, adjust security groups, verify the public IP, and clean up.
Are you ready to dive deep into the world of Machine Learning Engineering and build powerful software applications? Our Machine Learning Engineering course is designed to equip you with the skills and knowledge to harness the full potential of Langchain, integrate the OpenAI API, deploy applications on AWS Elastic Container Service, and efficiently manage scaling using Load Balancers and Auto Scaling Groups.
In this hands-on course, you'll learn how to create robust ML applications from the ground up. We'll start by mastering Langchain, a cutting-edge language model, and demonstrate how to seamlessly inject your OpenAI API key into the prediction pipeline at runtime. You'll gain proficiency in designing and developing ML applications that can understand, process, and generate human-like text.
As you progress, we'll explore the fundamental concepts of Horizontal Scaling and Vertical Scaling, providing a clear understanding of when and how to implement each strategy. You'll then discover how to scale your ML application with ease by deploying Application Load Balancers and Auto Scaling Groups on AWS, ensuring high availability and fault tolerance.
By the end of this course, you'll be well-versed in building ML-driven software applications, deploying them on AWS, and scaling them to meet the demands of your users. Join us on this exciting journey into the world of Machine Learning Engineering and become a skilled practitioner in this rapidly evolving field.