Tag: #deep-learning
All published articles with this tag "deep-learning". 15 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 · Deep Learning
Speculative Decoding: Mathematical Foundations, Rejection Sampling Proofs, Tree Attention (Medusa & EAGLE), and Production PyTorch Serving
Master Speculative Decoding: memory-bandwidth bottlenecks, modified rejection sampling proof of exact distributional equivalence, expected speedup dynamics, tree-based verification (Medusa & EAGLE), and production PyTorch serving implementations.