TGViewer
AI Digest Today - 效率工具箱📦 AI Digest Today - 效率工具箱📦 @protoolkit · 411 subscribers
Post #90 564
🗳️ LLM101n: 从零开始实现大型语言模型
🌐 Karpathy 开发的LLM教程

LLM101n是Andrej Karpathy开发的一套从零开始实现大型语言模型(LLM)的教程和代码库。在本课程中,我们将构建一个 Storyteller AI 大语言模型 (LLM)。携手并进,您将能够使用 AI 创建、完善和阐释小故事。我们将使用 Python、C 和 CUDA 从头开始​​,以最少的计算机科学先决条件构建从基础知识到类似于 ChatGPT 的功能性 Web 应用程序的端到端的一切。最后,您应该对 AI、LLMs 和更广泛的深度学习有相对深入的了解。


Syllabus:
Chapter 01 Bigram Language Model (language modeling)
Chapter 02 Micrograd (machine learning, backpropagation)
Chapter 03 N-gram model (multi-layer perceptron, matmul, gelu)
Chapter 04 Attention (attention, softmax, positional encoder)
Chapter 05 Transformer (transformer, residual, layernorm, GPT-2)
Chapter 06 Tokenization (minBPE, byte pair encoding)
Chapter 07 Optimization (initialization, optimization, AdamW)
Chapter 08 Need for Speed I: Device (device, CPU, GPU, ...)
Chapter 09 Need for Speed II: Precision (mixed precision training, fp16, bf16, fp8, ...)
Chapter 10 Need for Speed III: Distributed (distributed optimization, DDP, ZeRO)
Chapter 11 Datasets (datasets, data loading, synthetic data generation)
Chapter 12 Inference I: kv-cache (kv-cache)
Chapter 13 Inference II: Quantization (quantization)
Chapter 14 Finetuning I: SFT (supervised finetuning SFT, PEFT, LoRA, chat)
Chapter 15 Finetuning II: RL (reinforcement learning, RLHF, PPO, DPO)
Chapter 16 Deployment (API, web app)
Chapter 17 Multimodal (VQVAE, diffusion transformer)

Further topics to work into the progression above:
Programming languages: Assembly, C, Python
Data types: Integer, Float, String (ASCII, Unicode, UTF-8)
Tensor: shapes, views, strides, contiguous, ...
Deep Learning frameowrks: PyTorch, JAX
Neural Net Architecture: GPT (1,2,3,4), Llama (RoPE, RMSNorm, GQA), MoE, ...
Multimodal: Images, Audio, Video, VQVAE, VQGAN, diffusion

🔥Karpathy昨天刚上传的github repo,内容尚未更新,可以先收藏下来!!!

Related Links:
- LLM101n GitHub仓库

🏷️ #course
🐟 @protoolkit
All about AI and Productivity.
  • 👍 1
More from @protoolkit
  1. Aug 18, 2024🗳️ Keyboard Maestro 🌐 一键获得选中文字+选中文字位置url的markdown link 上面有提到arc跳转highlight url的功能, 进一步我用…
  2. Jul 18, 2024🗳️ Arc浏览器:Copy Link to Highlight 🌐 精准分享网页内容 刚刚发现Arc 浏览器有一个非常实用的功能——Copy Link to Highligh…
  3. Jul 18, 2024🗳️ GPT-4o Mini:OpenAI加入大模型拼多多价格大战 🌐 OpenAI发布新模型GPT-4o Mini OpenAI推出了其最具成本效益的小型模型GPT-4o M…
  4. Jul 18, 2024🗳️ 9.11和9谁大? 🌐 绝大多数大模型错误回答 绝大部分大语言模型无法正确回答9.11和9谁大。然而,有两种提示方法可以有效解决这个问题: 1. 借用外部工具:通过让模型…
  5. Jul 16, 2024原来Karpathy的 LLM101n 是为了自己的AI教育公司做准备,就在刚刚,他官宣了自己的AI +Education company - Eureka Labs 公司官方推特…
  6. Jul 15, 2024🗳️ AI工具的墓地 🌐 曾经辉煌,如今谢幕 在AI领域,有许多工具和服务曾经风靡一时,如今却被遗弃。这个页面列出了这些已经停用或不再维护的AI项目,如Neeva、Airgra…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →