EdX

Beginning Llamafile (edX)

Beginning Llamafile (edX)

Learn to serve powerful language models as practical, scalable web APIs using the llama.cpp server. Keep your data private and avoid cloud latency and fees.

Class Deals by MOOC List - Click here and see EdX's Active Discounts, Deals, and Promo Codes.

In this course, you will:

  • Gain the skills to expose large language models through REST API endpoints
  • Learn how to configure the llama.cpp server to customize model behavior
  • Understand how to efficiently handle requests and integrate language model capabilities into applications
  • Reinforce concepts through hands-on exercises and code examples using tools like curl and Python
  • Be equipped to deploy robust language model APIs for various NLP tasks

The course empowers you to harness state-of-the-art NLP models in your projects through a convenient and performant API interface, focusing on the practical aspects of serving large language models in production environments using the efficient and flexible llama.cpp framework.
This course is part of the Generative AI Fundamentals Professional Certificate.

What you'll learn

  • Installing and using the Cosmopolitan Libc toolkit
  • Running language models locally with llamafile
  • Understanding the Mixtral model license and llamafile packaging
  • Developing portable command-line interfaces with Cosmopolitan
  • Interacting with the llamafile API for NLP tasks

Syllabus

Module 1: Getting Started with Mozilla Llamafile (2 hours)

  • Video: Meet your instructor: Alfredo Deza (1 minute) [Preview module]
  • Reading: Meet your instructor: Noah Gift (1 minute)
  • Reading: Connect with your instructors (1 minute)
  • Reading: Course structure and etiquette (1 minute)
  • Reading: Key Terms (5 minutes)
  • Reading: What is Llamafile? (5 minutes)
  • Video: Llamafile overview by Mozilla (5 minutes)
  • Video: Using the Llamafile API (2 minutes)
  • Video: Creating a Llamafile (5 minutes)
  • Reading: Cosmopolitan (5 minutes)
  • Video: Building portable binaries with Cosmopolitan (4 minutes)
  • Video: Building a phrase generator with cosmopolitan (3 minutes)
  • Reading: Lesson Reflection (5 minutes)
  • Assignment: Quiz-Key Components of Llamafile (10 minutes)
  • Reading: Key Terms (1 minute)
  • Reading: Bash Phrase Generator (5 minutes)
  • Ungraded Lab: Cosmopolitan (10 minutes)
  • Reading: Lesson Reflection (5 minutes)
  • Assignment: Quiz-Portable CLI with Cosmopolitan (10 minutes)
  • Reading: Key Terms (5 minutes)
  • Reading: What are LLMs? (5 minutes)
  • Video: Getting Started with Llamafile (3 minutes)
  • Video: Llamafile local system metrics (3 minutes)
  • Ungraded Lab: Portable CLI (10 minutes)
  • Reading: Lesson Reflection (5 minutes)
  • Assignment: Quiz-Running Llamafile (10 minutes)
  • Reading: Key Terms (1 minute)
  • Reading: Llamafile server (5 minutes)
  • Ungraded Lab: Local Llamafile API (10 minutes)
  • Reading: Course Conclusion (5 minutes)
  • Reading: Next Steps (1 minute)
  • Assignment: Final Quiz-Llamafile (10 minutes)
  • Discussion Prompt: Meet and Greet (optional) (1 minute)
Go to Class
MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Related Courses

Computer Graphics (edX) EdX
University of California, San Diego,UC San DiegoX

Computer Graphics (edX)

Learn to create images of 3D scenes in both real-time and with realistic raytracing in this introductory computer graphics course. Today, computer graphics is a central part of our lives, in movies, games, computer-aided design, virtual simulators, visualization and even imaging products and cameras.

Self Paced
Self-Paced
CS50's Introduction to Computer Science (edX) EdX
HarvardX,Harvard University

CS50's Introduction to Computer Science (edX)

An introduction to the intellectual enterprises of computer science and the art of programming. This is CS50, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for majors and non-majors alike, with or without prior programming experience. An entry-level course taught by David J. Malan, CS50 teaches students how to think algorithmically and solve problems efficiently.

Self Paced
Self-Paced
Introduction to the Internet of Things (edX) EdX
Universitat Politècnica de València,UPValenciaX

Introduction to the Internet of Things (edX)

This is a preliminary course in which we deal with the basics of electronics and programming using Arduino and ESP boards. Internet of Things (IoT) is the present and the future of technology. Either, if you have none, few or some experience with electronics and you want to develop it projects this course will give you the necessary kick start to start creating amazing devices capable of sensing, controlling physical signals.

Self Paced
Self-Paced
Buscar en Internet (edX) EdX
Universitat Politècnica de València,UPValenciaX

Buscar en Internet (edX)

Aprenderás a planificar una búsqueda desde el comienzo y a utilizar las herramientas que Internet te ofrece para encontrar lo que buscas. En un mundo virtual en el que hay cientos de millones de páginas disponibles con informacion de todo tipo, buscar en Internet de forma eficaz es una habilidad cada día más necesaria. Aprende con nosotros a separar el grano de la paja usando las herramientas disponibles y realizando las preguntas de forma adecuada.

Self Paced
Self-Paced
Introducción al desarrollo de aplicaciones web (edX) EdX
Universidad Autonoma de Madrid

Introducción al desarrollo de aplicaciones web (edX)

Aprende a desarrollar una aplicación web desde cero con diferentes tecnologías como HTML, CSS, Python, JSON, JavaScript y Ajax. Hoy en día utilizamos la web para todo tipo de tareas: buscar un vuelo, comprar entradas, ver el pronóstico meteorológico, leer noticias, etc. Todo esto es posible gracias a las aplicaciones web creadas para darnos estos servicios.

Self Paced
Self-Paced
Model-Based Automotive Systems Engineering (edX) EdX
Chalmers University of Technology,ChalmersX

Model-Based Automotive Systems Engineering (edX)

Learn how to model and simulate system dynamics in automotive engineering. Modeling, control design, and simulation are important tools supporting engineers in the development of automotive systems, from the early study of system concepts (when the system possibly does not exist yet) to optimization of system performance. This course provides a theoretical basis to model-based control design with the focus on systematically develop mathematical models from basic physical laws and to use them in control design process with specific focus on automotive applications.

Self Paced
Self-Paced