efficient-dl-systems

mryabMIT更新放缓

一门讲高效深度学习系统的课程材料,覆盖 CUDA 编程、分布式训练和推理优化,帮你搞懂怎么把模型训得更快、跑得更省。

Efficient Deep Learning Systems course materials

暂无版本1,051star153fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
README 未说明
硬件要求按 README 说明

README 未说明

需要 CUDA多卡 / 张量并行
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

HSE 与 Yandex 数据学院的高效深度学习系统课程材料,覆盖训练优化到推理部署

一门讲高效深度学习系统的课程材料,覆盖 CUDA 编程、分布式训练和推理优化,帮你搞懂怎么把模型训得更快、跑得更省。

核心能力

  • 按周组织讲义与研讨课,从 CUDA 基础到 LLM 推理优化
  • 讲解混合精度、性能剖析与数据加载优化
  • 覆盖数据并行、All-Reduce、张量并行与 FSDP
  • 介绍 KV 缓存、连续批处理与 PagedAttention 服务优化
  • 包含量化、投机解码与 KV 缓存压缩等推理算法

容易踩的坑

README 未给出安装与运行步骤,需进入各周目录自行查看材料;仓库为课程材料而非可直接安装的软件包

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Efficient Deep Learning Systems

    This repository contains materials for the Efficient Deep Learning Systems course, taught at the Faculty of Computer Science of HSE University and Yandex School of Data Analysis.

    This branch corresponds to the 2026 iteration of the course. If you want to see full materials of past years, see the "Past versions" section.

    Syllabus

    • Week 1: Introduction
      • Lecture: Course overview and logistics. Core concepts of the GPU architecture and the CUDA API.
      • Seminar: CUDA operations in PyTorch. Introduction to benchmarking.
    • Week 2: General training optimizations, profiling deep learning code
      • Lecture: Measuring performance of GPU-accelerated software. Mixed-precision training. Data storage and loading optimizations. Tools for profiling deep learning workloads.
      • Seminar: Automatic Mixed Precision in PyTorch. Basics of profiling with py-spy, PyTorch Profiler, Memory Snapshot and Nsight Systems. Dynamic padding for sequence data and JPEG decoding benchmarks.
    • Week 3: Data-parallel training and All-Reduce
      • Lecture: Introduction to distributed training. Data-parallel training of neural networks. All-Reduce and its efficient implementations.
      • Seminar: Introduction to PyTorch Distributed. Data-parallel training primitives.
    • Week 4: Methods for training large models
      • Lecture: Tensor, pipeline, sequence parallelism. Gradient checkpointing, offloading.
      • Seminar: Gradient checkpointing and tensor parallelism in practice.
    • Week 5: Sharded data-parallel training, distributed training optimizations
      • Lecture: FSDP training and its optimizations.
      • Seminar: In-depth overview of PyTorch Device Mesh, DTensor, FSDP2, and Distributed Checkpoint.
    • Week 6: Deep learning performance from first principles.
      • Lecture: Arithmetic of Deep Learning
      • Seminar: Kernel fusion, torch.compile, GPU memory hierarchy and Liger kernels
    • Week 7: Basics of web service deployment.
      • Lecture/Seminar: Web service deployment and production-ready systems basics.
    • Week 8: Systems optimizations for inference
      • Lecture: Inference speed metrics. KV caching, batch inference, continuous batching. FlashAttention with its modifications and PagedAttention. Overview of popular LLM serving frameworks.
      • Seminar: KV cache utilization, continuous batching for high-throughput serving, and performance measurements of the prefill and decode stages.
    • Week 9: Algorithmic optimizations for inference.
      • Lecture: LLM inference use cases and metrics. Architecture optimizations, quantization, speculative decoding, KV cache compression, knowledge distillation.
      • Seminar: Proof of distribution preservation in speculative decoding. Matrix multiplication in Triton for different scenarios. Using nsys profile.
    • Week 10: Guest lecture

    Grading

    There will be several home assignments (spread over multiple weeks) on the following topics:

    • Training pipelines and code profiling
    • Distributed and memory-efficient training
    • Deploying and optimizing models for production

    The final grade is a weighted sum of per-assignment grades. Please refer to the course page of your institution for details.

    Staff

    Past versions