Getting Started with Hugging Face Transformers

External: Coursera Courses ↗ · Coursera

Open Course on External: Coursera

Free to audit · Opens on External: Coursera

Getting Started with Hugging Face Transformers

Coursera · Beginner ·🧠 Large Language Models ·2d ago
By the end of this course, you will be able to: • Explain the role of models, datasets, and Spaces in the HF ecosystem and use the pipeline API to run inference across text, vision, and audio tasks. • Tokenize and encode text inputs using AutoTokenizer, handle padding and truncation, and apply chat templates for LLM-compatible formatting. • Load pre-trained models using the appropriate AutoModel class, inspect model configuration, run manual inference, and load models in reduced precision with device_map="auto". • Evaluate model cards to assess intended use, limitations, bias disclosures, and license compatibility before recommending a model for deployment. Go from zero to confident model evaluation in four hours. All you need is basic Python — no machine learning or Hugging Face experience required. The course opens with a realistic challenge: your VP needs an AI feasibility assessment by Thursday, and the Hugging Face Hub has over 2 million models to choose from. You'll build a systematic approach to navigating that ecosystem, using filters, model cards, and task categories to find the right model instead of guessing. Run inference across text, vision, and audio tasks with the pipeline API, then go deeper: learn how tokenizers convert raw text into the numerical inputs models actually process, debug why a classifier fails silently on long messages, and discover how chat templates turn a language model into a conversation partner. Load models manually with AutoModel classes, inspect their configuration, and manage memory with reduced precision. The course closes with a hands-on model selection challenge: three candidate models, one task, and you have to decide which one ships — backed by model card evidence, not gut instinct.
Watch on External: Coursera ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related AI Lessons

The 80/20 Rule of AI Code: Why Production Takes 80% of Your Time
Learn why 80% of AI code development time is spent on production and how to tackle hidden costs like edge cases and error handling
Dev.to · Abdul Rehman
My Artificial Intelligence Internship Journey at CodeAlpha
Learn from an intern's journey at CodeAlpha, where they gained hands-on experience with AI technologies and projects, and discover how to apply similar skills in your own career
Medium · Machine Learning
Principios de Diseño de Prompts — Parte 1 de 4: Trazando las líneas y Los antagonistas
Aprende a diseñar prompts efectivos para LLMs en una serie de 4 partes
Medium · LLM
Scanning LLMs with NVIDIA Garak — The Big Rollback #05
Learn how to scan LLMs with NVIDIA Garak to test their security under attack
Medium · LLM
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →