Learn best practices specific to prompting Llama 2 & 3 models.
Prompt Engineering with Llama 2&3
Instructor: Amit Sangani
Earn an accomplishment with PRO

- Beginner
- 1 hour 53 mins
- 10 Video Lessons
- 7 Code Examples
- 1 Graded Assignment PRO
- Earn an accomplishment with PRO
- Instructor: Amit Sangani
Meta- Learn more aboutMembership PRO Plan
What you'll learn
Interact with Meta Llama 2 Chat, Code Llama, and Llama Guard models.
See how you can build safe, responsible AI applications using the Llama Guard model.
About this course
Open up your prompt engineering to the Llama 2 & 3 collection of models! Learn best practices for prompting and building applications with these powerful open commercial license models.
Interact with the Llama 2 and Llama 3 models with a simple API call, and explore the differences in output between models for a variety of tasks.
What you’ll do:
- Learn best practices for prompting and selecting among the Llama 2 & 3 models by using them as a personal assistant to help you complete day-to-day tasks.
- Experiment with advanced prompt engineering techniques, like few-shot prompting to get Llama 2 to classify the sentiment of text messages, and chain-of-thought prompting to solve logic problems.
- Treat Code Llama as a pair programming partner to both learn to write and improve code.
- Promote safe and responsible use of LLMs by having Llama Guard check user prompts and model responses for harmful content.
Llama 2 and Llama 3 models and model weights are free to download, including quantized model versions that can run on your local machine. Join a thriving community of open source developers that is building applications powered by Llama 2 and Llama 3.
Who should join?
Anyone who is interested in learning prompt engineering and wants to try out Meta Llama 2 and Llama 3 models.
Course Outline
10 Lessons・7 Code Examples- IntroductionVideo・4 mins
- Overview of Llama ModelsVideo・4 mins
- Getting Started with Llama 2 & 3Video with Code Example・16 mins
- Multi-turn ConversationsVideo with Code Example・11 mins
- Prompt Engineering TechniquesVideo with Code Example・22 mins
- Comparing Different Llama 2 & 3 modelsVideo with Code Example・16 mins
- Code LlamaVideo with Code Example・17 mins
- Llama GuardVideo with Code Example・15 mins
- Walkthrough of Llama Helper FunctionVideo with Code Example・3 mins
- ConclusionVideo・2 mins
- Quiz
Graded・Quiz
・10 mins

Elevate your learning experience with Pro
Upgrade to Pro and gain unlimited accomplishments on your resume
Instructor
Course access is free for a limited time during the DeepLearning.AI learning platform beta!
Want to learn more about Generative AI?
Keep learning with updates on curated AI news, courses, and events, as well as Andrew’s thoughts from DeepLearning.AI!

