annotated_deep_learning_paper_implementations

labmlaiMIT活跃维护

用 PyTorch 逐行复现 60 多篇深度学习经典论文,代码旁配注释讲解,涵盖 Transformer、优化器、GAN、强化学习等,适合边读论文边对照实现学习。

🧑‍🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠

暂无版本67,741star +27 / 7 天6,789fork同步于 2026-11-10 05:18 UTC

怎么上手

由 README 提炼,执行前请确认
pip install labml-nn
硬件要求按 README 说明

README 未说明统一硬件要求;仅在 GPT-NeoX 示例中标注生成需 48GB GPU、微调需两张 48GB GPU。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用 PyTorch 复现 60+ 篇深度学习论文,代码与逐行注释并排展示,方便读懂算法细节

用 PyTorch 逐行复现 60 多篇深度学习经典论文,代码旁配注释讲解,涵盖 Transformer、优化器、GAN、强化学习等,适合边读论文边对照实现学习。

核心能力

  • 覆盖 Transformer、GAN、扩散模型、强化学习等 60+ 论文实现
  • 每个实现配逐行注释,网站并排渲染成可读笔记
  • 提供 Triton Flash Attention、LoRA、LLM.int8() 等工程化实现
  • 含 Adam、Sophia-G、AdaBelief 等优化器与各类归一化层
  • 仓库持续维护,几乎每周新增论文实现

容易踩的坑

README 只给出 pip 安装包,未说明各示例的额外依赖与运行方式;GPT-NeoX 等大模型示例需按文档自行准备大显存环境;部分实现依赖 Triton、JAX 等可选后端,README 未说明安装方式。

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

最近发版

0 个版本

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

用户点评

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

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

    README 原文

    未翻译

    Twitter

    labml.ai Deep Learning Paper Implementations

    Note: use the Annotated Implementation Skill with coding agents to implement any paper with annotations.

    This is a collection of simple PyTorch implementations of neural networks and related algorithms. These implementations are documented with explanations,

    The website renders these as side-by-side formatted notes. We believe these would help you understand these algorithms better.

    Screenshot

    We are actively maintaining this repo and adding new implementations almost weekly. Twitter for updates.

    Paper Implementations

    ✨ Transformers
    ✨ Low-Rank Adaptation (LoRA)
    ✨ Eleuther GPT-NeoX
    ✨ Diffusion models
    ✨ Generative Adversarial Networks
    ✨ Recurrent Highway Networks
    ✨ LSTM
    ✨ HyperNetworks - HyperLSTM
    ✨ ResNet
    ✨ ConvMixer
    ✨ Capsule Networks
    ✨ U-Net
    ✨ Sketch RNN
    ✨ Graph Neural Networks
    ✨ Counterfactual Regret Minimization (CFR)

    Solving games with incomplete information such as poker with CFR.

    ✨ Reinforcement Learning
    ✨ Optimizers
    ✨ Normalization Layers
    ✨ Distillation
    ✨ Adaptive Computation
    ✨ Uncertainty
    ✨ Activations
    ✨ Langauge Model Sampling Techniques
    ✨ Scalable Training/Inference

    Installation

    pip install labml-nn