Llama for Python Programmers is designed for programmers who want to leverage the Llama 2 large language model (LLM) and take advantage of the generative artificial intelligence (AI) revolution. In this course, you’ll learn how open-source LLMs can run on self-hosted hardware, made possible through techniques such as quantization by using the llama.cpp package. You’ll explore how Meta’s Llama 2 fits into the larger AI ecosystem, and how you can use it to develop Python-based LLM applications. Get hands-on skills using methods such as few-shot prompting and grammars to improve and constrain Llama 2 output, allowing you to get more robust data interchanges between Python application code and LLM inference. Lastly, gain insight into the different Llama 2 model variants, how they were trained, and how to interact with these models in Python.


您将学到什么
Understand how to use llama.cpp Python APIs to build Llama 2-based large language model (LLM)applications.
Learn to run and interact with the Llama 2 large language model on commodity local hardware.
Learn to utilize zero- and few-shot prompting as well as advanced methods like grammars in llama.cpp to enhance and constrain Llama 2 model output.
Learn about the different Llama 2 model variants: the base model, chat model, and code llama and how to interact with these models in Python.
您将获得的技能
要了解的详细信息

添加到您的领英档案
3 项作业
了解顶级公司的员工如何掌握热门技能

该课程共有3个模块
This module introduces you to Llama 2, highlighting its architecture, training method, and capabilities as a high-quality open-source LLM. This foundational segment prepares you for hands-on learning in the following modules.
涵盖的内容
6个视频4篇阅读材料1个作业1个讨论话题1个非评分实验室
This module unravels Llama 2's intricacies within Python, guiding you through tokenization, the development of Llama 2 applications via llama.cpp, and parameter adjustments for improved interactions.
涵盖的内容
4个视频1篇阅读材料1个作业1个非评分实验室
This module begins with a demonstration of zero and few-shot prompting techniques, then moves on to controlling model output for tailored responses. It culminates in practical programming assignments, enabling you to apply your knowledge and showcase your skills in crafting refined Llama 2 applications.
涵盖的内容
4个视频4篇阅读材料1个作业1个编程作业2个非评分实验室1个插件
位教师

从 Software Development 浏览更多内容
状态:免费试用
状态:预览Duke University

Duke University
人们为什么选择 Coursera 来帮助自己实现职业发展




学生评论
19 条评论
- 5 stars
73.68%
- 4 stars
26.31%
- 3 stars
0%
- 2 stars
0%
- 1 star
0%
显示 3/19 个
已于 Feb 26, 2025审阅
Overall good course. The assignment is finicky due to the model used but overall great intro to llama.
已于 Jun 13, 2024审阅
Very good course to practice the prompting engineering
常见问题
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
When you purchase a Certificate you get access to all course materials, including graded assignments. Upon completing the course, your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.
更多问题
提供助学金,




