LLM Fine-Tuning with Hugging Face: LoRA, QLoRA, PEFT
Fine-tune BERT, T5, ViT, LLaMA-style models and Qwen3-TTS using Hugging Face Transformers, custom datasets, LoRA, QLoRA
Lo que serás capaz de hacer
Welcome to Fine Tuning LLM with Hugging Face Transformers for NLP , a practical and project-based course designed to help you understand and fine-tune modern Transformer models for real-world AI applications. This course starts from the basics of Hugging Face Transformers and gradually takes you into advanced fine-tuning workflows. You will learn how pipelines work, how checkpoints and models are used, how Hugging Face datasets are loaded, and how Auto Classes simplify model loading, tokenization, training, and inference. After building a strong foundation, you will go deeper into Transformer architecture. You will understand Seq2Seq models, attention mechanism, Q, K, V vectors , scaled dot-product attention, encoder-decoder stacks, positional encoding, self-attention, masked self-attention, cross-attention, and multi-head attention. The course also covers BERT architecture in detail. You will learn how BERT processes input, how masked language modeling and next sentence prediction work, and how BERT is fine-tuned for downstream NLP tasks. Then you will move into hands-on projects where you will fine-tune Transformer models for practical use cases such as sentiment classification, fake news detection, named entity recognition, text summarization, and image classification using Vision Transformers. You will also learn knowledge distillation concepts using DistilBERT, MobileBERT, and TinyBERT. This will help you understand how smaller and faster Transformer models are created for real-world production use cases. In the advanced sections, you will learn how to fine-tune LLMs on custom datasets using PEFT, LoRA, QLoRA , and 4-bit quantization. You will fine-tune models like Phi and LLaMA-style models for custom text generation and instruction/chat-based tasks. The course also includes modern Audio LLM content using Qwen3-TTS . You will learn Qwen3-TTS architecture, voice cloning, emotion control, audio data preparation, Whisper-based transcription, supervised fine-tuning, and uploading your fine-tuned audio model to Hugging Face. By the end of this course, you will have a strong practical understanding of Hugging Face Transformers and LLM fine-tuning across NLP, vision, and audio use cases. What You Will Learn Understand Hugging Face Transformers from basic to advanced level Use Hugging Face pipelines for NLP, vision, and audio tasks Understand Transformer architecture, attention, encoder, decoder, and positional encoding Learn BERT architecture, MLM, NSP, and BERT fine-tuning workflow Fine-tune BERT for multi-class sentiment classification Build and deploy a Streamlit app using a fine-tuned model Understand knowledge distillation with DistilBERT, MobileBERT, and TinyBERT Fine-tune lightweight Transformer models for fake news detection Fine-tune DistilBERT for Named Entity Recognition Fine-tune T5 for custom text summarization Fine-tune Vision Transformer for Indian food image classification Understand PEFT, LoRA, QLoRA, and 4-bit quantization Fine-tune LLMs on custom datasets Fine-tune a LLaMA base model into a chat/instruction model Understand Qwen3-TTS architecture and voice cloning Fine-tune Qwen3-TTS on custom audio data Upload fine-tuned models to Hugging Face
- Understand Hugging Face Transformers and how Transformer models power modern NLP and Generative AI applications.
- Use Hugging Face pipelines, checkpoints, datasets, tokenizers, Auto Classes, and Spaces for practical AI projects.
- Learn Transformer architecture including attention, QKV vectors, encoder-decoder blocks, and positional encoding.
- Fine-tune transformers for text classification, question answering, natural language inference, text summarization, and machine translation.
- Understand BERT architecture, masked language modeling, next sentence prediction, and BERT fine-tuning.
- Fine-tune BERT for multi-class sentiment classification and build a Streamlit app for real-time prediction.
Temario
UNIDAD 1 - Introduction · 9 leccionesUNIDAD 1 - Introduction
UNIDAD 1 - Introduction
- Course Introduction
- Course Roadmap
- About Me
- Keys to Success
- Course Resources and Udemy Player Settings
- Udemy Rating and Course Certificate
- Download Course Code File
- Setup Free GPU - Install Requirements.txt
- Setup Project for Fine Tuning on Local GPU
UNIDAD 2 - Hello Transformers · 25 leccionesUNIDAD 2 - Hello Transformers
UNIDAD 2 - Hello Transformers
- Sneak Peek
- Introduction to Hugging Face
- Hugging Face Models Explained
- Hugging Face Models Deep Dive
- Hugging Face Model Card Explained
- Hugging Face Datasets Explained
- Hugging Face Spaces (Free Demo) Explained
- Hugging Face Buckets
- Hugging Face Transformers Pipeline
- Hugging Face AutoClasses
- Introduction to Google Colab - Free GPU Setup
- Introduction to Major Transformers and LLM Releases
- How Text Classification Hugging Face Pipeline Works
- Hugging Face Text Classification Pipeline Part 1
- Hugging Face Text Classification Pipeline Part 2
- Hugging Face NER Tagging (Token Classification) Part 1
- Hugging Face NER Tagging (Token Classification) Part 2
- Hugging Face Question Answering Pipeline
- Hugging Face Text Summarization
- Hugging Face Translation Pipeline
- Hugging Face Text Generation Pipeline
- Hugging Face Image Classification Pipeline
- Hugging Face Image Segmentation Pipeline
- Hugging Face Text to Speech Pipeline
- Hugging Face Text to Music Generation
UNIDAD 3 - Transformers Architectures and Basic LLM Concepts · 14 leccionesUNIDAD 3 - Transformers Architectures and Basic LLM Concepts
UNIDAD 3 - Transformers Architectures and Basic LLM Concepts
- Introduction to Transformer Architecture and LLMs
- Seq2Seq Models Explained: Part 1
- Seq2Seq Models Explained: Part 2
- Seq2Seq Limitations and the Need for Attention
- Applying Attention in Seq2Seq Networks
- Query, Key, and Value Vectors Explained
- Scaled Dot-Product Attention Explained
- Transformer Encoder and Decoder Stacks
- How the Transformer Encoder Works
- Positional Encoding in Transformers
- Self-Attention, Masked Attention, and Cross-Attention
- Multi-Head Attention Explained
- How the Transformer Decoder Works
- Real-World Transformer Applications
UNIDAD 4 - BERT Architecture Theory · 9 leccionesUNIDAD 4 - BERT Architecture Theory
UNIDAD 4 - BERT Architecture Theory
- Introduction to BERT Architecture
- BERT Explained: Bidirectional Transformer Encoder
- Why Context Matters in BERT
- BERT Paper Terminology: Part 1
- BERT Paper Terminology: Part 2
- BERT Architecture Deep Dive
- How Input Text is Processed in BERT
- MLM and NSP in BERT Pretraining
- BERT Fine-Tuning and Evaluation Workflow
UNIDAD 5 - Fine-Tuning BERT for Multi-Class Sentiment Classification for Twitter Tweets · 16 leccionesUNIDAD 5 - Fine-Tuning BERT for Multi-Class Sentiment Classification for Twitter Tweets
UNIDAD 5 - Fine-Tuning BERT for Multi-Class Sentiment Classification for Twitter Tweets
- Project Intro: Fine-Tune BERT for Sentiment Classification
- BERT Classifier Architecture for Text Classification
- Load the Twitter Sentiment Dataset
- Analyze the Twitter Sentiment Dataset
- Tokenization Workflow for BERT Fine-Tuning
- Train-Test Split and Dataset Preparation
- Tokenize the Sentiment Dataset
- BERT Model Configuration Deep Dive
- Load BERT with a Classification Head
- Configure Training Arguments
- Build Evaluation Metrics
- Train BERT with Hugging Face Trainer
- Evaluate the Fine-Tuned BERT Model
- Plot the Confusion Matrix
- Save BERT and Predict on Custom Text
- Build a Streamlit Sentiment Prediction App
UNIDAD 6 - Knowledge Distillation for BERT - DistilBERT, MobileBERT and TinyBERT [Theory] · 13 leccionesUNIDAD 6 - Knowledge Distillation for BERT - DistilBERT, MobileBERT and TinyBERT [Theory]
UNIDAD 6 - Knowledge Distillation for BERT - DistilBERT, MobileBERT and TinyBERT [Theory]
- Introduction to Knowledge Distillation for BERT
- Knowledge Distillation Explained
- DistilBERT Loss Functions
- DistilBERT Paper Walkthrough: Part 1
- DistilBERT Paper Walkthrough: Part 2
- MobileBERT Introduction
- MobileBERT Parameter Settings
- MobileBERT Knowledge Distillation
- MobileBERT Paper Walkthrough: Part 1
- MobileBERT Paper Walkthrough: Part 2
- MobileBERT Paper Walkthrough: Part 3
- TinyBERT Introduction
- TinyBERT Paper Walkthrough
UNIDAD 7 - Fine-Tune Distilled BERT Models for Fake News Detection · 10 leccionesUNIDAD 7 - Fine-Tune Distilled BERT Models for Fake News Detection
UNIDAD 7 - Fine-Tune Distilled BERT Models for Fake News Detection
- Project Intro: Fake News Detection with Distilled BERT Models
- Load the Fake News Dataset
- Analyze the Fake News Dataset
- Prepare Train, Test, and Validation Splits
- Tokenize Fake News Text Data
- Build DistilBERT, MobileBERT, and TinyBERT Models
- Train Models for Fake News Detection
- Evaluate Fake News Detection Models
- Benchmark Distilled Models Against BERT: Part 1
- Benchmark Distilled Models Against BERT: Part 2
UNIDAD 8 - Fine-Tune DistilBERT for Named Entity Recognition · 12 leccionesUNIDAD 8 - Fine-Tune DistilBERT for Named Entity Recognition
UNIDAD 8 - Fine-Tune DistilBERT for Named Entity Recognition
- Project Intro: Restaurant Search NER with DistilBERT
- Named Entity Recognition Explained
- BIO and IOB Tagging for NER
- Load the Restaurant NER Dataset: Part 1
- Load the Restaurant NER Dataset: Part 2
- Prepare a Hugging Face NER Dataset: Part 1
- Prepare a Hugging Face NER Dataset: Part 2
- Build the NER Tokenization Pipeline
- Align NER Labels with Tokenized Inputs
- Create Sequence Evaluation Metrics
- Fine-Tune DistilBERT for NER
- Save the NER Model and Run Predictions
UNIDAD 9 - Fine-Tune T5 for Custom Text Summarization · 8 leccionesUNIDAD 9 - Fine-Tune T5 for Custom Text Summarization
UNIDAD 9 - Fine-Tune T5 for Custom Text Summarization
- Project Intro: Fine-Tune T5 for Summarization
- Text Summarization in NLP Explained
- Benchmark T5 and BART for Summarization
- T5 Transformer and SAMSum Dataset Overview
- Analyze the SAMSum Dataset
- Tokenization for Text Generation
- Fine-Tune T5 for Custom Summarization
- Generate Custom Summaries with Fine-Tuned T5
UNIDAD 10 - Fine-Tune Vision Transformer for Image Classification · 9 leccionesUNIDAD 10 - Fine-Tune Vision Transformer for Image Classification
UNIDAD 10 - Fine-Tune Vision Transformer for Image Classification
- Project Intro: Fine-Tune ViT for Food Image Classification
- Vision Transformer Paper Walkthrough: Part 1
- Vision Transformer Paper Walkthrough: Part 2
- Load the Indian Food Image Dataset
- Image Preprocessing and Transforms for ViT
- Build Image Classification Metrics
- What Is Inside a ViT Model?
- Fine-Tune Vision Transformer for Classification
- Save, Load, and Test the Fine-Tuned ViT Model
UNIDAD 11 - LLM Fine-Tuning on Custom Dataset Theory · 11 leccionesUNIDAD 11 - LLM Fine-Tuning on Custom Dataset Theory
UNIDAD 11 - LLM Fine-Tuning on Custom Dataset Theory
- Introduction to Custom LLM Fine-Tuning
- Phi-2 Paper Review for Lightweight LLM Fine-Tuning
- Phi2 Paper Review
- PEFT Paper Review: Parameter-Efficient Fine-Tuning
- LoRA Paper Review: Low-Rank Adaptation
- QLoRA Paper Review: 4-Bit LLM Fine-Tuning
- How LLM Pretraining Works
- Supervised Fine-Tuning for LLMs
- PEFT Adapters and LoRA Revisited
- QLoRA Revisited for Efficient Training
- 4-Bit Normalized Float Quantization
UNIDAD 12 - Fine-Tune Phi-2 or Any LLM on Custom Data · 10 leccionesUNIDAD 12 - Fine-Tune Phi-2 or Any LLM on Custom Data
UNIDAD 12 - Fine-Tune Phi-2 or Any LLM on Custom Data
- Project Intro: Fine-Tune Phi-2 on Custom Data
- Getting Started with Custom LLM Fine-Tuning
- Analyze Amazon Product Data
- Select Maximum Token Length
- Format Text for Multi-Task LLM Fine-Tuning
- Load the Base LLM and Tokenize Data
- Test the Base Model Before Fine-Tuning
- Configure LoRA and QLoRA for Phi-2
- Fine-Tune Phi-2 on Custom Product Data
- Generate Product Names with the Fine-Tuned PEFT Model
UNIDAD 13 - Fine-Tune LLaMA Base Model as Chat / Instruction Model · 9 leccionesUNIDAD 13 - Fine-Tune LLaMA Base Model as Chat / Instruction Model
UNIDAD 13 - Fine-Tune LLaMA Base Model as Chat / Instruction Model
- Project Intro: Fine-Tune TinyLLaMA as a Chat Model
- Getting Started with LLaMA Instruction Tuning
- Load the UltraChat Instruction Dataset
- Format Data into Chat Prompt Templates
- Test the Base LLaMA Model Before Fine-Tuning
- Configure the Model for 4-Bit Training
- Prepare LoRA Configuration for PEFT
- Fine-Tune the LLaMA Model for Chat
- Load the Fine-Tuned PEFT Model and Predict
UNIDAD 14 - Qwen3-TTS Voice Cloning with Audio LLMs · 16 leccionesUNIDAD 14 - Qwen3-TTS Voice Cloning with Audio LLMs
UNIDAD 14 - Qwen3-TTS Voice Cloning with Audio LLMs
- Sneak Peek: Qwen3-TTS Voice Cloning Project
- What Is Qwen3-TTS?
- Qwen3-TTS Architecture Explained
- Qwen3-TTS Backbone Transformer
- Speech Tokenization and Multi-Token Prediction
- Qwen3-TTS 12 Hz and 25 Hz Codecs
- Qwen3-TTS Training Workflow
- Voice Cloning and Emotion Control with Qwen3-TTS
- Qwen3-TTS Voice Cloning Project Setup
- Qwen3-TTS Voice Cloning Notebook Setup
- Prepare Reference Audio for Voice Cloning
- Load Qwen3-TTS and Create a Voice Prompt
- Create Audio Personality Presets
- Voice Cloning Demo with a Public-Figure Style Voice
- Control Cloned Voice with Text Instructions
- Generate an Audio Story with a Cloned Voice
UNIDAD 15 - Qwen3-TTS Voice LLM Fine-Tuning with Custom Audio Data · 12 leccionesUNIDAD 15 - Qwen3-TTS Voice LLM Fine-Tuning with Custom Audio Data
UNIDAD 15 - Qwen3-TTS Voice LLM Fine-Tuning with Custom Audio Data
- Sneak Peek: Fine-Tune Qwen3-TTS Voice LLM (Audio LLM) on Custom Audio
- Install FFmpeg for Audio Processing
- Notebook Setup for Audio Data Preparation
- Prepare Audio Data for Qwen3-TTS Fine-Tuning
- Transcribe Audio Samples with Whisper
- Prepare Raw Training Samples
- Prepare Audio Code Data for SFT
- Qwen3-TTS Fine-Tuning Notebook Setup
- Fine-Tune Qwen3-TTS on Custom Audio Data
- Test the Fine-Tuned Audio LLM
- Generate an HD Audio Story with the Fine-Tuned Model
- Upload Your Own Fine Tuned Audio LLM on Hugging Face
UNIDAD 16 - Latest LLM Benchmarking and Architecture Teardown 2026 · 14 leccionesUNIDAD 16 - Latest LLM Benchmarking and Architecture Teardown 2026
UNIDAD 16 - Latest LLM Benchmarking and Architecture Teardown 2026
- Nemotron 3.5 vs Meta's Muse Glimmer 30B on RTX5090
- Qwen 3.8 27B vs Nemotron 3.5 vs Muse Glimmer on RTX5090
- Qwen 3.8 27B Speed Settings and KV Cache Explained
- Qwen 3.8 27B vs Qwen 3.5 vs Qwen 3.6 Architecture Teardown
- Qwen 3.8 27B Uncensored Model Explained
- Qwen 3.8 Flash Next (Qwen 4) Architecture Teardown
- I Ran Qwen 3.8 Flash Next Qwen 4 on CPU Only
- Ornith 1.5 9B and 35B vs Qwen 3.8 and Gemma 4 Benchmarking on RTX5090
- IBM Granite 4.2 vs Qwen 3.8 27B and Gemma 4 Model Comparison
- I Ran DeepSeek V4 Flash and Qwen 3.8 Flash Next (Qwen 4) on CPU
- Qwen 3.8 27B Token Generation Speed Tested with MacBook Pro M5 Max
- Qwen 3.8 27B with DeepSeek Harness Agent is Awesome
- DeepSeek V4.1 Flash Architecture Explained - DSA and CSA2 Sparse Attention
- Do You Know How GLM 5.3 and GLM 5.3 Flash Works?
Tu certificado lo emite la SEP, no solo una plataforma
Al demostrar la competencia recibes un certificado emitido por la Secretaría de Educación Pública a través del Gobierno del Estado de México: un documento oficial que puedes presentar con confianza ante cualquier empleador o institución.
Tu certificado con INEC
- Lo emite la Secretaría de Educación Pública (SEP), a través del Gobierno del Estado de México
- Documento oficial con folio verificable en línea
- Lo otorga la Universidad Tecnológica Fidel Velázquez
Otras plataformas en línea
- Constancia privada emitida por la misma plataforma
- Solo acredita horas cursadas o asistencia
- Sin respaldo de una autoridad educativa
Tu itinerario, de la inscripción al certificado
- 1
Inscripción con pago único
Pagas $2,800 MXN una sola vez y entras de inmediato al curso.
- 2
Estudias a tu ritmo
16 unidades con videos, lecturas y actividades, disponibles 24/7 durante 12 meses.
- 3
Cuestionarios por unidad
Cuestionarios para comprobar lo aprendido.
- 4
Certificado
Emitido por la SEP a través del Gobierno del Estado de México, con folio verificable.
Un certificado oficial de la SEP
- Emitido por la Secretaría de Educación Pública (SEP), a través del Gobierno del Estado de México. No es una constancia privada: es un documento oficial, y ese respaldo marca la diferencia frente a otras plataformas en línea.
- Contenido impartido por Laxmi Kant | KGP Talkie.
- Folio y QR verificables para compartirlo con quien te contrate.
Empieza hoy, a tu ritmo
Un solo pago y acceso inmediato al curso completo durante 12 meses.
- 16 unidades · 197 lecciones · 60 h
- 12 meses de acceso
- Certificado emitido por la SEP (Gob. del Estado de México) con folio verificable
Sobre tu inscripción
¿Cómo es el pago?
Un solo pago de $2,800 MXN. No hay mensualidades ni cargos recurrentes.
¿Cuánto tiempo tengo acceso?
12 meses desde tu inscripción, 24/7, para avanzar a tu ritmo.
¿Quién imparte el contenido?
El curso es impartido por Laxmi Kant | KGP Talkie; INEC gestiona tu inscripción, evaluación y certificado.
¿Qué pasa cuando vence mi acceso?
Puedes renovar tu cuenta tú mismo desde la plataforma, sin trámites ni esperas.


