
Explore how the machine learning era advanced natural language processing with Naive Bayes, SVM, and neural networks. Learn about RNNs and LSTMs for translation, sentiment, and text generation, highlighting scalability.
Explore tokenization and embeddings in transformer models, comparing word, character, and subword methods, and see how context-aware embeddings drive language understanding and downstream tasks.
Explore how tokenizers convert text into tokens for BERT-like models, including subword tokenization, token IDs, vocabularies, attention masks, and padding.
Build a semantic search engine with transformer-based embeddings to retrieve relevant news articles from a multi news dataset using sentence transformers, cosine similarity, and top-k retrieval.
Fine-tune a decoder-only GPT-2 to follow instructions using the open instruct dataset and Diablo GPT, exploring open-source models like LLaMA and Mistral.
Explore how chat templates and tokenizers structure multi-turn conversations for LLMs, detailing user and assistant roles, message turns, and generation prompts across models like Blenderbot, Mistral, Gemma, and Llama three.
Explore how to use Tiny Llama, load a tokenizer, apply a chat template, and control generation with max tokens, temperature, and top p within the 2048-token context—while noting potential hallucinations.
Dissect how sequence length governs fine tuning of large language models, from hardware and memory during training and inference to the impact of truncation and context.
Learn how batch size and sequence length drive data memory usage in training large language models, and how to balance memory constraints, epochs, and gradient updates for efficient learning.
Master gradient accumulation and gradient checkpointing to train with larger effective batch sizes while saving memory, by micro-batching, saving selective activations, and balancing training speed with accuracy.
Welcome to "LLMs Mastery: Complete Guide to Generative AI & Transformers"!
This practical course is designed to equip you with the knowledge and skills to build efficient, production-ready Large Language Models using cutting-edge technologies.
Key Topics Covered:
Generative AI: Understand the principles and applications of Generative AI in creating new data instances.
ChatGPT & GPT4: Dive into the workings of advanced AI models like ChatGPT and GPT4.
LLMs: Start with the basics of LLMs, learning how they decode, process inputs and outputs, and how they are taught to communicate effectively.
Encoder-Decoders: Master the concept of encoder-decoder models in the context of Transformers.
T5, GPT2, BERT: Get hands-on experience with popular Transformer models such as T5, GPT2, and BERT.
Machine Learning & Data: Understand the role of machine learning and data in training robust AI models.
Advanced Techniques: Sophisticated training strategies like PeFT, LoRa, managing data memory and merging adapters.
Specialised Skills: Cutting-edge training techniques, including 8-bit, 4-bit training and Flash-Attention.
Scalable Solutions: Master the use of advanced tools like DeepSpeed and FSDP to efficiently scale model training.
Course Benefits:
• Career Enhancement: Position yourself as a valuable asset in tech teams, capable of tackling significant AI challenges and projects.
• Practical Application: Learn by doing—build projects that demonstrate your ability to apply advanced LLM techniques in real-world situations.
• Innovative Approach: Stay at the forefront of AI technology by mastering techniques that are shaping the future of machine learning.
What You Will Learn:
Natural Language Processing Basics
• Journey Through NLP Evolution: From rule-based systems to advanced embeddings.
• Foundation in NLP: Set the stage for advanced learning in natural language processing.
Introduction to Transformers
• Transformer Architecture: Learn about encoders, decoders, and attention mechanisms.
• Model Strategies: Understand pre-training, fine-tuning, tokenization, and embeddings.
Popular Transformer Models
• Explore Key Models: Dive into BERT, GPT, and T5 and their unique capabilities.
• Deepen Model Insights: Uncover the potential and versatility of Transformer technology.
Using Transformers (Practical)
• Hands-On Experience: Apply Transformers in real-world scenarios.
• Advanced Techniques: Master tokenization, embeddings, and MLMs.
• Project Implementation: Build a Semantic Search Index.
NLP Tasks and Applications (Practical)
• Real-World Applications: Use BERT for question answering, GPT for personal assistants, and T5 for writing reviews.
• Practical NLP Skills: Experience the direct application of NLP tasks.
Foundations of Large Language Models
• Introduction to LLMs: Understand basic architecture and functionalities.
• Communication Techniques: Enhance model responsiveness with RLHF.
• Input/Output Processes: Explore how LLMs handle data for AI interactions.
Advanced Configuration and Optimization
• Chat Template Design: Practical experience in structuring LLM interactions.
• Model Selection Frameworks: Strategic decision-making for choosing LLMs.
• Generation Techniques: Tailor LLM outputs through interactive learning.
Specialized Training Techniques
• Advanced Model Training: Focus on sequence length, token counts, and numerical precision.
• Efficiency Methods: Learn 8-bit and 4-bit training to adapt models to constraints.
• Scaling Tools: Implement DeepSpeed and FSDP for efficient model scaling.
Practical Applications of LLMs
• Application in Contexts: Apply LLM skills in simulated real-world projects.
• Task-Specific Training: Optimize models for specific tasks like memory management and efficiency.
Who This Course Is For:
Tech Professionals: Enhance your skills and knowledge in cutting-edge AI technologies.
Aspiring AI Practitioners: Get a comprehensive education in LLMs from basic principles to advanced applications.
Researchers and Students: Gain a deep understanding of the latest developments and how they can be applied to solve complex problems.
Ready to dive into the world of Generative AI and Transformers?
Enroll today and start your journey to mastery!