Skip to Content
Hugging Face for MLOps
on-demand course

Hugging Face for MLOps

with Alfredo Deza
August 2023
Intermediate
2h 56m
English
Pragmatic AI Labs

Overview

Hugging Face for MLOps

Learn how to leverage Hugging Face and its powerful machine learning capabilities. Build, train, and deploy your own models using the Hugging Face platform and libraries.

In this course you'll get hands-on with Hugging Face and learn how to:

  • Access and use pre-trained models from the Hub
  • Fine-tune models with your own data
  • Build machine learning pipelines with Hugging Face Transformers
  • Add and version your own datasets
  • Containerize and deploy Hugging Face models
  • Automate workflows with GitHub Actions

By the end, you'll have practical experience building, training, and deploying Hugging Face models, including production deployment to the Azure cloud.

Learning objectives

  • Find and use pre-trained models
  • Fine-tune models for custom tasks
  • Build ML pipelines with Hugging Face libraries
  • Create and version datasets
  • Containerize models for production
  • Automate workflows for MLOps

Lesson 1: Getting Started with Hugging Face

Lesson Outline

  • Overview of Hugging Face Hub
  • Browsing models and datasets
  • Using Hugging Face repositories
  • Managing spaces and access

Lesson 2: Applying Hugging Face Models

Lesson Outline

  • Downloading models from the Hub
  • Using models with PyTorch/TensorFlow
  • Leveraging tokenizers and pipelines
  • Performing inference with Hub models

Lesson 3: Working with Datasets

Lesson Outline

  • Browsing datasets on Hugging Face
  • Uploading and managing datasets
  • Versioning datasets with dataset cards
  • Loading datasets in PyTorch/TensorFlow

Lesson 4: Model Serving and Deployment

Lesson Outline

  • Containerizing Hugging Face models
  • Creating inference APIs with FastAPI
  • Deploying to cloud services like Azure
  • Automating with GitHub Actions

About your instructor

Alfredo Deza has over a decade of experience as a Software Engineer doing DevOps, automation, and scalable system architecture. Before getting into technology he participated in the 2004 Olympic Games and was the first-ever World Champion in High Jump representing Peru. He currently works in Developer Relations at Microsoft and is an Adjunct Professor at Duke University. This solid background in technology and teaching, including his experience teaching and authoring content about LOps will give you everything you need to get started applying these powerful concepts.

Resources

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.

Watch 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

Applied Hugging Face

Applied Hugging Face

Alfredo Deza, Noah Gift

Publisher Resources

ISBN: 28189144VIDEOPAIML