AWS MLOps Slides
AWS MLOps Slides
AWS MLOps Slides
A b o ut t h e c o ur s e
Why this course is different ?
Curated by Industry Experts
We thank you for choosing us!!
Created with the approach to take the practitioner
from Academia to Realtime business use case
• Impacts Made:
• Successfully Led & delivered multiple Data Science Projects from POC to
Production with overall revenue close to 100m$
• Leader on MLOps Approach in my Organization
• Author of 10 Top selling e-learning content on Data Science
• Trained more than 50k learners through Live Bootcamps
• Top Instructor on Data Science with Manifold AI Learning
Share your ML Projects & Your Experimentation by
Tagging us on LinkedIn
Bootcamp for Limited Learners
Link - https://www.manifoldailearning.in/courses/MLOps---LLMOps-AIOps-Bootcamp---A-
Private-Community-65c63808e4b09cf855132de4
We are Excited to see you on our
class!!
Practical MLOps for Data Scientists & DevOps Engineers
What & Why MLOps ?
What is MLOps ?
Data Engineer
Data Scientist
ML Engineer
Business Stakeholder
Data Preparation
Feature Engineering
Model Training
Model Validation
Model Deployment
Monitoring
Why MLOps are the Need Right Now ?
• Building the Models for Personal Project is different than the one
built for Organization
• Take care of Dependencies
• Communication between Multiple Teams
• Managing the Model Risks
• Manage the Infrastructure for Scale
Solution ?
Fundamentals of MLOps
Goal of MLOps on Use Case
MLOps Fundamentals
Environments & Assets in Machine Learning
Projects
Environments
Feature Table : Reading the raw data table and feature tables
and writes to tables in Feature Store.
MLOps – Contd.
Commit the Repo: Update the Dev Branch with updated code
MLOps – Contd.
Commit the Repo: Update the Dev Branch with updated code
Continuous Deployment
• Compliance Checks
• Comparison between Stage Vs Prod
• Deploy Model to Prod
Deployment Strategies
• Data Ingestion
• Accuracy & Data Drift
• Monitor Metrics
• Retrigger Model Training
Retrain of Models
• Scheduled
• Trigger based on Events
WHY DEVOPS IS
NOT SAME AS
MLOPS
• Although DevOps and MLOps are well-
known terms among data and analytics
professionals, many business executives
do not fully grasp the magnitude of the
Machine Learning revolution sweeping
across industries, nor do they understand
the significance of these terms for their
DEVOPS VS organizations in effectively managing ML.
MLOPS • As a result, many organizations struggle
to operationalize their ML efforts because
they mistakenly apply their well-
established DevOps principles to ML
without recognizing the differences and
the role these practices play within a
business strategy.
QUICK RECAP ON
DEVOPS
SAGEMAKER SAGEMAKER
CANVAS STUDIO LAB
AMAZON SAGEMAKER
ML SERVICES Label No-code ML Learn Prepare Store Detect Build with Train Tune Deploy in Explain Manage Manage
data for business ML data features bias notebooks models parameters production predictions & monitor edge devices
analysts CI/CD
Ground Truth Studio Lab Automatic Model Tuning Real-Time & Serverless Inference
Free ML development environment For steady and intermittent traffic patterns
Create high quality datasets for ML Hyperparameter optimization
Autopilot Asynchronous Inference
Data Wrangler Automatically create ML models with full visibility Customization Support For large payloads or long processing times
Aggregate and prepare data for ML Integrate with popular open source frameworks
Batch Transform
Built-in Algorithms and libraries
For offline inference on batches of large datasets
Processing Integrated tabular, NLP, and vision algorithms
Built-in Python, BYO R/Spark Experiments Multi-Model Endpoints
Bring Your Own Track, visualize, and share model artifacts Reduce cost by hosting multiple models per instance
Bring your own container and algorithms across teams
Feature Store Multi-Container Endpoints
Store, catalog, search, and reuse features Reduce cost by hosting multiple containers
JumpStart Managed Spot Training per instance
UI based discovery, training, and deployment of
Clarify Reduce training cost by up to 9 0 %
models, solutions, and examples Shadow Testing
Detect bias and understand model predictions Validate model performance in production
Local Mode Debugger and Profiler
Test and prototype on your local machine Debug and profile training runs Inference Recommender
Automatically select compute instance
and configuration
Distributed Training Libraries
High performance training for large datasets Model Monitor
and models Maintain accuracy of deployed models
4
IMMERSION DAY – GETTING STARTED WITH AMAZON SAGEMAKER
MLOps
How to make the most of the course !!
Key Recommendations
• Testing • Monitor
Testing the application to ensure it meets requirements. Software, System, User Experience & Security are
monitored
Processes Involved in SDLC
Phase 7:
Phase 1: Planning Phase 3: Design Phase 5: Testing Maintenance
Define project scope, Develop a detailed Test the software to Provide ongoing
objectives, and design of the system. ensure it meets support and
timeline. requirements. maintenance for t
software.
Cons of
once a stage is completed.
• C o n s e q u e n t l y, t h e t e s t i n g t e a m n o l o n g e r n e e d s
t o w a i t f o r t h e e n t i r e p a c k a g e t o b e a va i l a b l e
before conducting bug testing.
Software developed using Agile methodology does
not have a fixed endpoint or final version.
DEVOPS MODEL
• Under a DevOps model,
development and operations
teams are no longer “siloed.”
• In some DevOps models, quality
assurance and security teams
may also become more tightly
integrated with development and
operations and throughout the
application lifecycle
• These tools also help engineers
independently accomplish tasks
that normally would have
required help from other teams,
and this further increases a
team’s velocity
HOW DEVOPS
WORKS
Source : AWS
DEVOPS • Continuous
Integration
PRACTICES
• Continuous Delivery
• Microservices
• Infrastructure as
Code
• Monitoring and
Logging
• Communication and
Collaboration
Source : AWS
• Continuous integration is a
software development practice
where developers regularly
merge their code changes into a
central repository, after which
automated builds and tests are
run
• The key goals of continuous
integration are to find and
address bugs quicker, improve
software quality, and reduce the
time it takes to validate and
release new software updates
CONTINUOUS
INTEGRATION
Source : AWS
• Continuous delivery is a
software development practice
where code changes are
automatically built, tested, and
prepared for a release to
production
• It expands upon continuous
integration by deploying all code
changes to a testing
environment and/or a production
environment after the build stage
• When continuous delivery is
implemented properly,
developers will always have a
deployment-ready build artifact
DELIVERY
Source : AWS
• The microservices architecture
is a design approach to build a
single application as a set of
small services
• Each service runs in its own
process and communicates with
other services through a well-
defined interface using a
lightweight mechanism, typically
an HTTP-based application
programming interface
• Microservices are built around
business capabilities; each
service is scoped to a single
purpose
MICROSERVICES
Source : AWS
• Infrastructure as code is a practice in which
infrastructure is provisioned and managed using
code and software development techniques, such
as version control and continuous integration
• The cloud’s API-driven model enables developers
and system administrators to interact with
infrastructure programmatically, and at scale,
instead of needing to manually set up and
configure resources
• Thus, engineers can interface with infrastructure
using code-based tools and treat infrastructure in
a manner similar to how they treat application
code
INFRASTRUCTURE
AS CODE
Source : AWS
• Developers and system administrators use
code to automate operating system and
host configuration, operational tasks, and
more
• It frees developers and systems
administrators from manually configuring
operating systems, system applications, or
server software
CONFIGURATION
MANAGEMENT
Source : AWS
• With infrastructure and its configuration
codified with the cloud, organizations can
monitor and enforce compliance
dynamically and at scale
• This makes it easier for organizations to
govern changes over resources and
ensure that security measures are
properly enforced in a distributed manner
• This allows teams within an organization
to move at higher velocity since non-
compliant resources can be automatically
flagged for further investigation or even
automatically brought back into
POLICY AS CODE compliance
Source : AWS
• Organizations monitor metrics and logs to see
how application and infrastructure performance
impacts the experience of their product’s end user
• By capturing, categorizing, and then analyzing data
and logs generated by applications and
infrastructure, organizations understand how
changes or updates impact users, shedding
insights into the root causes of problems or
unexpected changes
• Active monitoring becomes increasingly important
as services must be available 24/7 and as
application and infrastructure update frequency
increases
MONITORING
AND LOGGING
Source : AWS
• Increased communication and
collaboration in an organization
is one of the key cultural aspects
of DevOps
• The use of DevOps tooling and
automation of the software
delivery process establishes
collaboration by physically
bringing together the workflows
and responsibilities of
development and operations
• AWS provides a set of flexible
services designed to enable
COMMUNICATION companies to more rapidly and
reliably build and deliver
COLLABORATION
Source : AWS
AWS TOOLS FOR DEVOPS
Source : AWS
NEXT VIDEO
14
IMMERSION DAY – GETTING STARTED WITH AMAZON SAGEMAKER
S3 Storage Class
MANIFOLD AI LEARNING®
What is S3
Bucket? Amazon Simple Storage Service is a storage
service that can be maintained and
accessed over the Internet
Using the web service, we can store and
retrieve an unlimited amount of data
MANIFOLD AI LEARNING®
AWS S3 Bucket
Benefits 99.99% durability
Multiple copies are maintained to enable the restoring the data in case of
data corruption
MANIFOLD AI LEARNING®
Amazon S3
Storage Classes
Amazon S3 offers a wide range of storage classes for
various use cases
MANIFOLD AI LEARNING®
Types of S3 Bucket
Storage Classes
S3 Standard
S3 Standard-IA
S3 Intelligent-Tiering
S3 One Zone-IA
S3 Glacier
S3 Glacier Deep Archive
S3 Outposts
MANIFOLD AI LEARNING®
S3 Standard
High Availability and low latency
MANIFOLD AI LEARNING®
S3 Intelligent-
Tiering Low latency and high throughput performance
MANIFOLD AI LEARNING®
S3 One Zone-IA
MANIFOLD AI LEARNING®
S3 Glacier
MANIFOLD AI LEARNING®
S3 Glacier Deep Archive
The durability of
Lowest cost storage option 99.999999999% and
in S3 availability of 99.9%
availability over a given year
MANIFOLD AI LEARNING®
S3 Outposts
MANIFOLD AI LEARNING®
S3 Standard-IA
S3 Standard-Infrequent Access is optimized for
long-lived and less frequently accessed data but
requires rapid access whenever required
MANIFOLD AI LEARNING®
Next Video
S3 BUCKET HANDS ON
MANIFOLD AI LEARNING®
IMMERSION DAY – GETTING STARTED WITH AMAZON SAGEMAKER
Basics of Linux
IMMERSION DAY – GETTING STARTED WITH AMAZON SAGEMAKER
Basics of Linux
DevOps & Data Scientists
Agenda
What is Linux
Components of Linux
Why Linux ?
Linux Distro
Bash in Linux
Stability and reliability: Linux is known for its stability and reliability.
Security: Linux has a strong focus on security. Due to its open-source nature,
security vulnerabilities can be quickly identified and fixed by the community.
Why use Linux? (Contd.)
Flexibility and customization: Users have the freedom to choose from various desktop
environments, customize their system's appearance, and configure it to their preferences.
Community and support: Linux has a large and vibrant community of users and developers
worldwide.
Why use Linux? (Contd)
Cost-effective: Linux is
often considered a cost-
effective option
compared to proprietary
operating systems like
Windows or macOS.
What is a “distribution?”
APT
YUM
DNF
Pacman
Zypper
VERSION
CONTROL SYSTEM
GIT
ENVIRONMENTS FOR APPLICATION
V1 V1 V1 V1
V2 V2 V2 V2
ISSUES…..WITH V2
ROLLBACK ????
WITHOUT VERSION CONTROL SYSTEM
vOnce Saved, All the changes are permanent and can’t revert.
vNo tracking of information
vRelease Failures – need to redo
vDowntime of Application
WITH VCS
Solution :
Centralized VCS
CENTRALIZED VCS
Ø In CVC, A Central Repo is maintained where all the versioned files are kept.
Ø Developers can checkout and check-in changes from their own computers.
CHALLENGES!!
Solution:
Distributed Version Control
DISTRIBUTED VCS
q Version database (CODE) is stored
on every Developer’s local system
and remote server
q Highly Available
GIT
Git is a mature, actively maintained
open-source project originally
developed in 2005 by Linus Torvalds,
the famous creator of the Linux
operating system kernel.
https://git-scm.com/downloads
Docker Tutorial
Introduction to
Docker
• Docker is an open-source containerization platform that allows you to package
applications and their dependencies into lightweight, portable containers
• Containerization technology enables applications to run consistently across different
environments, from development to production, without worrying about
differences in operating systems or dependencies
• Docker provides an efficient and scalable solution for deploying and managing
applications, making it a popular choice among developers and DevOps teams
Introduction to
Docker
• Some key benefits of Docker include
• Efficiency: Docker containers are lightweight and share the host operating system, reducing resource usage and enabling
faster deployment times
• Consistency: Containers encapsulate the application and its dependencies, ensuring consistent behavior across different
environments
• Isolation: Each container operates in its own isolated environment, providing security and preventing conflicts between
applications
• Docker has gained widespread adoption in the industry and has a vibrant ecosystem with a large community of contributors and
ready-to-use images
Places where Docker
can be Used ?
• Application Deployment: Docker is commonly used to package and deploy applications
• Microservices Architecture: Docker is well-suited for building and deploying microservices-based
architectures
• Continuous Integration and Continuous Deployment : Docker plays a crucial role in CI/CD pipelines
• Development Environments: Docker provides a consistent and reproducible environment for
developers
• Scalable Infrastructure: Docker can be used to build and manage scalable infrastructure
• Testing and QA: Docker simplifies the process of testing applications across different environments
What is Containerization
Technology
• Docker CLI provides a wide range of commands to build, run, manage, and troubleshoot containers effectively
• docker run
• Creates and runs a new container from an image
• Example: docker run -d --name my-container my-image
• docker ps
• Lists running containers
• Example: docker ps
Stops, starts, or restarts a
container
docker stop/start/restart Example: docker stop my-
container
Docker CLI
for docker rm
Removes one or more
containers
Containers
Displays the logs of a container
docker logs Example: docker logs my-
container
Docker CLI for
Managing Containers
• docker exec
• Runs a command inside a running container
• Example: docker exec -it my-container bash
• docker inspect
• Provides detailed information about a container
• Example: docker inspect my-container
• docker cp
• Copies files/folders between the container and the host
• Example: docker cp my-container:/path/to/file /host/path
Docker CLI for
Managing Containers
• docker stats
• Displays real-time resource usage statistics of running containers
• Example: docker stats my-container
Images Stored
in the Docker
Registry
Containers
Isolated
from Each
Other
Working
with Docker
• Certainly!
• Here's an example slide on the topic "Working
with Docker": Slide X: Working with Docker
Building Docker
Images
• Building Docker images enables developers to package their applications
along with their dependencies, ensuring consistent and reproducible
environments for deployment
• Feel free to customize the slide content and design as per your
presentation style and requirements
Running Docker
Containers
• Let's consider a simple example where we want to containerize a web
application using Docker
• # Expose port 80 for web traffic # Start the nginx server This command
builds the Docker image and tags it with the name 'my-web-app'
• This command creates a container from the 'my-web-app' image, runs it in
detached mode , and maps port 8080 of the host machine to port 80 of
the container
IMMERSION DAY – GETTING STARTED WITH AMAZON SAGEMAKER
SageMaker infrastructure
fundamentals
SageMaker
Infrastructure, tools,
visual interfaces,
workflows, orchestration,
and collaboration
ML
engineers
Deploy and manage
models at scale
with Amazon
SageMaker MLOps
https://docs.aws.amazon.com/sagemaker/latest/dg/whatis-features-
alpha.html