Introduction to Hugging Face

Working with Hugging Face

Jacob H. Marquez

Lead Data Engineer

What is Hugging Face?

Hugging Face logo

 

  • Collaboration platform for ML and AI
  • Central hub with 1M+ models and datasets
  • Supports text, vision, and audio tasks
  • Makes advanced AI accessible to all
1 https://huggingface.co/
Working with Hugging Face

Course overview

 

  • Designed for Developers, Data Scientists, and ML Practitioners
  • Master Hugging Face Hub, models, and datasets
  • Build real-world AI pipelines

Tiny Male and Female Characters Reading and Working on Laptop Sitting on Huge Books Pile.jpg

Working with Hugging Face

Large Language Models

 

 

  • Powerful tools for human-like text generation
  • Trained on massive datasets
  • Popular options are GPT and Llama

OpenAI ChatGPT Logo

 

Meta AI LLaMa

Working with Hugging Face

Benefits of Hugging Face

Access to models

  • Faster workflows
Working with Hugging Face

Benefits of Hugging Face

Frameworks

  • Faster workflows
  • Complete ecosystem to simplify workflows
Working with Hugging Face

Benefits of Hugging Face

Documentation

  • Faster workflows
  • Complete ecosystem to simplify workflows
  • Community support
Working with Hugging Face

Discovering Models on Hugging Face Hub

 

  • Explore models via website

 

 

 

 

  • Access models using the API

Hugging Face Hub

API

Working with Hugging Face

Exploring Models Programmatically

pip install huggingface_hub
from huggingface_hub import HfApi


api = HfApi()
models = list(api.list_models(limit=3)) print(models)
[ModelInfo(id='Datou1111/shou_xin', author=None, ...),
 ModelInfo(id='Qwen/QwQ-32B-Preview', author=None, ...),
 ModelInfo(id='OpenGVLab/InternVL2_5-78B', author=None, ...)]
1 https://github.com/huggingface/huggingface_hub
Working with Hugging Face

Let's practice!

Working with Hugging Face

Preparing Video For Download...