# aa1143/NamiGPT

- 原标题：aa1143/NamiGPT
- 类型：项目
- 来源：GitHub
- 发布时间：2026-10-28
- 首次精选：2026-11-02 01:09
- 分级：值得看
- 学习层级：入门
- 主题：[pretraining-data](<https://oplearnx.com/md/topics/pretraining-data.md>)（第 1 位）、[neural-model-foundations](<https://oplearnx.com/md/topics/neural-model-foundations.md>)（第 7 位）
- 原文链接：[https://github.com/aa1143/NamiGPT](<https://github.com/aa1143/NamiGPT>)
- 本站页面：[https://oplearnx.com/resources/pk\_0d075fae7cc9](<https://oplearnx.com/resources/pk_0d075fae7cc9>)

## 摘要

一个中文教程型仓库，主题是从零手写 GPT-2，用 PyTorch 逐步实现 attention、transformer 等组件，讲解大模型的工作过程。仓库标注面向零基础读者入门 LLM，配有图文教程站点 namiai.tech，代码采用 MIT 许可、文档采用 CC BY-NC 4.0 许可。适合刚开始学习大模型原理、想通过手写代码理解 GPT 结构的人阅读。

## 热度

- 档位：有热度
- 7 天新增 star：+157
- 30 天新增 star：+157
- Hacker News：没有
- 社区讨论：0 帖

## 项目信息

- 语言：Python
- 许可：MIT
- 最近提交：2026-10-28
- Star：157
- Fork：14

## 上手方式

```bash
git clone https://github.com/aa1143/NamiGPT.git
cd NamiGPT
pip install -r requirements.txt

# 国内网络建议先设置 HuggingFace 镜像（只用来下载官方权重）
export HF_ENDPOINT=https://hf-mirror.com
```

摘自 [README](<https://github.com/aa1143/NamiGPT/blob/main/README.md>)

## 原文涉及

- [GitHub - huggingface/transformers: 🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and t…](<https://github.com/huggingface/transformers>)

---
来源：LearnMap · 学径（https://oplearnx.com）
