<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[【分享】Strata-rdna3 的 DP 预填充在 2×RTX 3090 上也能用：长 prompt prefill +17~27%]]></title><description><![CDATA[<p dir="auto"><a href="https://lcz.me/topic/2626/39">https://lcz.me/topic/2626/39</a> 帖里提到的 nicejunjie/Strata-rdna3 分支（原本为 7900 XTX 做的）有一个 STRATA_DP_PREFILL 双卡数据并行预填充。编译成 CUDA 版，在两张 3090 上测试了一下，效果不错，分享给双 N 卡的朋友。</p>
<h3>DP 预填充是什么</h3>
<ul>
<li>原版双卡是<strong>层切分</strong>：卡 0 跑 0–23 层，卡 1 跑 24–47 层，prompt 的每个 chunk 先过卡 0 再过卡 1。</li>
<li>DP 模式下<strong>每张卡都放全部 dense 权重</strong>（每卡多占约 4 GB），两张卡<strong>轮流拿 chunk</strong>，各自跑完全部 48 层，每层的状态（GDN 状态、K/V 等）在两卡之间同步。</li>
<li>只对 <strong>≥8,000 token</strong> 的 prompt 生效（<code>STRATA_DP_MIN</code>），短 prompt 和 decode 路径不变。</li>
</ul>
<h3>测试环境</h3>
<ul>
<li>2× RTX 3090 24 GB，各 PCIe 4.0 x16，P2P 开启（引擎日志两个方向都是 <code>peer access on</code>）</li>
<li>32 核 EPYC（AVX2，无 AVX-512），256 GB DDR4 八通道，Ubuntu 24.04</li>
<li>分支 <code>rdna3</code> @ <code>fc8f8233</code> + PR #1 + 下面的 CUDA 补丁，<code>CUDA_ARCHITECTURES=86</code></li>
<li>模型：Swift 1.5 Qwen3.8-Flash-Next <strong>IQ4_XS</strong>（UkisAI GGUF），512K 上下文（YaRN ×2），int8 KV，<code>--kv-resident 32768</code>，<code>--pipeline-windows 2</code>，<code>--pcie-frac 0</code>，<code>--spec 4</code> + MTP</li>
</ul>
<h3>Prefill（tok/s，每个 prompt 加随机前缀避免缓存命中，max_tokens 1）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th>19K</th>
<th>43K</th>
<th>89K</th>
<th>123K</th>
</tr>
</thead>
<tbody>
<tr>
<td>之前用的引擎（另一个 0.1.44.1 分支，普通层切分），250 W</td>
<td>3,198</td>
<td>3,823</td>
<td>3,762</td>
<td>3,647</td>
</tr>
<tr>
<td>DP 350w</td>
<td>4,493</td>
<td>5,046</td>
<td>5,481</td>
<td>5,418</td>
</tr>
</tbody>
</table>
<h3>Decode</h3>
<p dir="auto">DP 不改 decode 路径。250 W、greedy、关思考：中文散文 110 / 中文聊天 117 / 英文技术 113 / 代码 182 tok/s（350 W：121 / 125 / 118 / 199）。</p>
<h3>正确性</h3>
<ul>
<li>大海捞针（短代码放在 60% 深度）：每个 DP 配置在 ~89K、~123K 都 <strong>PASS</strong>。</li>
<li>长上下文（DP + 16K chunk，250 W）：~206K、~307K、~414K（60% 深度）和 ~520K（10% 和 90% 深度，YaRN 满窗口）全部 <strong>PASS</strong>，prefill 分别是 4,615 / 4,231 / 3,858 / ~3,700 tok/s。</li>
<li>同一对话的下一轮只重读 34–50 个 token（对话缓存），decode 81–90 tok/s。</li>
<li>工具调用和图片请求：PASS。</li>
</ul>
<h3>注意</h3>
<ul>
<li><strong>只支持正好两张卡的层切分</strong>。不能和 <code>--batch</code>、<code>--peer-device</code>、<code>--trim-stage-weights</code> 一起用。<strong>只能单对话（我现在的用法也只有单对话所以对我没影响）</strong></li>
<li><strong>需要 KV streaming</strong>（配置里有 <code>--kv-resident</code>）。setup 在 <code>CONTEXT</code> ≥ 65536 且内存够时会自动打开；WSL 下 KV streaming 是关的，所以 DP 也开不了。</li>
<li><strong>P2P</strong>：我的卡开了 P2P。GeForce 的官方驱动一般没有 P2P，DP 照样能跑，只是卡间同步要经过内存中转，速度我没测。</li>
</ul>
]]></description><link>https://lcz.me/topic/2658</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 10:58:51 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2658.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Oct 2026 11:23:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 【分享】Strata-rdna3 的 DP 预填充在 2×RTX 3090 上也能用：长 prompt prefill +17~27% on Fri, 30 Oct 2026 19:29:05 GMT]]></title><description><![CDATA[<p dir="auto">立刻研究看看 技術真的越來越好</p>
]]></description><link>https://lcz.me/post/29607</link><guid isPermaLink="true">https://lcz.me/post/29607</guid><dc:creator><![CDATA[starryskyknight]]></dc:creator><pubDate>Fri, 30 Oct 2026 19:29:05 GMT</pubDate></item><item><title><![CDATA[Reply to 【分享】Strata-rdna3 的 DP 预填充在 2×RTX 3090 上也能用：长 prompt prefill +17~27% on Thu, 29 Oct 2026 14:22:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 其实这个方法应该只要是双卡就可以用上 只是牺牲了多对话</p>
]]></description><link>https://lcz.me/post/29220</link><guid isPermaLink="true">https://lcz.me/post/29220</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Thu, 29 Oct 2026 14:22:20 GMT</pubDate></item><item><title><![CDATA[Reply to 【分享】Strata-rdna3 的 DP 预填充在 2×RTX 3090 上也能用：长 prompt prefill +17~27% on Thu, 29 Oct 2026 13:59:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gao-gao" aria-label="Profile: gao-Gao">@<bdi>gao-Gao</bdi></a> 是的 少部分的专家<br />
decode 牺牲一点点 但是可能是我的epyc cpu 所以牺牲比较少<br />
不同平台需要测试</p>
<p dir="auto">已经有第2版了 <a href="https://lcz.me/topic/2691">https://lcz.me/topic/2691</a></p>
<p dir="auto">但是你的问题， 其实就是跟 <a href="https://lcz.me/topic/2671/8?_=1793281386554">https://lcz.me/topic/2671/8?_=1793281386554</a> 用同一个方法</p>
]]></description><link>https://lcz.me/post/29208</link><guid isPermaLink="true">https://lcz.me/post/29208</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Thu, 29 Oct 2026 13:59:39 GMT</pubDate></item><item><title><![CDATA[Reply to 【分享】Strata-rdna3 的 DP 预填充在 2×RTX 3090 上也能用：长 prompt prefill +17~27% on Thu, 29 Oct 2026 13:47:14 GMT]]></title><description><![CDATA[<p dir="auto">DP 模式下每张卡都放全部 dense 权重（每卡多占约 4 GB） 这个你牺牲了专家模型存放显存吗?</p>
]]></description><link>https://lcz.me/post/29206</link><guid isPermaLink="true">https://lcz.me/post/29206</guid><dc:creator><![CDATA[gao Gao]]></dc:creator><pubDate>Thu, 29 Oct 2026 13:47:14 GMT</pubDate></item><item><title><![CDATA[Reply to 【分享】Strata-rdna3 的 DP 预填充在 2×RTX 3090 上也能用：长 prompt prefill +17~27% on Thu, 29 Oct 2026 09:30:01 GMT]]></title><description><![CDATA[<p dir="auto">不错，这样N卡也能享受红利了，3090用户大喜过望！</p>
]]></description><link>https://lcz.me/post/29091</link><guid isPermaLink="true">https://lcz.me/post/29091</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:30:01 GMT</pubDate></item><item><title><![CDATA[Reply to 【分享】Strata-rdna3 的 DP 预填充在 2×RTX 3090 上也能用：长 prompt prefill +17~27% on Thu, 29 Oct 2026 09:29:42 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=5be5614064c" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> 版主审定：本帖设为<strong>优秀</strong>，作者 <strong>+3 积分</strong>奖励，继续加油！</p>
<blockquote>
<p dir="auto">奖励凭证：优秀 +3 分 · 编号 e2658-121-1</p>
</blockquote>
]]></description><link>https://lcz.me/post/29090</link><guid isPermaLink="true">https://lcz.me/post/29090</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:29:42 GMT</pubDate></item></channel></rss>