- Python; Mathematics; ML; DL;
- Absolute NLP Theory: https://www.youtube.com/watch?v=DzpHeXVSC5I&list=PLoROMvodv4rOaMFbaqxPDoLWjDaRAdP9D
- Surveys & Trends
- Learn the higher level overview of large language models, recent trends and future directions
- Dataset selection
- Important data sources and licenses
- Data diversity and bias considerations
- Data scaling laws: https://arxiv.org/abs/2203.15556
- Synthetic data generation; importantce; problems
- Dataset cleaning and normalization
- Deduplication
- Data preprocessing
- Filtering and quality checks
- Tokenizer
- Byte Pair Encoding (BPE)
- SentencePiece
- Tokenization efficiencies and tradeoffs
-
High level overview of LLM architectures
-
Base Architecture
- Transformers and variants
- Standard Transformer(Encoder-Decoder)
- Attention Is All You Need: https://arxiv.org/abs/1706.03762
- 3blue1brown: https://www.youtube.com/watch?v=LPZh9BOjkQs&list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi&index=5
- Andrej Karpathy videos: https://www.youtube.com/@AndrejKarpathy/videos
- https://xmarva.github.io/blog/2025/building-a-transformer/
- https://jalammar.github.io/illustrated-transformer/
- https://www.youtube.com/watch?v=U0s0f995w14
- https://lilianweng.github.io/posts/2018-06-24-attention/
- https://mlabonne.github.io/blog/posts/2023-06-07-Decoding_strategies.html
- Encoder only Transformer
- Decoder only Transformer
- Reformer
- Linformer, Performer, and models that use sparse attention patterns
- nano-gpt speedrun
- Standard Transformer(Encoder-Decoder)
- Mixture of Experts (MoE)
- Basics: https://www.datacamp.com/blog/mixture-of-experts-moe
- Sparse activation, Routing strategies
- Project - NanoMOE: https://cameronrwolfe.substack.com/p/nano-moe
- Routing strategies
- State Space Models and Hybrids
- Mamba
- Hybrid (Transformer + Mamba) architectures
- Jamba (AI21 Labs)
- Learn architecture and all of popular LLMs(especially open-source)
- Transformers and variants
-
Attention mechanisms
- Multi-Head Attention (MHA)
- Multi-Query Attention (MQA)
- Grouped-Query Attention (GQA)
- Multi-Head Latent Attention (MLA)
- Flash attention
- Efficient attention variants
-
Model size
- Learn how size affects performance for various tasks
-
Residual connections
- Pre-norm vs post-norm
-
Weight tying
- Input/output embeddings
-
Initialization
- Xavier (or Glorot) Initialization
- He Initialization
-
Embeddings
- Positional embeddings
- Rotary Positional Embeddings (RoPE)
- ALiBi (Attention with Linear Biases)
-
Normalization
- LayerNorm
- RMSNorm
- ScaleNorm
- Placement strategies (pre-norm, post-norm)
-
FFN activation functions for FFN layer
-
Reasoning modules
- Self-reflection loops
- Multi-token prediction (MTP)
-
Sparsity strategies
- Sparse attention
- Hybrid sparse-dense models
- Loss functions
- Cross-entropy
- Custom loss for specific tasks
- Optimizers
- SGD
- Adam
- AdamW
- Lion
- Muon optimizer
- LR scheduler
- Warmup strategies
- Cosine annealing
- Step decay
- Regularization
- Dropout
- Weight decay
- Stochastic Depth (LayerDrop)
- Precision for training and inference
- BF16
- FP16, FP32
- Mixed precision training
- Parallel training on hardware
- Data parallelism
- Model parallelism
- Pipeline parallelism
- Checkpointing, visualization, monitoring
- Checkpointing strategies
- Training dashboards
- Monitoring metrics
- Hyperparameter tuning
- Tokens per step
- Gradient accumulation
- Gradient clipping
- Quantization and distillation
- https://arxiv.org/abs/2210.17323
- https://mlabonne.github.io/blog/posts/Introduction_to_Weight_Quantization.html
- https://mlabonne.github.io/blog/posts/Quantize_Llama_2_models_using_ggml.html
- https://mlabonne.github.io/blog/posts/4_bit_Quantization_with_GPTQ.html
- https://medium.com/friendliai/understanding-activation-aware-weight-quantization-awq-boosting-inference-serving-efficiency-in-10bb0faf63a8
- https://github.com/mit-han-lab/smoothquant/blob/main/examples/smoothquant_llama_demo.ipynb
- https://www.deepspeed.ai/tutorials/model-compression/
- Model quantization (FP8, INT8)
- Knowledge distillation
- Low-bit attention kernels (SageAttention, FlashAttention-3)
- Finding best hyperparameters for inference
- Batch size, Sequence length and other model parameters
- KV caching
- Memory management
- Throughput optimization
- Curriculum Learning
- Data Packing (Mixture / Packing)
- Gradient Clipping
- Mixed Precision (FP16/BF16)
- Activation Checkpointing
- ZeRO / Sharded Data Parallelism
- Weight tying
- Layer sharing
- KV cache layout and memory
- Distillation
- Auxiliary heads
- Finetuning
- Full model finetuning
- Domain adaptation
- Parameter-efficient fine-tuning
- https://www.superannotate.com/blog/llm-fine-tuning
- https://huggingface.co/blog/mlabonne/sft-llama3
- https://www.youtube.com/watch?v=iOdFUJiB0Zc
- https://www.youtube.com/watch?v=bZcKYiwtw1I
- Adapters: https://xmarva.github.io/blog/2025/adapters/
- LoRA / QLoRA
- https://lightning.ai/pages/community/lora-insights/
- Low-rank adaptation techniques
- Efficiency gains
- Preference learning
- Reinforcement Learning from Human Feedback (RLHF)
- Direct Preference Optimization (DPO)
- Prompting
- Prompt engineering
- Zero-shot, few-shot, and instruction prompting
- AI Safety
- Alignment techniques
- AI Interpretability
- Circuits theory
- Inference optimization
- https://xmarva.github.io/blog/2025/inference-optimization/
- https://github.com/ggml-org/llama.cpp
- Latency reduction
- Throughput maximization
- Sparse and hybrid scaling
- Exploiting sparsity for efficiency
- Hybrid model deployments
- Post-attention innovations
- QK-Norm (RMSNorm on queries/keys pre-RoPE)
- Multi-Token Prediction (speculative decoding)
- Tool call
- Integrating external tools and APIs
- RAG (Retrieval-Augmented Generation)
- Retrieval integration
- Memory and knowledge augmentation
- Multimodality
- Multimodal training strategies
- Vision-language models
- Benchmarking
- https://github.com/huggingface/evaluation-guidebook
- Standard benchmarks (MMLU, HELM, etc.)
- Custom evaluation tasks
- Human evaluation
- Manual assessment protocols
- Crowdsourced evaluation
- Red teaming and jailbreaking
- Adversarial testing
- Jailbreak detection and mitigation
- Interpretability
- Model probing techniques
- Visualization of attention and activations
- HRM (inference optimization topic) - https://xmarva.github.io/blog/2025/inference-optimization/
- How to train LLMs - https://medium.com/@pacosun/how-to-train-massive-language-models-without-losing-your-mind-333840824114#:~:text=Learning%20Rate%20Warm
- Cohere class on LLMs as blogs(really good) - https://cohere.com/llmu
- Another class (really good) - https://github.com/mlabonne/llm-course
- https://parlance-labs.com/education/
- https://docs.unsloth.ai/
- https://mlabonne.github.io/blog/posts/Fine_tune_Mistral_7b_with_DPO.html
- https://machinelearningmastery.com/the-roadmap-for-mastering-language-models-in-2025/ - continue from deploy as it was not added here(things like langchain)
- Make a tokenizer from scratch
- Implement the muon optimizer
- Implement all the attention mechanism which are relevant
- Implement embeddings like RoPE
- Try out different types and styles of normalization
- Implement the Mamba architecture
- Integrate QLoRA fine-tuning
- Create a full Mixture of Experts (MoE) based LLM
- Experiment with types of activation functions
- Explore various optimizers
- Apply RLHF and DPO techniques
- Integrate FlashAttention
- Quantize it into 4-bit or something similar
- Add optimizations such as KV cache
- Create a multimodal integrated LLM
- Add RAG and tool-calling capabilities
