<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>训练 on k4i's blog</title><link>https://k4i.top/zh/tags/%E8%AE%AD%E7%BB%83/</link><description>Recent content in 训练 on k4i's blog</description><generator>Hugo -- gohugo.io</generator><language>zh</language><managingEditor>sky_io@outlook.com (K4i)</managingEditor><webMaster>sky_io@outlook.com (K4i)</webMaster><copyright>All content is subject to the license of &lt;a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank"&gt;CC BY-NC-SA 4.0&lt;/a&gt; .</copyright><lastBuildDate>Wed, 27 May 2026 22:00:00 +0800</lastBuildDate><atom:link href="https://k4i.top/zh/tags/%E8%AE%AD%E7%BB%83/index.xml" rel="self" type="application/rss+xml"/><item><title>如何估算 LLM 训练和推理需要多少算力与显存</title><link>https://k4i.top/zh/posts/llm-flops-memory-estimation/</link><pubDate>Wed, 27 May 2026 22:00:00 +0800</pubDate><author>sky_io@outlook.com (K4i)</author><atom:modified>Thu, 28 May 2026 00:58:01 +0800</atom:modified><guid>https://k4i.top/zh/posts/llm-flops-memory-estimation/</guid><description>&lt;h2 id="introduction"&gt;引言&lt;/h2&gt;
&lt;p&gt;如果我要训练一个 7B 模型，需要准备多少 GPU？训练 1T tokens 大概要多久？如果只是部署推理，一张 24GB 显卡能不能跑？上下文长度从 4K 增加到 32K，显存为什么突然不够了？&lt;/p&gt;</description><dc:creator>K4i</dc:creator><media:content url="https://k4i.top//images/posts/llm-flops-memory-estimation/flops-memory-icon.svg" medium="image"><media:title type="html">featured image</media:title></media:content><category>llm</category><category>训练</category><category>推理</category><category>flops</category><category>显存</category><category>transformer</category><category>AI</category></item></channel></rss>