shen-shanshan/cs-self-learning

This repo is used for archiving my notes, codes and materials of cs learning.

Jupyter Notebook

99

498 commits

updated Sep 24, 2026

See the code

README

Computer Science Self-Learning Notes

📌 Overview

This repository archives my notes and materials during my computer science self-learning jouney. Currently, I mainly focus on LLM/VLM inference engine and GPU/NPU computing, thus I have gathered many technical blogs for AI infra beginners and MLSys papers for researchers.

🔍 Contents:

📚 Learning Notes

🧱 Basic Knowledges

🤖 AI

🚀 Backend & Big Data

🛠️ Tools

🔗 Others

📚 Technical Blogs

📖 Basic Knowledges

TitleCategoryAuthorNoteRecRead
The Illustrated TransformerTransformer@Jay AlammarTransformer 原理详解⭐️⭐️⭐️⭐️⭐️
The Illustrated GPT-2 (Visualizing Transformer Language Models)Transformer@Jay AlammarTransformer 推理过程⭐️⭐️⭐️⭐️⭐️
图文详解 LLM inference:KV CacheKV Cache@季叶⭐️⭐️⭐️
Mixture of Experts ExplainedMoE@HuggingFace BlogMoE 综述⭐️⭐️⭐️⭐️
MoE 并行负载均衡:EPLB 的深度解析与可视化MoE@kaiyuan⭐️⭐️⭐️
LLM 推理并行优化的必备知识Parallel Strategy@kaiyuan
分布式推理优化思路Parallel Strategy@kaiyuan
The Ultra-Scale Playbook: Training LLMs on GPU ClustersParallel Strategy@HuggingFace Blog
图解大模型计算加速系列:分离式推理架构 1,从 DistServe 谈起/u>PD Disaggregation@猛猿PD 分离原理详解⭐️⭐️⭐️⭐️
图解大模型计算加速系列:分离式推理架构 2,模糊分离与合并边界的 chunked-prefillsSchedule@猛猿⭐️⭐️⭐️⭐️
LLM 推理提速:Attention 与 FFN 分离方案解析AF Disaggregation@kaiyuanAF 分离原理详解⭐️⭐️⭐️
Step-3 AF 分离推理系统 vs Deepseek EP 推理系统,谁更好?AF Disaggregation@不归牛顿管的熊猫AF 分离与大 EP 优劣对比⭐️⭐️
Step-3 推理系统:从 PD 分离到 AF 分离(AFD)AF Disaggregation@Yibo ZhuStep3 作者杂谈⭐️⭐️
GPU 内存(显存)的理解与基本使用Hardware@kaiyuan⭐️⭐️⭐️⭐️

📖 Dive into vLLM

TitleCategoryAuthorNoteRecRead
Inside vLLM: Anatomy of a High-Throughput LLM Inference SystemOverview@vLLM BlogvLLM 全面详解⭐️⭐️⭐️⭐️⭐️
vLLM V1 整体流程|从请求到算子执行Architecture@SSS不知-道vLLM 推理流程⭐️⭐️⭐️⭐️⭐️
图解 vLLM V1 系列 1:整体流程Architecture@猛猿⭐️⭐️⭐️
图解 vLLM V1 系列 2:Executor-Workers 架构Architecture@猛猿⭐️⭐️⭐️
图解 vLLM V1 系列 3:KV Cache 初始化KV Cache@猛猿⭐️⭐️⭐️
图解 vLLM V1 系列 4:加载模型权重Model@猛猿⭐️⭐️
vLLM 模型权重加载:使用 setattrModel@风之魔术师⭐️⭐️
ColumnParallelLinear 和 RowParallelLinearModel@风之魔术师⭐️⭐️
图解 vLLM V1 系列 5:调度器策略Scheduler@猛猿⭐️⭐️⭐️⭐️
Introducing vLLM Hardware Plugin, Best Practice from Ascend NPUPlatform@The Ascend Team on vLLMvLLM 硬件插件化机制⭐️⭐️⭐️
vLLM 算力多样性|Platform 插件与 CustomOpPlatform@SSS不知-道⭐️⭐️⭐️⭐️
vLLM 算子开发流程:“保姆级”详细记录Kernel@DefTruth⭐️⭐️⭐️⭐️⭐️
Introduction to torch.compile and How It Works with vLLMGraph@vLLM Blog⭐️⭐️
vLLM 为什么没在 Prefill 阶段支持 Cuda Graph?Graph@kaiyuan⭐️⭐️⭐️
Piecewise CUDA Graph:面向变长 Prefill 的分段图捕获与自动算子融合Graph@注意力机制不集中⭐️⭐️⭐️
vLLM torch.compile IntegrationGraph@Jiangyun Zhu自定义 Pass 方法⭐️⭐️⭐️
vLLM 显存管理详解Memory@kaiyuan⭐️⭐️⭐️⭐️
Shared Memory IPC Caching: Accelerating Data Transfer in LLM Inference SystemsIPC@vLLM Blog⭐️⭐️⭐️
vLLM 结构化输出|Guided Decoding (V0)Guided Decoding@SSS不知-道⭐️⭐️⭐️
vLLM 结构化输出|Guided Decoding (V1)Guided Decoding@SSS不知-道⭐️⭐️⭐️
vLLM DP 特性与演进方案分析Parallel Strategy@kaiyuan⭐️⭐️⭐️⭐️
LLM 推理数据并行负载均衡(DPLB)浅析Parallel Strategy@kaiyuan⭐️⭐️⭐️
vLLM PD 分离方案浅析PD Disaggregation@kaiyuan⭐️⭐️⭐️
vLLM PD 分离 KV Cache 传递机制详解与演进分析PD Disaggregation@kaiyuan⭐️⭐️⭐️
vLLM 多模态推理|ViT 性能优化Multi-Modal@SSS不知-道⭐️⭐️⭐️⭐️
vLLM 多模态推理|卷积计算加速Multi-Modal@SSS不知-道⭐️⭐️
vLLM 多模态 Cache 缓存机制分析Multi-Modal@黑白⭐️⭐️

