Tag: #llama-3
All published articles with this tag "llama-3". 4 items published.
- Research · Deep Learning
GQA & MQA: Mathematical Foundations, Memory Bandwidth Optimization, and KV-Cache Scaling from Multi-Head to Grouped-Query Attention
Master Grouped-Query Attention (GQA) and Multi-Query Attention (MQA): KV cache memory explosion calculus, architectural comparison across MHA/GQA/MQA, tensor broadcasting vs FlashAttention stride tricks, MHA-to-GQA uptraining, and production PyTorch implementations powering LLaMA-3 and Mistral.
- Research · Deep Learning
ORPO: Odds Ratio Preference Optimization — Mathematical Foundations, Reference-Free Monolithic Alignment, and PyTorch Implementation
Master ORPO (Odds Ratio Preference Optimization): reference-free monolithic alignment, odds ratio mathematical derivation, cross-entropy contrastive regularization, SFT-DPO collapse prevention, and production PyTorch implementations.
- Research · Deep Learning
QLoRA & DoRA: Mathematical Foundations, NF4 Quantization, Weight-Decomposed Adaptation, and PyTorch PEFT Architecture
Master QLoRA and DoRA: 4-bit NormalFloat (NF4) theoretical derivation, Double Quantization, Paged Optimizers, Weight-Decomposed Low-Rank Adaptation (magnitude vs direction), QDoRA fusion, and production PyTorch implementations.
- Research · Reinforcement Learning
Llama Architecture: RMSNorm, SwiGLU, RoPE, GQA, and PyTorch Implementation
Master Llama architecture: RMSNorm pre-normalization, SwiGLU activations, RoPE relative embeddings, Grouped-Query Attention (GQA), and PyTorch pipelines.