12-04 更新 实时
首页/ 模型选型/ 正文

双RTX 3090跑2.8万亿参数Kimi,3.11 Token/s

模型选型 来源:Tom's Hardware 2026-11-21 20:00 2 阅读 机器翻译
双RTX 3090跑2.8万亿参数Kimi,3.11 Token/s

一位家庭实验室玩家在 Reddit 的后续帖子中详细介绍了第二代 Optane AI 配置的改进,展示了新增两块 RTX 3090,以每秒 3.11 个 Token 的速度运行 2.8 万亿参数的 Moonshot Kimi K3 模型。将几乎一半的模型转移到内存盘后,生成速度显著提升了 41%,提示词评估提升了 26%。不过额外的风扇仍然必不可少,因为持续运行的 Optane 内存会变得非常热。

这一速度算不上最令人惊艳,但它的提示词评估速度为每秒 16.8 个 Token,94 个分片中有 45 个(即 865 GB 中的 414 GB)位于内存盘上。这种配置对爱好者来说并不新鲜——他们会划出系统内存,以类似非易失性的方式获得极快的性能——它实际上仍是易失性的,但表现得像一块磁盘——不过如今并非每个人都有这么多闲置内存可用。仅使用两块 GPU、不使用内存盘时,该配置的生成速度为每秒 2.20 个 Token,提示词评估为 13.3。

配置

模型存储位置

生成(Token/秒)

提示词评估(Token/秒)

全部 94 个分片位于 Optane

内存盘 + Optane

94 个分片中的 45 个(865 GB 中的 414 GB)放在 tmpfs 内存盘中,其余放在 Optane 中

大约快 41%

大约快 26%

构建者的测量数据;使用的是 llama.cpp,Optane 部分开启 DAX。

即便只是快速浏览一下细节也能看出,模型并不存放在 GPU 上:两块 RTX 3090 每块 24 GB,显存合计仅 48 GB,约为 865 GB 模型文件的 5.5%。话虽如此,该模型属于混合专家(MoE)类型,其权重被拆分成多个“专家”,每个 Token 只运行其中少数几个。任意一个 Token 都会被分配选中的“路由”专家,而“共享”专家则对每个 Token 都会运行。

对这个拥有 896 个专家的模型而言,每个 Token 会选中 16 个专家,另有 2 个共享专家,2.8T 参数中激活的为 104B。若采用 16 位精度,全部 2.8T 参数约占 5.6 TB。Moonshot 官方发布的版本采用 4 位 MXFP4 格式,体积约为 1.56 TB,而这里使用的 Q2_K 文件将其压缩到 865 GB,平均每个参数不到 3 位。865 GB 这个数字很可能实际是吉比字节(GiB),但为清晰起见,我们沿用这位家庭实验室玩家所写的 GB 数值。

这里的配置让路由专家的张量留在 CPU 一侧,最初放在 Optane 中,现在则是 Optane 加内存盘。RTX 3090 负责注意力部分,即每个 Token 如何权衡上下文中的其余内容,以及未被拆分为专家的稠密前馈网络层——每个 Token 都会经过这一层。它们还负责共享专家、其他激活的稠密组件、KV 缓存,以及当前对话的存储上下文,连同 GPU 计算缓冲区。基本上,放在 GPU 上的部分都是“每个 Token 都会用到”的,而这方面的提升来自 GPU 的高算力和高内存带宽。

DRAM 比 VRAM 慢得多,但仍能带来可观的加速。新的方案用到了 Linux 的 tmpfs——按内核文档的说法,它“是一种将所有文件都保存在虚拟内存中的文件系统”。这些分片如今驻留在内存中,诚然这并不理想,因为最初的方案本是通过改用 Optane 来省钱。分片放进 DRAM(搭建者称 DRAM 比 Optane 更快)之后,模型的这一部分不必再从更慢的内存中读取;工作负载显然被分散开了。

GPU 带来的速度在搭建者的预期范围内,他在最初的搭建帖中预测“大约每秒 2 到 4 个 Token”。安装 GPU 不得不等待,部分原因是机箱需要改造——得切掉部分金属并把 PSU 挪位,为 GPU 及其散热腾出空间。散热仍是巨大的难题,因为“吞吐的提升并未改变原先的温度告警”,用于 Optane DIMM 的两个 12W 鼓风机风扇仍保留在原位。再加上两块 350W 级别的 GPU,这些改动也就不难理解了。

事情不会止步于此,还有更多优化空间,包括“定制量化”,这可能与律师 Nick Mermiges 所用的技术类似。按张量或层、或按数据所在位置来选择量化,或许能减轻较慢存储层级所面临的带宽和容量压力;这套配置“可能还会更快”。但仅有速度——或者说每秒 Token 数——是不够的,未来任何方案都必须把输出质量纳入考量。

译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。

查看英文原文(Homelabber’s second-gen Optane build uses two RTX 3090s to run 2.8-trillion-parameter Kimi AI model at 3.11 tokens per second)

A homelabber detailed improvements to the second-gen Optane AI build in a follow-up post on Reddit, showing the addition of two RTX 3090s to run the 2.8-trillion-parameter Moonshot Kimi K3 model at 3.11 tokens per second. Transferring almost half the model onto a RAM drive added a significant 41% to generation speed and 26% to prompt evaluation. The extra fans are still needed, though, as the persistent Optane memory gets very hot.

Follow-up: Kimi K3 Q2_K on second-gen Optane + 2× RTX 3090 — 3.11 t/s generation, 16.8 t/s prompt eval
 from r/homelab

That speed is not the most impressive, but it comes with 16.8 tokens per second for prompt evaluation, with 45 of 94 shards, or 414 GB out of 865 GB, living on a RAM drive. Such an arrangement is not new to enthusiasts who would set aside system memory for extra-fast performance in a pseudo-non-volatile manner — it’s still volatile, but appears like a disk — although not everyone has that much RAM sitting around free these days. With both GPUs but no RAM drive, the build ran at 2.20 tokens per second for generation and 13.3 for prompt evaluation.

Kimi K3 Q2_K with two RTX 3090s: model in Optane vs. partly in a RAM drive

Configuration

Where the model is stored

Generation (tokens/s)

Prompt evaluation (tokens/s)

Optane only

All 94 shards in Optane

2.20

13.3

RAM drive + Optane

45 of 94 shards (414 GB of 865 GB) in a tmpfs RAM drive, the rest in Optane

3.11

16.8

Change

—

About 41% faster

About 26% faster

Builder’s measurements; llama.cpp, DAX on for the Optane portion.

Even a quick read of the details makes it clear that the GPUs aren’t holding the model: two RTX 3090s, at 24 GB apiece, only have a total of 48 GB of VRAM, which is about 5.5% of the 865 GB model file. That said, the model is a mixture-of-experts (MoE) type, where its weights are split into multiple “experts” with only a few run per token. Any given token will have “routed” experts selected for it, while “shared” experts run on every token.

For this model, with 896 experts, 16 are chosen per token, with two shared, with an active 104B parameters out of its 2.8T. All 2.8T parameters would take about 5.6 TB at 16-bit precision. Moonshot’s own release, which uses the 4-bit MXFP4 format, comes to about 1.56 TB, and the Q2_K file used here shrinks that to 865 GB, an average of under 3 bits per parameter. The 865 GB figure is likely in gibibytes (GiB), but for clarity we’re using the GB values as written by the homelabber.

The configuration here has the routed-expert tensors stay on the CPU side, originally in Optane, and now in Optane plus the RAM drive. The RTX 3090s handle attention, or how each token weighs the rest of the context, and the dense feed-forward network layer that isn’t split into experts, where every token passes through it. They also manage the shared experts, other active-dense components, the KV cache, and the stored context of the current conversation, with the GPU compute buffers. Basically, the parts on the GPUs are “used on every token,” and the improvements there come from the high level of GPU compute and memory bandwidth.

DRAM is a lot slower than VRAM, but it’s still capable of giving a decent speedup. The new build involves using Linux’s tmpfs, which, per the kernel documentation, “is a file system which keeps all of its files in virtual memory.” Those shards now live in memory, which admittedly is not ideal when the original build was designed to save money by using Optane instead. With those shards in DRAM, which the builder has said is faster than Optane, that part of the model no longer has to be read from the slower memory; the workload is decidedly distributed.

The speed that came with the GPUs is within the range of what the builder expected, guessing “somewhere between 2 and 4 tokens per second” in a prediction from the original build thread. The GPU install had to wait, in part, for modifications to the case, which required cutting out some of the metal and relocating the PSU to make room for the GPUs and their cooling. Cooling remains a huge issue, with “the improved throughput [not changing] the original thermal warning,” and the two 12W blower fans for the Optane DIMMs are kept in place. Add in dual 350W-class GPUs, and the changes are understandable.

Things won’t stop here, as more optimizations are possible, including “customized quantization,” which may be similar to the techniques used by lawyer Nick Mermiges. Quantization selected per tensor or layer, or by where the data lives, might reduce bandwidth and capacity pressures for the slower tiers; the setup “might be faster yet.” Speed, or tokens per second alone, is not enough, and output quality must be taken into consideration in any future plan.

正文保留英文原文,标题与摘要由机器翻译。

本文由采集器自动同步

原文发布于 Tom's Hardware(Homelabber’s second-gen Optane build uses two RTX 3090s to run 2.8-trillion-parameter Kimi AI model at 3.11 tokens per second),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。

阅读原文 ↗