📖 Dive into PyTorch

📖 CUDA Programming

TitleCategoryAuthorNoteRecRead
CUDA 内核优化策略Performance@Zhang⭐️⭐️⭐️
从啥也不会到 CUDA GEMM 优化Performance@猛猿⭐️⭐️⭐️⭐️

📖 Communication

TitleCategoryAuthorNoteRecRead
NCCL: Collective OperationsCollective Communication@NVIDIA Developer集合通信常用操作⭐️⭐️⭐️⭐️
一文读懂|RDMA 原理Network@Linux内核库⭐️⭐️⭐️⭐️
PyTorch 中基于 CUDA IPC 的进程间 Tensor 共享简介IPC@kaiyuan⭐️⭐️⭐️

📖 Multi-Modality

TitleCategoryAuthorNoteRecRead
多模态技术梳理:ViT 系列ViT@姜富春ViT 研究综述⭐️⭐️⭐️
LLaVA 系列模型结构详解ViT@Zhang⭐️⭐️⭐️
文生图模型之 Stable DiffusionDiffusion@小小将⭐️⭐️⭐️⭐️
DiT 推理加速综述: CachingDiffusion@DefTruth⭐️⭐️⭐️⭐️

📖 Dive into Qwen

📖 Dive into DeepSeek

📖 Development

TitleCategoryAuthorNoteRecRead
LLM Inference 高效 Debug 方法汇总Debug@CarryPls⭐️⭐️
推理性能优化:GPU/NPU Profiling 阅读引导Profiling@kaiyuan⭐️⭐️⭐️⭐️

📚 Papers

Refer to How to Read a Paper to master a practical and efficient three-pass method for reading papers.

📚 Learning Projects

ProjectCategoryAuthor/OrganizationAbout
llm-actionMLSys@liguodongiot本项目旨在分享大模型相关技术原理以及实战经验(大模型工程化、大模型应用落地)。
awesomeMLSysMLSys@GPU MODEAn ML Systems Onboarding list.
InfraTechMLSys@CalvinXKY分享AI Infra知识&代码练习:PyTorch/vLLM/SGLang框架入门⚡️、性能加速🚀、大模型基础🧠、AI软硬件🔧等。
AI-Infra-from-Zero-to-HeroMLSys@HuaizhengZhang🚀 Awesome System for Machine Learning ⚡️ AI System Papers and Industry Practice. ⚡️ System for Machine Learning, LLM (Large Language Model), GenAI (Generative AI). 🍻 OSDI, NSDI, SIGCOMM, SoCC, MLSys, etc. 🗃️ Llama3, Mistral, etc. 🧑‍💻 Video Tutorials.
resource-streamCUDA@GPU MODEGPU programming related news and material links.
BasicCUDACUDA@CalvinXKYA tutorial for CUDA & PyTorch.

©️ Citation

@misc{cs-self-learning@2023,
  title  = {cs-self-learning},
  url    = {https://github.com/shen-shanshan/cs-self-learning},
  note   = {Open-source software available at https://github.com/shen-shanshan/cs-self-learning},
  author = {shen-shanshan},
  year   = {2023}
}

📜 License

MIT License, find more details here.

⭐ Star History

Star History Chart

cpp
cuda
go
gpu
infrastructure
java
llm
npu
python

Contributors

shen-shanshan

498 commits

shen-shanshan/cs-self-learning

This repo is used for archiving my notes, codes and materials of cs learning.

Jupyter Notebook

99

498 commits

updated Sep 24, 2026

See the code

README

Computer Science Self-Learning Notes

📌 Overview

This repository archives my notes and materials during my computer science self-learning jouney. Currently, I mainly focus on LLM/VLM inference engine and GPU/NPU computing, thus I have gathered many technical blogs for AI infra beginners and MLSys papers for researchers.

🔍 Contents:

📚 Learning Notes

🧱 Basic Knowledges

🤖 AI

🚀 Backend & Big Data

🛠️ Tools

🔗 Others

📚 Technical Blogs

📖 Basic Knowledges

TitleCategoryAuthorNoteRecRead
The Illustrated TransformerTransformer@Jay AlammarTransformer 原理详解⭐️⭐️⭐️⭐️⭐️
The Illustrated GPT-2 (Visualizing Transformer Language Models)Transformer@Jay AlammarTransformer 推理过程⭐️⭐️⭐️⭐️⭐️
图文详解 LLM inference:KV CacheKV Cache@季叶⭐️⭐️⭐️
Mixture of Experts ExplainedMoE@HuggingFace BlogMoE 综述⭐️⭐️⭐️⭐️
MoE 并行负载均衡:EPLB 的深度解析与可视化MoE@kaiyuan⭐️⭐️⭐️
LLM 推理并行优化的必备知识Parallel Strategy@kaiyuan
分布式推理优化思路Parallel Strategy@kaiyuan
The Ultra-Scale Playbook: Training LLMs on GPU ClustersParallel Strategy@HuggingFace Blog
图解大模型计算加速系列:分离式推理架构 1,从 DistServe 谈起/u>PD Disaggregation@猛猿PD 分离原理详解⭐️⭐️⭐️⭐️
图解大模型计算加速系列:分离式推理架构 2,模糊分离与合并边界的 chunked-prefillsSchedule@猛猿⭐️⭐️⭐️⭐️
LLM 推理提速:Attention 与 FFN 分离方案解析AF Disaggregation@kaiyuanAF 分离原理详解⭐️⭐️⭐️
Step-3 AF 分离推理系统 vs Deepseek EP 推理系统,谁更好?AF Disaggregation@不归牛顿管的熊猫AF 分离与大 EP 优劣对比⭐️⭐️
Step-3 推理系统:从 PD 分离到 AF 分离(AFD)AF Disaggregation@Yibo ZhuStep3 作者杂谈⭐️⭐️
GPU 内存(显存)的理解与基本使用Hardware@kaiyuan⭐️⭐️⭐️⭐️

📖 Dive into vLLM

TitleCategoryAuthorNoteRecRead
Inside vLLM: Anatomy of a High-Throughput LLM Inference SystemOverview@vLLM BlogvLLM 全面详解⭐️⭐️⭐️⭐️⭐️
vLLM V1 整体流程|从请求到算子执行Architecture@SSS不知-道vLLM 推理流程⭐️⭐️⭐️⭐️⭐️
图解 vLLM V1 系列 1:整体流程Architecture@猛猿⭐️⭐️⭐️
图解 vLLM V1 系列 2:Executor-Workers 架构Architecture@猛猿⭐️⭐️⭐️
图解 vLLM V1 系列 3:KV Cache 初始化KV Cache@猛猿⭐️⭐️⭐️
图解 vLLM V1 系列 4:加载模型权重Model@猛猿⭐️⭐️
vLLM 模型权重加载:使用 setattrModel@风之魔术师⭐️⭐️
ColumnParallelLinear 和 RowParallelLinearModel@风之魔术师⭐️⭐️
图解 vLLM V1 系列 5:调度器策略Scheduler@猛猿⭐️⭐️⭐️⭐️
Introducing vLLM Hardware Plugin, Best Practice from Ascend NPUPlatform@The Ascend Team on vLLMvLLM 硬件插件化机制⭐️⭐️⭐️
vLLM 算力多样性|Platform 插件与 CustomOpPlatform@SSS不知-道⭐️⭐️⭐️⭐️
vLLM 算子开发流程:“保姆级”详细记录Kernel@DefTruth⭐️⭐️⭐️⭐️⭐️
Introduction to torch.compile and How It Works with vLLMGraph@vLLM Blog⭐️⭐️
vLLM 为什么没在 Prefill 阶段支持 Cuda Graph?Graph@kaiyuan⭐️⭐️⭐️
Piecewise CUDA Graph:面向变长 Prefill 的分段图捕获与自动算子融合Graph@注意力机制不集中⭐️⭐️⭐️
vLLM torch.compile IntegrationGraph@Jiangyun Zhu自定义 Pass 方法⭐️⭐️⭐️
vLLM 显存管理详解Memory@kaiyuan⭐️⭐️⭐️⭐️
Shared Memory IPC Caching: Accelerating Data Transfer in LLM Inference SystemsIPC@vLLM Blog⭐️⭐️⭐️
vLLM 结构化输出|Guided Decoding (V0)Guided Decoding@SSS不知-道⭐️⭐️⭐️
vLLM 结构化输出|Guided Decoding (V1)Guided Decoding@SSS不知-道⭐️⭐️⭐️
vLLM DP 特性与演进方案分析Parallel Strategy@kaiyuan⭐️⭐️⭐️⭐️
LLM 推理数据并行负载均衡(DPLB)浅析Parallel Strategy@kaiyuan⭐️⭐️⭐️
vLLM PD 分离方案浅析PD Disaggregation@kaiyuan⭐️⭐️⭐️
vLLM PD 分离 KV Cache 传递机制详解与演进分析PD Disaggregation@kaiyuan⭐️⭐️⭐️
vLLM 多模态推理|ViT 性能优化Multi-Modal@SSS不知-道⭐️⭐️⭐️⭐️
vLLM 多模态推理|卷积计算加速Multi-Modal@SSS不知-道⭐️⭐️
vLLM 多模态 Cache 缓存机制分析Multi-Modal@黑白⭐️⭐️

📖 Dive into PyTorch

📖 CUDA Programming

TitleCategoryAuthorNoteRecRead
CUDA 内核优化策略Performance@Zhang⭐️⭐️⭐️
从啥也不会到 CUDA GEMM 优化Performance@猛猿⭐️⭐️⭐️⭐️

📖 Communication

TitleCategoryAuthorNoteRecRead
NCCL: Collective OperationsCollective Communication@NVIDIA Developer集合通信常用操作⭐️⭐️⭐️⭐️
一文读懂|RDMA 原理Network@Linux内核库⭐️⭐️⭐️⭐️
PyTorch 中基于 CUDA IPC 的进程间 Tensor 共享简介IPC@kaiyuan⭐️⭐️⭐️

📖 Multi-Modality

TitleCategoryAuthorNoteRecRead
多模态技术梳理:ViT 系列ViT@姜富春ViT 研究综述⭐️⭐️⭐️
LLaVA 系列模型结构详解ViT@Zhang⭐️⭐️⭐️
文生图模型之 Stable DiffusionDiffusion@小小将⭐️⭐️⭐️⭐️
DiT 推理加速综述: CachingDiffusion@DefTruth⭐️⭐️⭐️⭐️

📖 Dive into Qwen

📖 Dive into DeepSeek

📖 Development

TitleCategoryAuthorNoteRecRead
LLM Inference 高效 Debug 方法汇总Debug@CarryPls⭐️⭐️
推理性能优化:GPU/NPU Profiling 阅读引导Profiling@kaiyuan⭐️⭐️⭐️⭐️

📚 Papers

Refer to How to Read a Paper to master a practical and efficient three-pass method for reading papers.

📚 Learning Projects

ProjectCategoryAuthor/OrganizationAbout
llm-actionMLSys@liguodongiot本项目旨在分享大模型相关技术原理以及实战经验(大模型工程化、大模型应用落地)。
awesomeMLSysMLSys@GPU MODEAn ML Systems Onboarding list.
InfraTechMLSys@CalvinXKY分享AI Infra知识&代码练习:PyTorch/vLLM/SGLang框架入门⚡️、性能加速🚀、大模型基础🧠、AI软硬件🔧等。
AI-Infra-from-Zero-to-HeroMLSys@HuaizhengZhang🚀 Awesome System for Machine Learning ⚡️ AI System Papers and Industry Practice. ⚡️ System for Machine Learning, LLM (Large Language Model), GenAI (Generative AI). 🍻 OSDI, NSDI, SIGCOMM, SoCC, MLSys, etc. 🗃️ Llama3, Mistral, etc. 🧑‍💻 Video Tutorials.
resource-streamCUDA@GPU MODEGPU programming related news and material links.
BasicCUDACUDA@CalvinXKYA tutorial for CUDA & PyTorch.

©️ Citation

@misc{cs-self-learning@2023,
  title  = {cs-self-learning},
  url    = {https://github.com/shen-shanshan/cs-self-learning},
  note   = {Open-source software available at https://github.com/shen-shanshan/cs-self-learning},
  author = {shen-shanshan},
  year   = {2023}
}

📜 License

MIT License, find more details here.

⭐ Star History

Star History Chart

cpp
cuda
go
gpu
infrastructure
java
llm
npu
python

Contributors

shen-shanshan

498 commits

Languages

Jupyter Notebook

66.7%

Java

28.8%

Python

2.4%