Skip to Content
Use Llama-2 Models with Amazon SageMaker
shortcut

Use Llama-2 Models with Amazon SageMaker

by Federico Castanedo
October 2023
Beginner
5 pages
6m
English
O'Reilly Media, Inc.
Content preview from Use Llama-2 Models with Amazon SageMaker

Use Llama-2 Models with Amazon SageMaker

Llama-2 models are available through Amazon SageMaker JumpStart and will be also available soon on Amazon Bedrock. Amazon Bedrock is a fully managed service that makes large language models (LLMs) available through an API so you can choose the model that’s best suited for your application.

On the other hand, Amazon SageMaker JumpStart is a machine learning hub that can help to accelerate your machine learning journey. Through JumpStart, you can access LLMs but also built-in algorithms for different use cases and prebuilt solution templates. Available models and solutions can be customized and deployed into dedicated AWS instances.

Since SageMaker provisions infrastructure on your behalf, it gives you more flexibility than Bedrock but involves more environment setup and charges you for endpoints when they are running. Bedrock is focused on offering an API-driven and serverless experience where you are only charged for what you use.

In this Shortcut, we will focus on Llama-2 models using SageMaker. At the time of writing, Llama-2 models are available in the following AWS regions: us-east-1 (fine-tunable), us-east-2 (inference only), us-west-2 (fine-tunable), eu-west-1 (fine-tunable), and ap-southeast-1 (inference only).

Please ensure you have a SageMaker Domain ready to use for this Shortcut.

Once you log into your Amazon SageMaker console, you will see a JumpStart menu on ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Run Llama-2 Models Locally with llama.cpp

Run Llama-2 Models Locally with llama.cpp

Federico Castanedo
Run Llama-2 Models

Run Llama-2 Models

Federico Castanedo

Publisher Resources

ISBN: 9781098163235