<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>从零实现 on Text Matrix</title><link>https://txtmix.com/tags/%E4%BB%8E%E9%9B%B6%E5%AE%9E%E7%8E%B0/</link><description>Recent content in 从零实现 on Text Matrix</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 21 Jul 2026 20:06:14 +0800</lastBuildDate><atom:link href="https://txtmix.com/tags/%E4%BB%8E%E9%9B%B6%E5%AE%9E%E7%8E%B0/index.xml" rel="self" type="application/rss+xml"/><item><title>TrainLLMFromScratch: 从零训练你自己的大语言模型</title><link>https://txtmix.com/posts/tech/fareedkhan-train-llm-from-scratch/</link><pubDate>Sun, 31 May 2026 10:15:00 +0800</pubDate><guid>https://txtmix.com/posts/tech/fareedkhan-train-llm-from-scratch/</guid><description>&lt;h2 id="学习目标">学习目标&lt;/h2>
&lt;p>读完这篇文章后，你应该能够：&lt;/p>
&lt;ol>
&lt;li>描述一套最小但完整的 Transformer 训练管线长什么样&lt;/li>
&lt;li>指出从 13M 到 2B 参数，不同规模模型的代码差异在哪里&lt;/li>
&lt;li>跟踪一次前向 + 反向传播在代码里实际流过哪些模块&lt;/li>
&lt;li>根据自己的 GPU 显存，判断能训多大规模的模型，以及应该从哪一步开始&lt;/li>
&lt;/ol>
&lt;h2 id="目录">目录&lt;/h2>
&lt;p>| → | &lt;a href="#%e9%a1%b9%e7%9b%ae%e9%80%9f%e8%a7%88" rel="">项目速览&lt;/a> | &lt;a href="#%e7%b3%bb%e7%bb%9f%e6%80%bb%e8%a7%88" rel="">系统总览&lt;/a> | &lt;a href="#%e9%a1%b9%e7%9b%ae%e6%a0%b8%e5%bf%83%e6%9e%b6%e6%9e%84" rel="">项目核心架构&lt;/a> | &lt;a href="#%e4%b8%80%e6%ac%a1%e8%ae%ad%e7%bb%83%e6%ad%a5%e9%aa%a4%e5%a6%82%e4%bd%95%e6%b5%81%e8%bf%87%e7%b3%bb%e7%bb%9f" rel="">一次训练步骤如何流过系统&lt;/a> | &lt;a href="#%e8%ae%ad%e7%bb%83%e6%b5%81%e7%a8%8b%e8%af%a6%e8%a7%a3" rel="">训练流程详解&lt;/a> | &lt;a href="#%e7%94%9f%e6%88%90%e6%95%88%e6%9e%9c%e5%af%b9%e6%af%94" rel="">生成效果对比&lt;/a> | &lt;a href="#%e9%80%82%e7%94%a8%e8%be%b9%e7%95%8c%e4%b8%8e%e9%87%87%e7%94%a8%e5%bb%ba%e8%ae%ae" rel="">适用边界与采用建议&lt;/a> | &lt;a href="#%e5%b8%b8%e8%a7%81%e9%97%ae%e9%a2%98" rel="">常见问题&lt;/a> | &lt;a href="#%e8%87%aa%e6%b5%8b" rel="">自测&lt;/a> | &lt;a href="#%e5%bb%b6%e4%bc%b8%e9%98%85%e8%af%bb" rel="">延伸阅读&lt;/a> | &lt;a href="#%e8%bf%9b%e9%98%b6%e8%b7%af%e5%be%84" rel="">进阶路径&lt;/a> |&lt;/p></description></item></channel></rss>