Skip to content
项目

关于

TinyML and Efficient AI Computing | MIT 6.S965/6.5940

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

TinyML and Efficient AI Computing

MIT 6.S965/6.5940 • Fall • 2022-2024, 2026
Instructor : Song Han(Associate Professor, MIT EECS)


Lecture notes for courses MIT 6.S965, Fall 2022 | MIT 6.5940, Fall 2023•2024•2026

Courses

Course Video Slide Note Homework
MIT 6.5940 • 2026 • Fall Videos Slides Notes Lab 0 / Lab 1 / Lab 2 / Lab 3 / Lab 4 / Lab 5
MIT 6.5940 • 2024 • Fall Videos Slides Notes Lab 1 / Lab 2 / Lab 3 / Lab 4 / Lab 5
MIT 6.5940 • 2023 • Fall Videos Slides Notes -
MIT 6.S965 • 2022 • Fall Videos Slides Notes Lab 4: Deployment on MCU

Lecture Notes

📖 Basics of Deep Learning

  • Basic Terminologies, Shape of Tensors

    Terminologies, Shape of Tensors(FFN, Convolution, Pooling, Normalization)

    Transformer, Popular CNN Architectures(AlexNet, VGG16, ResNet50, MobileNetV2)

  • Efficiency Metrics

    Metrics: Latency, Energy, Storage

    Memory-related(#parameters, model size, peak/total activations), Computation-related(MACs, FLOPs)

📙 Efficient Inference

⚙️ Efficient Training and System Support

  • On-device Training, Transfer Learning

    Efficient Transfer Learning: TinyTL(Bias-only Fine-tuning, Lite residual module)

    Sparse Layer/Tensor Update(Contribution Analysis), Real Quantized Training

  • Tiny Training Engine

    Intermediate Representation(IR), Compile-Time Autodiff

    Graph-level Optimization(Sparse Update, Operation Reordering)

  • Compilers, Graph-level Optimization

    Compilers: Halide, TVM, AutoTVM

    Graph-level Optimization Framework: MetaFlow, IOS

  • Microcontroller, Loop Optimization

    Memory Hierarchy of Microcontroller, Primary Memory Format(NCHW, NHWC, CHWN)

    Parallel Computing Techniques: Loop Optimization(Unrolling, Reordering, Tiling)

  • Inference Optimization

    Parallel Computing Techniques: SIMD Programming(CMSIS-NN)

    Inference Optimization: Im2col, In-place, Choosing Data Layout(pointwise, depthwise), Winograd Convolution


🔧 Domain-Specific Optimizations

  • Transformer

    NLP Task(Discriminative, Generative), Pre-Transformer Era(RNN/LSTM, CNN)

    Transformer: Tokenizer, Embedding, Multi-Head Attention(self-attention), Feed-Forward Network, Layer Normalization(Pre-Norm, Post-Norm), Positional Encoding

  • Transformer Design Variants

    Types of Transformer-based Models: Encoder-Decoder(T5), Encoder-only(BERT), Decoder-only(GPT)

    Relative Positional Encoding(ALiBi, RoPE, interpolating RoPE), KV cache optimization(Multi-query Attention, Grouped-query Attention), Gated Linear Unit


  • LLM Quantization

    Quantization Difficulty of LLMs, Bottleneck of edge LLM Inference(Memory-bounded, Memory footprint of Weights)

    Weight-activation Quantization: SmoothQuant(Activation Smoothing)

    Weight-only Quantization: AWQ(1% Salient Weights, Activation-aware Scaling)

  • Efficient System Support for LLM Quantization

    System for Edge: TinyChat(Hardware-aware Weight Packing, Kernel Fusion)

    System for Cloud: Overhead in Quantized GEMM, QServe(SmoothAttention, Dequantization with Reg-Level Parallelism)

  • LLM Pruning & Sparsity

    Weight Sparsity: Wanda

    Contextual Sparsity: Deja Vu, Mixture-of-Experts

    Attention Sparsity: SpAtten, H2O

  • LLM Serving Systems

    Metrics for LLM Serving(TTFT, TPOT, Latency, Throughput), Heuristics for Evaluation

    PagedAttention(vLLM), FlashAttention, Speculative Decoding, Batching(Static, Dynamic, Continuous)


  • LLM Post Training

    Supervised Fine-Tuning, Reinforcement Learning from Human Feedback, Direct Preference Optimization

    Parameter-Efficient Fine-Tuning: Additive(Adapter, Prompt/Prefix Tuning) Selective(BitFit), Reparameterized(LoRA)

    PEFT Quantization: QLoRA, BitDelta

  • Prompt Engineering

    In-Context Learning: Zero-Shot Prompting, Few-Shot Prompting

    Chain-of-Thought, Retrieval Augmented Generation

  • Long Context LLM

    LongLoRA(Shifted Sparse Attention), StreamingLLM(Attention Sink)

    The Lost in the Middle Phenomenon, Needle In A Haystack Analysis, LongBench

  • Efficient Attention, Beyond Transformers

    DuoAttention(Retrieval, Streaming Head), Quest(Query-Aware Sparsity)

    Mamba(Selective State-Space Models), Jamba


  • Vision Transformer

    Vision Transformer, High-Resolution Dense Prediction(Segment Anything)

    Window Attention(Swin Transformer, FlatFormer), ReLU Linear Attention(EfficientViT, EfficientViT-SAM), Sparse Attention(SparseViT)

  • ViT Training, AR Image Generation

    Contrastive Learning(CLIP), Masked Image Modeling

    Multi-modal LLMs(Flamingo, PaLM-E)

    Autoregressive Image Generation(VAR, HART)

  • Efficient Video Understanding

    2D CNNs for Video Understanding, 3D CNNs for Video Understanding(I3D), Temporal Shift Module(TSM)

    Other Efficient Methods: Kernel Decomposition, Multi-Scale Modeling, Neural Architecture Search(X3D), Skipping Redundant Frames/Clips, Utilizing Spatial Redundancy

  • Generative Adversarial Networks (GANs)

    GANs(Generator, Discriminator), Conditional/Unconditional GANs, Difficulties in GANs

    Compress Generator(GAN Compression), Dynamic Cost GANs(Anycost GANs), Data-Efficient GANs(Differentiable Augmentation)

  • Efficient Point Cloud Recognition

    3D Data: Point Clouds, Multi-view Images(Range Image, BEV Projection), Voxels(Dense, Sparse), Octree

    Hybrid: Point-Voxel CNN(PVCNN, SPVConv), BEVFusion

探索相关项目

加载中…