<?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 × RDNA2：6000 系老卡跑 125B，近期 prefill 大補血]]></title><description><![CDATA[<p dir="auto">是說N卡好幾天前就把Turing跟Volta都搞起來了<br />
現在RDNA2的卡更新也沒啥稀奇<br />
但RDNA2就是便宜呀....之前玩遊戲用RDNA2的卡真的是性價比很高的選擇<br />
我當年RX6800XT礦災時早割愛了無法實測，看到這更新就是生態的完整度又往上一層樓<br />
之後再有人把PS5或XBox模改成AI機也不稀奇了</p>
<blockquote>
<p dir="auto">整理日期：2026-10-12<br />
對象：RX 6800 / 6800 XT / 6900 XT / 6950 XT（gfx1030）、RX 6700 XT（gfx1031）<br />
模型：Qwen3.8-Flash-Next 125B（MoE）+ 64GB RAM 的混合推論</p>
</blockquote>
<p dir="auto">Strata（Niko1221/Strata，14.7k stars）讓「16GB 老顯卡 + 64GB 記憶體」跑得動 125B MoE。<br />
RDNA2 在官方支援清單內（社群驗證、維護者未驗證），<strong>0.1.39/0.1.40 兩版把 RDNA2 的 prefill 從「難用」修到「能用」</strong>：</p>
<ul>
<li>同機 A/B：<code>STRATA_HIP_PROMPT_F16=1</code> 讓 6900 XT 的 prompt 速度 <strong>439/466/461 → 744/915/926 tok/s</strong>（+67%~+100%）</li>
<li>跨機版本推進（不同機器，僅供參考）：0.1.30 時代 330 tok/s → 0.1.39+開關 926 tok/s</li>
<li>Windows 一鍵安裝已收編 gfx1030（gfx1031 從 0.1.40.2 起）</li>
<li>雙 6900 XT 平衡切分下 prefill 推估 ~1,800 tok/s 級，進入 RDNA3/Volta 雙卡同一檔位</li>
</ul>
<h2>為什麼 RDNA2 之前 prefill 慢</h2>
<p dir="auto">gfx1030 的 rocBLAS <strong>只有 FP16-in / FP16-out 的調優 kernel</strong>；Strata prompt 路徑原本的<br />
FP16-in/FP32-out 與 BF16 GEMM 全部落到 generic kernel，實測 <strong>慢 6.6×</strong><br />
（5.6 / 5.3 TFLOPS vs 調優的 37.7 TFLOPS）。另外 ROCm 不發 gfx1030 的 hipBLASLt kernel，<br />
沒有調優表可用。</p>
<p dir="auto">0.1.39 的修法：<code>STRATA_HIP_PROMPT_F16=1</code>（opt-in，gfx103x 啟動時會印提示）讓 16-bit<br />
prompt GEMM 改走 FP16 in/out。輸出與原路徑非 bit-identical（FP16 取代 BF16 的四捨五入），<br />
分佈檢查見下方基準連結。</p>
<h2>近期（0.1.39–0.1.42）RDNA2 相關變更</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>項目</th>
<th>說明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>STRATA_HIP_PROMPT_F16=1</code>（#835）</td>
<td>上面那個 6.6× 的救星，RDNA2 prefill 最大單一改善</td>
</tr>
<tr>
<td><code>STRATA_DENSE_MMQ=1</code>（#820，0.1.40）</td>
<td>dense 投影改走 int8 MMQ kernel 代替 dequantize+hipBLAS；6900 XT 4K prompt <strong>436→757 tok/s</strong>（注意：greedy 輸出幾十 token 後會與預設路徑分岔，q8_1 活化取捨五入）</td>
</tr>
<tr>
<td><code>STRATA_HIP_ADAPT_KERNEL_COPY=1</code>（#884，0.1.40）</td>
<td>adaptive tier 的 swap 改用 kernel 複製代替 SDMA，<strong>gfx1030 掛死 workaround</strong>（MMQ prompt 路徑 + adaptive swap 組合會 hang）</td>
</tr>
<tr>
<td><code>STRATA_SH_STREAM</code>（#816/#1272）</td>
<td>shared-expert fork 在 HIP 上預設關；Linux RX 6000 可試 <code>=1</code>：2×6900 XT 實測 decode +5~13%（單卡 47.5/46.9/48.3 → 50.5/48.5/51.3 tok/s），輸出完全相同</td>
</tr>
<tr>
<td>Windows WDDM 修復（#377/#380）</td>
<td><code>hipMemGetInfo</code> 不扣桌面佔用 → expert cache 爆 VRAM、decode 41→30 的 bug 已修（RX 6800 桌面機回報）</td>
</tr>
<tr>
<td>Windows 預編譯</td>
<td><code>strata-windows-x64-hip.zip</code> 含 gfx1030（gfx1031 自 0.1.40.2）→ START-HERE.bat 一鍵</td>
</tr>
<tr>
<td>ROCm wheel</td>
<td>專開 <code>gfx103X-all</code> 索引（#1103，7.13 起），未驗證；Linux 建議走系統 ROCm 7 手編</td>
</tr>
</tbody>
</table>
<h2>社群實測數據（125B Flash-Next）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th>引擎/環境</th>
<th>decode</th>
<th>prefill</th>
</tr>
</thead>
<tbody>
<tr>
<td>單 6900 XT 16G（i7-13700KF，63G RAM，NixOS，ROCm 7.2.3）</td>
<td>0.1.30，IQ3_XXS，131K ctx</td>
<td>38-42</td>
<td>246@2K / 330-339@8K chunk</td>
</tr>
<tr>
<td>單 6900 XT（R5 5600X，128G，Ubuntu，ROCm 10.0.0）——同一台雙卡機</td>
<td>0.1.39，IQ3_S，<strong>F16 開關 off→on</strong></td>
<td>不變</td>
<td><strong>439/466/461 → 744/915/926</strong>（9.4K/34.7K/105.8K）</td>
</tr>
<tr>
<td>單 6900 XT（同上機）</td>
<td>0.1.40，<code>STRATA_DENSE_MMQ=1</code></td>
<td>—</td>
<td>4K：<strong>436→757</strong></td>
</tr>
<tr>
<td>單 6800（Windows，桌面機）</td>
<td>0.1.3x</td>
<td>41（WDDM 修復後）</td>
<td>—</td>
</tr>
</tbody>
</table>
<blockquote>
<p dir="auto"><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/26a0.png?v=fe25256ab4a" class="not-responsive emoji emoji-android emoji--warning" style="height:1.4em;width:auto;vertical-align:middle" title="⚠" alt="⚠" />️ 跨行不可直接比：CPU、RAM、引擎版本、量化、context 都不同。<br />
唯一嚴謹的 A/B 是 5600X 那台的 F16 開關對比（同機同引擎）。</p>
</blockquote>
<h2>雙卡（2×6900 XT）</h2>
<ul>
<li>分層流水線：兩段並行，總時 = max(兩段)；同卡平衡切分 ≈ 2× 單卡 prefill</li>
<li><strong><code>--layer-split</code> 必須手動設平衡值</strong>：<code>auto</code> 的成本模型對 prefill 是瞎的<br />
（#509 實測 auto 比平衡切分慢 2.86×；維護者：prompt-heavy 就手動設 K）</li>
<li>推估：雙卡 + F16 開關 ≈ <strong>1,800 tok/s 級 @32K</strong>（對標 2×TITAN RTX 實測 1,549、2×V100 16G ~1,400-1,600）</li>
</ul>
<h2>上手（RDNA2 專用清單）</h2>
<ol>
<li>Windows：下載 Strata → <code>START-HERE.bat</code>（自動選 HIP 後端，預編譯含 gfx1030/1031）<br />
Linux：<code>./setup.sh --backend hip</code>（系統 ROCm 7 最穩；wheel 路徑未驗證）</li>
<li>設定檔加環境變數（建議）：
<ul>
<li><code>STRATA_HIP_PROMPT_F16=1</code>（prefill 必開）</li>
<li><code>STRATA_DENSE_MMQ=1</code>（再快一截，接受輸出微分岔才開）</li>
<li><code>STRATA_HIP_ADAPT_KERNEL_COPY=1</code>（遇到 prefill 掛死再開）</li>
<li>Linux 可試 <code>STRATA_SH_STREAM=1</code>（decode +5~13%）</li>
</ul>
</li>
<li>避開 <code>--mmap-experts</code>（#920：RX 6800 上會卡死）</li>
<li>16GB 卡保持預設的 <code>--pcie-frac</code> / <code>--adapt-every</code>（照 7900 XTX 配置調低會各賠 8.6 / 13.6 tok/s）</li>
<li>量速用 <code>BENCH.bat</code> / <code>tools/strata_bench.py</code></li>
</ol>
<h2>定位與風險</h2>
<ul>
<li>單卡檔位：6700 XT（30-32）&lt; 3060 級 &lt; <strong>6900 XT（38-51 decode / 744-926 prefill）</strong> &lt; 9070 級</li>
<li>狀態 = <strong>社群驗證、維護者未驗證</strong>（CMake 對 gfx1030 標 unvalidated，build 會 warning）</li>
<li>沒有 matrix core 不影響 decode（dp4a 同代指令）也不影響 QSA scorer（兩代同走 FP32 fallback）；<br />
RDNA2 的差距在頻寬（decode）與 kernel 覆蓋率（prefill，已大部分補上）</li>
<li>RDNA1（RX 5500 XT，gfx1012）只能手編，見 OLDER_GPUS.md</li>
</ul>
<h2>連結</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>資源</th>
<th>連結</th>
</tr>
</thead>
<tbody>
<tr>
<td>AMD HIP 文件（RDNA2 章節）</td>
<td><a href="https://github.com/Niko1221/Strata/blob/main/docs/AMD_HIP.md#rdna2-gfx1030" rel="nofollow ugc">https://github.com/Niko1221/Strata/blob/main/docs/AMD_HIP.md#rdna2-gfx1030</a></td>
</tr>
<tr>
<td>F16 prompt 修復基準（#835 實測）</td>
<td><a href="https://github.com/Niko1221/Strata/blob/main/bench/results/2026-10-04-rdna2-fp16-prompt/README.md" rel="nofollow ugc">https://github.com/Niko1221/Strata/blob/main/bench/results/2026-10-04-rdna2-fp16-prompt/README.md</a></td>
</tr>
<tr>
<td>Issue #835（STRATA_HIP_PROMPT_F16）</td>
<td><a href="https://github.com/Niko1221/Strata/issues/835" rel="nofollow ugc">https://github.com/Niko1221/Strata/issues/835</a></td>
</tr>
<tr>
<td>Issue #820（STRATA_DENSE_MMQ）</td>
<td><a href="https://github.com/Niko1221/Strata/issues/820" rel="nofollow ugc">https://github.com/Niko1221/Strata/issues/820</a></td>
</tr>
<tr>
<td>Issue #884（gfx1030 掛死 workaround）</td>
<td><a href="https://github.com/Niko1221/Strata/issues/884" rel="nofollow ugc">https://github.com/Niko1221/Strata/issues/884</a></td>
</tr>
<tr>
<td>Issue #1272（2×6900 XT SH_STREAM 實測）</td>
<td><a href="https://github.com/Niko1221/Strata/issues/1272" rel="nofollow ugc">https://github.com/Niko1221/Strata/issues/1272</a></td>
</tr>
<tr>
<td>Issue #816（RX 6800 Windows 基準）</td>
<td><a href="https://github.com/Niko1221/Strata/issues/816" rel="nofollow ugc">https://github.com/Niko1221/Strata/issues/816</a></td>
</tr>
<tr>
<td>RX 6800 Windows 基準報告</td>
<td><a href="https://github.com/Niko1221/Strata/blob/main/bench/results/2026-10-04-community-rx-6800-windows/README.md" rel="nofollow ugc">https://github.com/Niko1221/Strata/blob/main/bench/results/2026-10-04-community-rx-6800-windows/README.md</a></td>
</tr>
<tr>
<td>Issue #311（首個 gfx1030 社群回報）</td>
<td><a href="https://github.com/Niko1221/Strata/issues/311" rel="nofollow ugc">https://github.com/Niko1221/Strata/issues/311</a></td>
</tr>
<tr>
<td>Issue #1027（6700 XT 日常使用）</td>
<td><a href="https://github.com/Niko1221/Strata/issues/1027" rel="nofollow ugc">https://github.com/Niko1221/Strata/issues/1027</a></td>
</tr>
<tr>
<td>Issue #1103（gfx103X-all wheel 索引）</td>
<td><a href="https://github.com/Niko1221/Strata/issues/1103" rel="nofollow ugc">https://github.com/Niko1221/Strata/issues/1103</a></td>
</tr>
<tr>
<td>Issue #509（layer_split auto 對異質雙卡失靈，手動 K 的依據）</td>
<td><a href="https://github.com/Niko1221/Strata/issues/509" rel="nofollow ugc">https://github.com/Niko1221/Strata/issues/509</a></td>
</tr>
<tr>
<td>社群基準總表</td>
<td><a href="https://github.com/Niko1221/Strata/blob/main/docs/COMMUNITY_BENCHMARKS.md" rel="nofollow ugc">https://github.com/Niko1221/Strata/blob/main/docs/COMMUNITY_BENCHMARKS.md</a></td>
</tr>
<tr>
<td>主倉庫</td>
<td><a href="https://github.com/Niko1221/Strata" rel="nofollow ugc">https://github.com/Niko1221/Strata</a></td>
</tr>
</tbody>
</table>
]]></description><link>https://lcz.me/topic/2283</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 12:24:23 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2283.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Oct 2026 08:24:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Strata × RDNA2：6000 系老卡跑 125B，近期 prefill 大補血 on Mon, 12 Oct 2026 11:42:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dardeaw-feng" aria-label="Profile: dardeaw-feng">@<bdi>dardeaw-feng</bdi></a> 这个核心技术ngram可是deepseek的，吃水不忘挖井人。</p>
]]></description><link>https://lcz.me/post/24263</link><guid isPermaLink="true">https://lcz.me/post/24263</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Mon, 12 Oct 2026 11:42:31 GMT</pubDate></item><item><title><![CDATA[Reply to Strata × RDNA2：6000 系老卡跑 125B，近期 prefill 大補血 on Mon, 12 Oct 2026 10:37:37 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> Flash Next模型架構 跟 Strata根本是行業革命，這多少會影響整個行業生態，拭目以待</p>
]]></description><link>https://lcz.me/post/24250</link><guid isPermaLink="true">https://lcz.me/post/24250</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Mon, 12 Oct 2026 10:37:37 GMT</pubDate></item><item><title><![CDATA[Reply to Strata × RDNA2：6000 系老卡跑 125B，近期 prefill 大補血 on Mon, 12 Oct 2026 10:24:06 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bunsei" aria-label="Profile: Bunsei">@<bdi>Bunsei</bdi></a> <a href="/post/24240">说</a>:</p>
<p dir="auto">这下内存是不得不加了。</p>
</blockquote>
<p dir="auto">有些16G的卡二手價 竟然比16G的DDR5還便宜啦</p>
]]></description><link>https://lcz.me/post/24248</link><guid isPermaLink="true">https://lcz.me/post/24248</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Mon, 12 Oct 2026 10:24:06 GMT</pubDate></item><item><title><![CDATA[Reply to Strata × RDNA2：6000 系老卡跑 125B，近期 prefill 大補血 on Mon, 12 Oct 2026 09:57:30 GMT]]></title><description><![CDATA[<p dir="auto">这下内存是不得不加了。</p>
]]></description><link>https://lcz.me/post/24240</link><guid isPermaLink="true">https://lcz.me/post/24240</guid><dc:creator><![CDATA[Bunsei]]></dc:creator><pubDate>Mon, 12 Oct 2026 09:57:30 GMT</pubDate></item><item><title><![CDATA[Reply to Strata × RDNA2：6000 系老卡跑 125B，近期 prefill 大補血 on Mon, 12 Oct 2026 09:56:30 GMT]]></title><description><![CDATA[<p dir="auto">这个体验真的是疯狂了，牛逼了，兄弟们。Strata让本地AI迎来狂欢，什么看都能玩了。AMD的老卡也焕发生机，可喜可贺！</p>
]]></description><link>https://lcz.me/post/24238</link><guid isPermaLink="true">https://lcz.me/post/24238</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Mon, 12 Oct 2026 09:56:30 GMT</pubDate></item></channel></rss>