Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Machine Learning Engineering on AWS
  • Table Of Contents Toc
Machine Learning Engineering on AWS

Machine Learning Engineering on AWS - Second Edition

By : Joshua Arvin Lat
close
close
Machine Learning Engineering on AWS

Machine Learning Engineering on AWS

By: Joshua Arvin Lat

Overview of this book

Recent advancements in generative AI, large language models (LLMs), Retrieval-Augmented Generation (RAG), and AI agents have created a soaring demand for machine learning engineers who can build, manage, and scale modern AI-powered systems. To stay ahead in this rapidly evolving AI landscape, you need a deep theoretical understanding as well as hands-on expertise with the right tools, services, and platforms. Machine Learning Engineering on AWS is a practical guide that teaches you how to harness AWS services such as Amazon Bedrock and the next generation of Amazon SageMaker to build, optimize, and manage production-ready ML systems. You’ll learn how to build RAG-powered GenAI applications, automate LLMOps workflows, develop reliable and responsible AI agents, and optimize a managed transactional data lake. The book also covers proven deployment and evaluation strategies for dealing with various models, along with practical examples to help you manage, troubleshoot, and optimize ML systems running on AWS. Guided by AWS Machine Learning Hero Joshua Arvin Lat, you’ll be able to grasp complex ML concepts with clarity and gain the confidence to operationalize and secure GenAI applications on AWS to meet a wide variety of ML engineering requirements.
Table of Contents (9 chapters)
close
close
Lock Free Chapter
1
Machine Learning Engineering on AWS, Second Edition: Operationalize and optimize generative AI systems and LLMOps pipelines in production

Optimizing a SageMaker Processing script

In this section, we will upgrade the backtranslator.py script and have it run faster. We will compare how fast the SageMaker Processing job completes using the original script versus when using the optimized script. After that, we will use the vimdiff command line utility to compare and contrast the implementation differences of the two scripts. Let’s go through the steps:

  1. Download the backtranslator_optimized.py file:

    DIR_PATH=https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-on-AWS-Second-Edition/refs/heads/main/chapter06
    SCRIPT=$DIR_PATH/backtranslator_optimized.py
    wget $SCRIPT -O scripts/backtranslator_optimized.py
  2. Copy all the lines from input_tagalog_250.csv into input.csv:

    cp input/input_tagalog_250.csv input/input.csv

    This should give you an input file with 250 lines.

  3. Download the run_backtranslator_processing_job.py script:

    ...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Machine Learning Engineering on AWS
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon