Stanford / CS217已收录

Hardware Accelerators for Machine Learning

从能耗、计算单元、内存与数据流出发,理解机器学习加速器的设计。

关于这组笔记

个人英文自学讲义,依据 Winter 2026 公开课表、阅读论文与客座讲者资料编写;原课 slides、lab 仓库与录像未公开,配套实验为自编 Python 硬件模型。

查看原课程资料

适合的起点

建议熟悉并行计算或计算机体系结构、矩阵乘法、神经网络与 Python。

本系列为个人学习整理,非学校官方发布,不代表学校或授课教师的认可或背书。

沿着目录阅读

当前 17 篇

课程讲义

  1. Lecture 01Lecture 1 · Introduction: The Energy Problem, the Roofline, and What ML Asks of Hardware
  2. Lecture 02Lecture 2 · High-Level Synthesis: From C++ to Hardware
  3. Lecture 03Lecture 3 · Data Parallelism and Efficiency Metrics
  4. Lecture 04Lecture 4 · Quantization: Number Formats, Block Scaling, and What Bits Cost
  5. Lecture 05Lecture 5 · Systolic Arrays: Pumping Data Through a Grid of MACs
  6. Lecture 06Lecture 6 · Vector and Scalar Units: Everything the Matrix Unit Cannot Do
  7. Lecture 07Lecture 7 · Memory Systems: Feeding the Arithmetic
  8. Lecture 08Lecture 8 · Interconnects and Networks-on-Chip: Moving Data Between the Blocks
  9. Lecture 09Lecture 9 · Compilers and Software Stack (Part 1): Dataflows and Mapping
  10. Lecture 10Lecture 10 · Compilers and Software Stack (Part 2): Fusion, Attention Kernels and Memory Management
  11. Lecture 11Lecture 11 · GPU Architectures
  12. Lecture 12Lecture 12 · Reconfigurable Dataflow Architectures
  13. Lecture 13Lecture 13 · SambaNova's Reconfigurable Dataflow Architecture (guest lecture)
  14. Lecture 14Lecture 14 · Memory-Centric Computing (Part 1): Processing Near and Using Memory
  15. Lecture 15Lecture 15 · Memory-Centric Computing (Part 2): Computing in Memory Arrays
  16. Lecture 16Lecture 16 · AWS Inferentia and Trainium AI Accelerators (guest lecture)
  17. Lecture 17Lecture 17 · NVIDIA GPU Architecture for AI (guest lecture), and Course Review

从讲义到代码

按课程目录整理的配套示例,保留各单元的文件结构。阅读讲义时,可以下载整套代码,在本地逐步探索。

下载 CS217 代码

请在独立虚拟环境中查看依赖后运行;未附模型权重和运行产物;示例未逐一验证。

返回全部课程