<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>LLaMA on Kerroの奇妙冒険</title><link>https://blog.kerro.cn/tags/llama/</link><description>Recent content from Kerroの奇妙冒険</description><generator>Hugo</generator><language>zh-CN</language><copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright><lastBuildDate>Fri, 17 Jul 2026 13:00:00 +0800</lastBuildDate><atom:link href="https://blog.kerro.cn/tags/llama/index.xml" rel="self" type="application/rss+xml"/><item><title>拆开 LLM（三）：手写 Transformer，然后把它换件成 LLaMA</title><link>https://blog.kerro.cn/2026/07/17/llm-anatomy-03-transformer-to-llama/</link><pubDate>Fri, 17 Jul 2026 13:00:00 +0800</pubDate><guid>https://blog.kerro.cn/2026/07/17/llm-anatomy-03-transformer-to-llama/</guid><description>
<![CDATA[<h1>拆开 LLM（三）：手写 Transformer，然后把它换件成 LLaMA</h1><p>作者：Kerro（）</p>
        
          <blockquote>
<p><a href="https://github.com/KerroKapple/llm-anatomy">llm-anatomy</a> 是一个&quot;把 LLM 拆开看&quot;的教学连载：不调库、不背黑话，每一章把大模型的一个器官亲手造一遍，所有结论都配可复现的实验数字。</p>
<p><a href="/2026/07/17/llm-anatomy-02-attention/">上一篇《拆开 LLM（二）：手撕注意力》</a>把注意力这台发动机完全拆开了。这一篇把整车焊出来：先造一台 2017 年的原版 Transformer，再像换汽车零件一样，把它逐件换成 LLaMA。</p>
        
        <hr><p>本文2026-07-17首发于<a href='https://blog.kerro.cn/'>Kerroの奇妙冒険</a>，最后修改于2026-07-17</p>]]></description><category>项目实战</category></item></channel></rss>