L00 · 课程参考资料
本页按 CS336 2026 的课程顺序汇总各讲涉及的讲义、视频、代码与延伸阅读。每讲页面仍保留与本讲直接相关的资料入口。
资料索引
按课程顺序整理讲义、视频、代码与延伸阅读;每一项都保留在对应讲次下。
159 条资料 · 18 讲 · 160 次关联
Overview, tokenization
8 条资料
参考资料lecture_01.py延伸阅读↗论文Neural Language Models are Effective Priors for Scene Text Recognition课程引用↗论文SentencePiece - A simple and language independent subword tokenizer推荐阅读↗代码OpenAI tiktoken实践工具↗论文Neural Machine Translation of Rare Words with Subword UnitsBPE 经典论文↗论文Language Models are Few-Shot Learners模型规模背景↗文档UTF-8 Standard文本编码↗视频课程视频课程视频↗
PyTorch (einops), resource accounting (FLOPs, memory, arithmetic intensity)
10 条资料
参考资料lecture_02.py延伸阅读↗参考资料recording version延伸阅读↗论文Mixed Precision Training课程引用↗书籍 / 教程JAX Scaling Book - Roofline analysis推荐教程↗技术文章Transformer FLOPs计算参考↗论文FP8 Formats for Deep Learning低精度训练↗文档Einops Basics张量表达↗技术文章Transformer Inference Arithmetic资源核算↗文档Model Training Anatomy - Memory Usage显存核算↗视频课程视频课程视频↗
Architectures, hyperparameters
9 条资料
讲义 / Slideslecture 3.pdf延伸阅读↗论文Attention Is All You Need基础论文↗论文GLU Variants Improve Transformer课程引用↗论文RoFormer - Enhanced Transformer with Rotary Position Embedding课程引用↗论文Root Mean Square Layer NormalizationRMSNorm↗论文Layer Normalization基础归一化↗论文Exploring the Limits of Transfer Learning with a Unified Text-to-Text TransformerT5↗论文LLaMA - Open and Efficient Foundation Language Models现代架构案例↗视频课程视频课程视频↗
Attention alternatives and mixture of experts
9 条资料
讲义 / Slideslecture 4.pdf延伸阅读↗论文Transformers are SSMs - Generalized Models and Efficient Algorithms Through Structured State Space DualityMamba-2↗论文Switch Transformers - Scaling to Trillion Parameter Models with Simple and Efficient SparsityMoE 基础↗论文DeepSeekMoE - Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models课程案例↗论文Mamba - Linear-Time Sequence Modeling with Selective State Spaces状态空间模型↗论文ST-MoE - Designing Stable and Transferable Sparse Expert ModelsMoE 稳定性↗论文DeepSeek-V3 Technical Report现代 MoE↗论文Outrageously Large Neural Networks - The Sparsely-Gated Mixture-of-Experts LayerMoE 经典论文↗视频课程视频课程视频↗
GPUs, TPUs
9 条资料
讲义 / Slideslecture 5.pdf延伸阅读↗论文FlashAttention - Fast and Memory-Efficient Exact Attention with IO-Awareness核心论文↗书籍 / 教程JAX Scaling Book - How to Think About GPUs推荐教程↗技术文章Making Deep Learning Go Brrrr From First Principles推荐阅读↗论文FlashAttention-2 - Faster Attention with Better Parallelism and Work Partitioning算法演进↗文档NVIDIA Matrix Multiplication Background User's Guide硬件文档↗文档CUDA C++ Programming GuideCUDA 基础↗技术文章What Shapes Do Matrix Multiplications Like?性能直觉↗视频课程视频课程视频↗
Kernels, Triton
9 条资料
参考资料lecture_06.py延伸阅读↗论文Triton - An Intermediate Language and Compiler for Tiled Neural Network Computations核心论文↗文档Triton Fused Softmax Tutorial动手实践↗文档PyTorch Profiler Recipe性能分析↗文档Triton Matrix Multiplication Tutorial动手实践↗文档PyTorch Benchmark Recipe基准测试↗文档CUDA Parallel Thread Execution ISA执行模型↗技术文章Introducing Triton - Open-Source GPU Programming for Neural Networks项目介绍↗视频课程视频课程视频↗
Parallelism
9 条资料
参考资料lecture_07.py延伸阅读↗论文Megatron-LM - Training Multi-Billion Parameter Language Models Using Model Parallelism并行训练基础↗文档PyTorch Distributed Overview实践文档↗技术文章Levanter - Legible, Scalable, Reproducible Foundation Models with JAX课程引用↗论文Horovod - Fast and Easy Distributed Deep Learning in TensorFlowRing AllReduce↗文档NVIDIA Collective Communications Library Documentation集合通信↗文档NCCL Tests Performance Guide通信测量↗论文Demystifying NCCL - An In-depth Analysis of GPU Communication Protocols and Algorithms延伸阅读↗视频课程视频课程视频↗
Parallelism
9 条资料
讲义 / Slideslecture_08.pdf延伸阅读↗论文ZeRO - Memory Optimizations Toward Training Trillion Parameter Models参数分片↗论文Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LM3D 并行↗论文Reducing Activation Recomputation in Large Transformer Models序列并行↗论文GPipe - Efficient Training of Giant Neural Networks using Pipeline Parallelism流水线并行↗论文PyTorch FSDP - Experiences on Scaling Fully Sharded Data Parallel参数分片实践↗论文DeepSpeed-Megatron - System Optimizations Enable Training Deep Learning Models with Over 100 Billion Parameters系统案例↗文档Megatron Core Developer Guide工程文档↗视频课程视频课程视频↗
Scaling laws
9 条资料
讲义 / Slideslecture_09.pdf延伸阅读↗论文Scaling Laws for Neural Language ModelsKaplan Scaling Laws↗论文Training Compute-Optimal Large Language ModelsChinchilla↗论文Chinchilla Scaling - A Replication Attempt复核阅读↗论文Deep Learning Scaling is Predictable, Empirically早期 Scaling Laws↗论文A Constructive Prediction of the Generalization Error Across Scales联合缩放↗论文Scaling Laws for Autoregressive Generative Modeling跨模态缩放↗论文Scaling Data-Constrained Language Models数据受限场景↗视频课程视频课程视频↗
Inference
9 条资料
参考资料lecture_10.py延伸阅读↗论文Efficient Memory Management for Large Language Model Serving with PagedAttentionvLLM 核心论文↗论文Fast Inference from Transformers via Speculative Decoding推测解码↗书籍 / 教程JAX Scaling Book - Inference推荐教程↗论文SGLang - Efficient Execution of Structured Language Model Programs推理系统↗论文GPTQ - Accurate Post-Training Quantization for Generative Pre-trained Transformers权重量化↗论文SmoothQuant - Accurate and Efficient Post-Training Quantization for Large Language Models激活量化↗文档vLLM Documentation工程文档↗视频课程视频课程视频↗
Scaling laws
9 条资料
讲义 / Slideslecture_11.pdf延伸阅读↗论文MiniCPM - Unveiling the Potential of Small Language Models with Scalable Training Strategies缩放配方↗论文DeepSeek LLM - Scaling Open-Source Language Models with Longtermism课程案例↗论文Tensor Programs V - Tuning Large Neural Networks via Zero-Shot Hyperparameter TransferμP↗论文The Llama 3 Herd of Models缩放案例↗论文Cerebras-GPT - Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale ClusterChinchilla 配方↗论文DeepSeek-V2 - A Strong, Economical, and Efficient Mixture-of-Experts Language Model稀疏缩放↗书籍 / 教程Scaling Book - Training at Scale推荐教程↗视频课程视频课程视频↗
Evaluation
10 条资料
参考资料lecture_12.py延伸阅读↗论文Holistic Evaluation of Language ModelsHELM↗论文Chatbot Arena - An Open Platform for Evaluating LLMs by Human Preference偏好评测↗论文SWE-bench - Can Language Models Resolve Real-World GitHub Issues?Agent 评测↗论文Measuring Massive Multitask Language UnderstandingMMLU↗论文GPQA - A Graduate-Level Google-Proof Q&A Benchmark高难知识评测↗论文HellaSwag - Can a Machine Really Finish Your Sentence?常识推理↗论文HarmBench - A Standardized Evaluation Framework for Automated Red Teaming安全评测↗论文AlpacaEval 2.0自动偏好评测↗视频课程视频课程视频↗
Data (sources, datasets)
10 条资料
参考资料lecture_13.py延伸阅读↗论文The Pile - An 800GB Dataset of Diverse Text for Language Modeling数据集论文↗论文RefinedWeb - The Falcon LLM Dataset网页数据↗文档Common Crawl数据来源↗论文The FineWeb Datasets - Decanting the Web for the Finest Text Data at Scale网页数据集↗论文Dolma - An Open Corpus of Three Trillion Tokens for Language Model Pretraining Research开放语料↗论文ROOTS - Search Tooling for Large Scale Archives数据治理↗文档Software Heritage代码语料来源↗文档arXiv Bulk Data Access论文语料来源↗视频课程视频课程视频↗
Data (filtering, deduplication, mixing, synthetic data)
10 条资料
参考资料lecture_14.py延伸阅读↗论文Deduplicating Training Data Makes Language Models Better数据去重↗论文DataComp-LM - In Search of the Next Generation of Language Model Pretraining Datasets数据筛选↗论文FineWeb-Edu教育数据过滤↗论文Gopher - Scaling Language Models, Methods, Analysis and Insights from Training质量过滤↗论文DoReMi - Optimizing Data Mixtures Speeds Up Language Model Pretraining数据混合↗论文RegMix - Data Mixture as Regression for Language Model Pre-training数据混合↗论文Textbooks Are All You Need合成数据↗文档fastText Language Identification语言过滤↗视频课程视频课程视频↗
Mid/post-training (SFT/RLHF)
10 条资料
讲义 / Slideslecture_15.pdf延伸阅读↗论文Training Language Models to Follow Instructions with Human FeedbackInstructGPT↗论文Direct Preference Optimization - Your Language Model is Secretly a Reward ModelDPO↗论文Constitutional AI - Harmlessness from AI FeedbackAI Feedback↗论文Learning to Summarize with Human Feedback早期 RLHF↗论文Training a Helpful and Harmless Assistant with Reinforcement Learning from Human FeedbackHH-RLHF↗论文Secrets of RLHF in Large Language Models Part I - PPOPPO 实践↗论文UltraFeedback - Boosting Language Models with Scaled AI FeedbackAI 偏好数据↗论文AlpacaFarm - A Simulation Framework for Methods that Learn from Human FeedbackRLHF 工程↗视频课程视频课程视频↗
Post-training - RLVR
10 条资料
讲义 / Slideslecture_16.pdf延伸阅读↗论文Proximal Policy Optimization AlgorithmsPPO↗论文DeepSeekMath - Pushing the Limits of Mathematical Reasoning in Open Language ModelsGRPO↗论文DeepSeek-R1 - Incentivizing Reasoning Capability in LLMs via Reinforcement LearningRLVR 案例↗论文Kimi k1.5 - Scaling Reinforcement Learning with LLMs推理强化学习↗论文Back to Basics - Revisiting REINFORCE Style Optimization for Learning from Human FeedbackRLOO↗论文Understanding R1-Zero-Like Training - A Critical PerspectiveRLVR 分析↗文档OpenAI Spinning Up - PPO算法教程↗代码AlpacaFarm PPO Trainer课程代码↗视频课程视频课程视频↗
Alignment - multimodality
10 条资料
参考资料lecture_17.py延伸阅读↗论文Learning Transferable Visual Models From Natural Language SupervisionCLIP↗论文Flamingo - a Visual Language Model for Few-Shot Learning多模态架构↗论文Visual Instruction TuningLLaVA↗论文An Image is Worth 16x16 Words - Transformers for Image Recognition at ScaleVision Transformer↗论文BLIP-2 - Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models模态连接↗论文PaLI - A Jointly-Scaled Multilingual Language-Image Model多模态缩放↗代码LLaVA Project开源实现↗代码OpenAI CLIP开源实现↗视频课程视频课程视频↗
Guest lecture: Dan Fu
1 条资料