Adding New Knowledge to LLMs
- Código del Curso GK847000
- Duración 1 Día
Otros Métodos de Impartición
Método de Impartición
Este curso está disponible en los siguientes formatos:
-
Cerrado
Cerrado
Solicitar este curso en un formato de entrega diferente.
Temario
Parte superiorThis course provides a comprehensive, hands-on guide to the essential techniques for augmenting and customizing LLMs.
This course takes you on a complete journey from raw data to a fine-tuned, optimized model. You will begin by learning how to curate high-quality datasets and generate synthetic data with NVIDIA NeMo Curator. Next, you will dive deep into the crucial process of model evaluation, using benchmarks, LLM-as-a-judge, and the NeMo Evaluator to rigorously assess model performance. With a solid foundation in evaluation, you will then explore a suite of powerful customization techniques, including Continued Pretraining to inject new knowledge, Supervised Fine-Tuning to teach new skills, and Direct Preference Optimization (DPO) to align model behavior with human preferences.
Company Events
These events can be delivered exclusively for your company at our locations or yours, specifically for your delegates and your needs. The Company Events can be tailored or standard course deliveries.
Calendario
Parte superiorObjetivos del Curso
Parte superior- Curate high-quality datasets and generate synthetic data using NVIDIA NeMo Curator.
- Rigorously evaluate LLM performance with benchmarks (MMLU), LLM-as-a-judge, and the NeMo Evaluator.
- Inject new domain-specific knowledge into LLMs using Continued Pretraining (CPT).
- Teach LLMs new skills and align them to specific tasks with Supervised Fine-Tuning (SFT).
- Align model behavior to human preferences for style, tone, and safety using Direct Preference Optimization (DPO).
- Compress and optimize LLMs for efficient deployment using Quantization, Pruning, and Knowledge Distillation with TensorRT-LLM and NeMo.
- Apply end-to-end model customization workflows to solve real-world problems.
- Topics Covered
Contenido
Parte superiorModule 1: Data Curation and Synthetic Data Generation
- Learn to prepare large-scale, high-quality datasets using NVIDIA NeMo Curator.
- Perform essential data curation tasks: text cleaning, filtering, and PII removal.
- Generate high-quality synthetic Question-Answer pairs to create robust datasets for Supervised Fine-Tuning (SFT).
- Understand the importance of data quality in the LLM development lifecycle.
Module 2: Evaluating Large Language Models
- Explore multiple LLM evaluation techniques, from simple "eyeballing" to systematic, quantitative methods.
- Evaluate models against industry-standard benchmarks like MMLU.
- Implement LLM-as-a-judge for nuanced, automated evaluation.
- Use the NeMo Evaluator microservice to compare zero-shot vs. few-shot (in-context learning) performance.
- Track and visualize evaluation experiments using MLflow.
Module 3: Customizing LLMs
- Dive into three key customization techniques: CPT, SFT, and DPO.
- Use Continued Pretraining (CPT) to teach a model new knowledge about a specific domain.
- Apply Supervised Fine-Tuning (SFT) to teach a model new skills, such as solving math problems in a different language.
- Utilize Direct Preference Optimization (DPO) to align a model's conversational style to human preferences (e.g., formal vs. informal, specific dialects).
- Gain hands-on experience with the NeMo framework for all customization tasks.
Module 4: Optimizing LLMs for Deployment
- Learn to compress and accelerate LLMs for efficient inference.
- Apply Post-Training Quantization (PTQ) to reduce model size and memory usage using TensorRT-LLM, focusing on the FP8 format.
- Use Depth Pruning to reduce model size by removing entire layers.
- Employ Knowledge Distillation to recover performance lost during pruning by training a smaller "student" model to mimic a larger "teacher" model.
- Evaluate the performance vs. accuracy trade-offs of each optimization technique.
Module 5: Interactive Assessment
- Apply your knowledge in a hands-on coding assessment.
- Use Direct Preference Optimization (DPO) to align a Llama 3.1 8B model to a unique conversational style (Shakespearean English).
- Demonstrate your ability to prepare a preference dataset, run an alignment job with NeMo-RL, and evaluate the final model.
- Earn a certificate of competency by successfully completing the assessment.
Pre-requisitos
Parte superior- Familiarity with Python programming and Jupyter notebooks.
- Basic understanding of Large Language Models and their applications.
- Conceptual knowledge of deep learning and neural networks.
- Tools, libraries, frameworks used: Python, NVIDIA NeMo, NVIDIA TensorRT-LLM, Docker, MLflow