update chapter 2

This commit is contained in:
bbruceyuan
2024-11-24 23:24:57 +08:00
parent bcba3b9bd8
commit 75ba6a6dd4
+6 -4
View File
@@ -21,10 +21,10 @@
国内用户如果想要运行,最好还是用[中文可运行 Notebook](https://openbayes.com/console/bbruceyuan/containers/RhWOr6vTLN4),你可以复制我的容器直接运行这些代码,[注册链接](https://openbayes.com/console/signup?r=bbruceyuan_1o6b),这样不需要翻墙,国内网络环境访问 Google Colab 可能比较慢。
| 章节 | Google Colab | 中文 Notebook | 视频讲解(可点击)|
| 章节 | Google Colab | 中文 Notebook<br/>复制后可直接运行| 视频讲解 <br/> (可点击)|
|---|---|------|------|
| 第一章: 介绍大模型 | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HandsOnLLM/Hands-On-Large-Language-Models/blob/main/chapter01/Chapter%201%20-%20Introduction%20to%20Language%20Models.ipynb) | [![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/bbruceyuan/jobs/635ogjxzfyky/output?path=/Hands-On-Large-Language-Models-CN/chapter01/Chapter+1+-+Introduction+to+Language+Models.ipynb) | [![bilibili](https://img.shields.io/badge/dynamic/json?label=views&style=social&logo=bilibili&query=data.stat.view&url=https%3A%2F%2Fapi.bilibili.com%2Fx%2Fweb-interface%2Fview%3Fbvid%3DBV16Am3Y4ES3)](https://www.bilibili.com/video/BV16Am3Y4ES3/)<br />[![Youtube](https://img.shields.io/youtube/views/BvdAH38BCe8?style=social)](https://www.youtube.com/watch?v=BvdAH38BCe8) |
| 第二章: Tokens and Embeddings | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HandsOnLLM/Hands-On-Large-Language-Models/blob/main/chapter02/Chapter%202%20-%20Tokens%20and%20Token%20Embeddings.ipynb) | [![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/bbruceyuan/jobs/635ogjxzfyky/output?path=%2FHands-On-Large-Language-Models-CN%2Fchapter02%2FChapter+2+-+Tokens+and+Embeddings.ipynb) | 在录了~ |
| 第一章: 介绍大模型 | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HandsOnLLM/Hands-On-Large-Language-Models/blob/main/chapter01/Chapter%201%20-%20Introduction%20to%20Language%20Models.ipynb) | [![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/bbruceyuan/containers/pfiQnfIjPo6) | [![bilibili](https://img.shields.io/badge/dynamic/json?label=views&style=social&logo=bilibili&query=data.stat.view&url=https%3A%2F%2Fapi.bilibili.com%2Fx%2Fweb-interface%2Fview%3Fbvid%3DBV16Am3Y4ES3)](https://www.bilibili.com/video/BV16Am3Y4ES3/)<br />[![Youtube](https://img.shields.io/youtube/views/BvdAH38BCe8?style=social)](https://www.youtube.com/watch?v=BvdAH38BCe8) |
| 第二章: Tokens and Embeddings | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HandsOnLLM/Hands-On-Large-Language-Models/blob/main/chapter02/Chapter%202%20-%20Tokens%20and%20Token%20Embeddings.ipynb) | [![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/bbruceyuan/containers/LkZZVWNf0F4) | [![bilibili](https://img.shields.io/badge/dynamic/json?label=views&style=social&logo=bilibili&query=data.stat.view&url=https%3A%2F%2Fapi.bilibili.com%2Fx%2Fweb-interface%2Fview%3Fbvid%3DBV1yRB8YwEBt)](https://www.bilibili.com/video/BV1yRB8YwEBt/)<br /> |
| 第三章: Looking Inside Transformer LLMs | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HandsOnLLM/Hands-On-Large-Language-Models/blob/main/chapter03/Chapter%203%20-%20Looking%20Inside%20LLMs.ipynb) | [![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/bbruceyuan/jobs/635ogjxzfyky/output?path=%2FHands-On-Large-Language-Models-CN%2Fchapter03%2FChapter+3+-+Looking+Inside+Transformer+LLMs.ipynb) | 在录了~ |
| 第四章: Text Classification | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HandsOnLLM/Hands-On-Large-Language-Models/blob/main/chapter04/Chapter%204%20-%20Text%20Classification.ipynb) | [![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/bbruceyuan/jobs/635ogjxzfyky/output?path=%2FHands-On-Large-Language-Models-CN%2Fchapter04%2FChapter+4+-+Text+Classification.ipynb) | 在录了~ |
| 第五章: Text Clustering and Topic Modeling | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HandsOnLLM/Hands-On-Large-Language-Models/blob/main/chapter05/Chapter%205%20-%20Text%20Clustering%20and%20Topic%20Modeling.ipynb) | [![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/signup?r=bbruceyuan_1o6b) | 在录了~ |
@@ -34,7 +34,9 @@
| 第九章: Multimodal Large Language Models | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HandsOnLLM/Hands-On-Large-Language-Models/blob/main/chapter09/Chapter%209%20-%20Multimodal%20Large%20Language%20Models.ipynb) | [![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/signup?r=bbruceyuan_1o6b) | 在录了~ |
| 第十章: Creating Text Embedding Models | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HandsOnLLM/Hands-On-Large-Language-Models/blob/main/chapter10/Chapter%2010%20-%20Creating%20Text%20Embedding%20Models.ipynb) | [![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/signup?r=bbruceyuan_1o6b) | 在录了~ |
| 第十一章: Fine-tuning Representation Models for Classification | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HandsOnLLM/Hands-On-Large-Language-Models/blob/main/chapter11/Chapter%2011%20-%20Fine-Tuning%20BERT.ipynb) |[![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/signup?r=bbruceyuan_1o6b) | 在录了~ |
| 第 12.1 章: 大模型 SFT | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HandsOnLLM/Hands-On-Large-Language-Models/blob/main/chapter12/Chapter%2012%20-%20Fine-tuning%20Generation%20Models.ipynb) | [![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/bbruceyuan/jobs/635ogjxzfyky/output?path=%2FHands-On-Large-Language-Models-CN%2Fchapter12%2FChapter+12+-+Fine-tuning+Generation+Models.ipynb) | [![bilibili](https://img.shields.io/badge/dynamic/json?label=views&style=social&logo=bilibili&query=data.stat.view&url=https%3A%2F%2Fapi.bilibili.com%2Fx%2Fweb-interface%2Fview%3Fbvid%3DBV1NM1tY3Eu5)](https://www.bilibili.com/video/BV1NM1tY3Eu5/)<br />[![Youtube](https://img.shields.io/youtube/views/ZN_tfSTTBho?style=social)](https://www.youtube.com/watch?v=ZN_tfSTTBho) |
| 第 12.1 章: 大模型 SFT | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HandsOnLLM/Hands-On-Large-Language-Models/blob/main/chapter12/Chapter%2012%20-%20Fine-tuning%20Generation%20Models.ipynb) | [![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/bbruceyuan/containers/OPg9Oo99ET6) | [![bilibili](https://img.shields.io/badge/dynamic/json?label=views&style=social&logo=bilibili&query=data.stat.view&url=https%3A%2F%2Fapi.bilibili.com%2Fx%2Fweb-interface%2Fview%3Fbvid%3DBV1NM1tY3Eu5)](https://www.bilibili.com/video/BV1NM1tY3Eu5/)<br />[![Youtube](https://img.shields.io/youtube/views/ZN_tfSTTBho?style=social)](https://www.youtube.com/watch?v=ZN_tfSTTBho) |
| bonous1 - 动手实现 LoRA(非import peft | [LoRA 原理和 PyTorch 代码实现](https://bruceyuan.com/hands-on-code/hands-on-lora.html) | [![中文可运行 Notebook](https://img.shields.io/badge/notebook-openbayes%E5%B9%B3%E5%8F%B0-pink)](https://openbayes.com/console/bbruceyuan/containers/dqZ35wOdmzh) | [![bilibili](https://img.shields.io/badge/dynamic/json?label=views&style=social&logo=bilibili&query=data.stat.view&url=https%3A%2F%2Fapi.bilibili.com%2Fx%2Fweb-interface%2Fview%3Fbvid%3DBV1fHmkYyE2w)](https://www.bilibili.com/video/BV1fHmkYyE2w/)<br /> |
> [!TIP]
> You can check the [setup](.setup/) folder for a quick-start guide to install all packages locally and you can check the [conda](.setup/conda/) folder for a complete guide on how to setup your environment, including conda and PyTorch installation.