Associate Professor of Information
Your browser is ancient!
Upgrade to a different browser to experience this site.
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.
This course does not require a data science or statistics background. It is developed specifically for Python application developers who are interested in integrating generative AI, such as Llama 2, into their work.
Welcome to Llama for Python Programmers, a course designed for software developers eager to explore and harness the capabilities of Llama 2, an open-access Large Language Model (LLM). This course guides Python programmers in integrating Llama 2 into projects, from tokenization to advanced application development. Through practical labs and programming assignments, you will gain hands-on experience building Llama 2 applications.
This abbreviated syllabus description was created with the help of AI tools and reviewed by staff. The full syllabus is available to those who enroll in the course.
Module 1: Introduction to Llama 2: A High Quality Open Source Large Language Model
Module 2: Under the Hood with Llama 2 and Python: Understanding How it Works
Module 3: Building a Llama 2 Application
Learners must achieve an overall grade of 80% to complete the course and receive the certificate. The course grade is based on three quizzes, worth 20% each, and a required programming assignment worth 40%.
Associate Professor of Information
Course content developed by U-M faculty and managed by the university. Faculty titles and affiliations are updated periodically.
Intermediate Level
Learners interested in the course should have a fundamental understanding of Python programming.
Llama 2 is interesting not just because of its high quality, but also because it has been made freely available to the world by its creator Meta. Meta even calls it an open source language model, and you can download the model. And use it directly on your own hardware …
Christopher Brooks Associate Professor of Information, University of Michigan School of Information