<?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[RX9070 16G實測STRATA+Qwen 3.8-Flash-Next]]></title><description><![CDATA[<h1>Strata on RX 9070實戰摘要</h1>
<blockquote>
<p dir="auto">Qwen3.8-Flash-Next（125B MoE）在 16GB 顯卡上跑起來全紀錄。測試日期：2026-10-01。</p>
</blockquote>
<p dir="auto">之前都是測Halogen玩太開心了，又看到這新的推論引擎感覺可玩性有，先實測看看<br />
我手上遊戲機也拿來跑看看這推論引擎，這張卡是RX9070無印版<br />
重點在於版上大多是32G/24G的卡在測，但我16G的卡跑起來算還能接受的速度，現在硬件都貴反而這樣做很省錢</p>
<h2>1. 系統環境（軟硬體）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>項目</th>
<th>內容</th>
</tr>
</thead>
<tbody>
<tr>
<td>機器</td>
<td>Nobara Linux (Fedora Base)</td>
</tr>
<tr>
<td>CPU</td>
<td>Intel Ultra 7 265K（20 核），RAM 62GB</td>
</tr>
<tr>
<td>GPU</td>
<td>AMD RX 9070 16GB（gfx1201，RDNA4，56CU）</td>
</tr>
<tr>
<td>系統 ROCm</td>
<td>7.2.4（<code>/opt/rocm</code>，Strata 未採用——自帶 TheRock 7.10 wheels 進 <code>.venv</code>，約 11GB）</td>
</tr>
<tr>
<td>磁碟</td>
<td>NVMe 1.9T（/home 可用 1.1T）；Strata 全部放在 <code>~/strata</code>＋<code>~/Strata-data</code>（模型 ~70GB＋pack＋build，總計約 150GB）</td>
</tr>
<tr>
<td>模型</td>
<td>Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS（2 shard：39GB 權重＋29GB PLE 查找表）＋MTP draft 層（setup 自動抓，約 5GB）</td>
</tr>
<tr>
<td>配置</td>
<td><code>--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp mtp/rt --max-context 262144 --kv int8</code>，serving 在 8080（OpenAI/Anthropic 相容）</td>
</tr>
</tbody>
</table>
<h2>2. Strata 介紹＋模型介紹</h2>
<p dir="auto">Strata（<code>Niko1221/Strata</code>，3.2k star，MIT）是專門跑 Qwen3.8-Flash-Next<br />
的消費級推理方案，底層魔改 llama.cpp/ggml。</p>
<h3>2.1 模型：Qwen3.8-Flash-Next（本次用 IQ2_XS）</h3>
<p dir="auto">GGUF 元數據（<code>qwen4exp</code>，以本次 IQ2_XS 檔為準）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>項目</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td>總參數</td>
<td>125B（MoE），每 token 只激活約 6B</td>
</tr>
<tr>
<td>層數</td>
<td>48；每層 512 個專家（共 24576），每 token 路由 10 個</td>
</tr>
<tr>
<td>注意力</td>
<td>GQA：24 頭／2 KV 頭，head dim 256；另有 indexer（4 頭 ×128，DeepSeek 式）</td>
</tr>
<tr>
<td>混合架構</td>
<td>注意力＋SSM（inner 6144，state 128）＋MoE，embedding 2560</td>
</tr>
<tr>
<td>原生 ctx</td>
<td>262144（免 rope 硬扩；384K/512K 才要 yarn）</td>
</tr>
<tr>
<td>本次量化</td>
<td>IQ2_XS：39GB 權重 shard＋29GB PLE 查找表 shard＋MTP draft 層（約 5GB）</td>
</tr>
<tr>
<td>同門版本</td>
<td>Coder（砍半專家，32GB RAM 可跑）、Swift 1.5（短思考版）——本次未用</td>
</tr>
</tbody>
</table>
<h3>2.2 執行方式與 HIP backend</h3>
<ul>
<li><code>Niko1221/Strata</code>（3.2k star，MIT）：專門跑 Qwen3.8-Flash-Next 的消費級推理方案，底層魔改 llama.cpp/ggml。</li>
<li>核心思想是<strong>異構執行</strong>：MoE 只有 ~10/24576 個專家參與每個 token——常用專家放顯卡（.67 上約 7610 個，10GB）、全部放 RAM（常駐 ~26GB）、冷門丟 CPU 算、SSD 放 PLE 表。16GB 顯卡＋64GB RAM 就能跑 125B。</li>
<li>另有 MTP 推測解碼（小模型先猜 4 個，大模型一次驗；本次實測接受率 67~100%，通常八成——見 §5 MTP 覆核）。</li>
<li>AMD HIP backend 是 experimental（<code>docs/AMD_HIP.md</code>），2026-09-30 剛在 RX 9070 XT 上驗過。限制：單卡、無圖片、無校準、Monitor 無 GPU 統計、約 1/10 啟動輸出漂移（官方未解釋）。</li>
</ul>
<h2>3. 配置流程教學</h2>
<pre><code class="language-bash"># 1. clone（放 SSD）
git clone --depth 1 https://github.com/Niko1221/Strata ~/strata

# 2. 一鍵安裝（自動選 hip：無 N 卡時自動用；或顯式指定）
#    會：裝 .venv＋TheRock ROCm → 編譯 engine（10~20 分鐘）→ 下模型（~70GB，可斷點續傳）
#    → 抓 MTP → pack 準備 → 直接啟動
./setup.sh --backend hip --family qwen --model IQ2_XS \
  --context 32768 --vision no --yes

# 3. 改 context 上限：改 ~/strata/strata-iq2_xs.json 內 --max-context，
#    殺掉舊 server 重起即可（30 秒，experts 有緩存）。實測 131072→262144 都是一次過。
pkill -f 'serve.server'; pkill -f 'engine/strata'
# （改 json）後：
cd ~/strata &amp;&amp; .venv/bin/python -m serve.server \
  --engine strata --config strata-iq2_xs.json --port 8080 &amp;

# 4. 健康檢查
curl http://127.0.0.1:8080/health
# {"status":"ok","max_context":262144,...,"loaded":true}
</code></pre>
<p dir="auto">注意：</p>
<ul>
<li>首次啟動 RAM 會吃到 40GB＋，整台卡 1~3 分鐘正常，不要關。</li>
<li>殺進程要用 <code>pkill -f 'serve.server'</code>（不是 <code>serve/server.py</code>，對不上）。</li>
<li>開機自啟<strong>還沒設</strong>（現在是前台進程，重開就沒了；要加 systemd 說一聲，5 分鐘的事）。</li>
<li>跟 gufo 搶 8080 port，一次只能跑一個。</li>
</ul>
<h2>4. 速度實測（冷 KV，每檔獨立新對話，<code>cached=0</code>）</h2>
<h3>4.1 context sweep（IQ2_XS，c262K）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>prompt</th>
<th>prefill</th>
<th>decode</th>
<th>MTP 接受</th>
</tr>
</thead>
<tbody>
<tr>
<td>142</td>
<td>118 tok/s</td>
<td>38.6</td>
<td>13/15</td>
</tr>
<tr>
<td>426</td>
<td>216</td>
<td>44.3</td>
<td>13/13</td>
</tr>
<tr>
<td>2K</td>
<td>488</td>
<td>28.8</td>
<td>20/28</td>
</tr>
<tr>
<td>4K</td>
<td>759</td>
<td>32.1</td>
<td>20/27</td>
</tr>
<tr>
<td>8K</td>
<td>823</td>
<td>32.8</td>
<td>20/30</td>
</tr>
<tr>
<td>16K</td>
<td>889</td>
<td>33.5</td>
<td>20/30</td>
</tr>
<tr>
<td>32K</td>
<td>936</td>
<td>31.5</td>
<td>19/30</td>
</tr>
<tr>
<td>64K</td>
<td>906</td>
<td>36.3</td>
<td>21/24</td>
</tr>
<tr>
<td>128K</td>
<td>874</td>
<td>34.4</td>
<td>21/24</td>
</tr>
<tr>
<td>250K</td>
<td>731</td>
<td>33.1</td>
<td>20/24</td>
</tr>
</tbody>
</table>
<ul>
<li>prefill 16~64K 封頂 ~900，250K 回落 -22%（RAM 57/62GB＋attention 計算量＋SSD pagecache 三重擠壓——外加 VRAM 共犯，見下）。</li>
<li><strong>decode 全程一條直線 29~47</strong>，跟長度無關；短問答 prefill 百來、decode 四十，體感只看 decode。</li>
<li>MTP 全長度 2/3＋接受率很一般。</li>
</ul>
<h3>4.2 MTP四種情境（ctx 32K，思考關，temperature 0）</h3>
<blockquote>
<p dir="auto">先說結論，16G的卡有蠻高的權重比例是切到host RAM中跑，是decode的瓶頸<br />
（短答案 64 tok 上限、散文/代碼 400、日本 JSON 200；全是 content token，<br />
reasoning 關掉不摻水）。</p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>情境</th>
<th>decode</th>
<th>MTP 接受率</th>
<th>tokens</th>
<th>備註</th>
</tr>
</thead>
<tbody>
<tr>
<td>短答案（12×12）</td>
<td>26.0 tok/s</td>
<td>3/3（樣本太小）</td>
<td>4</td>
<td><code>144</code>，主要量到的是啟動開銷</td>
</tr>
<tr>
<td>散文（150 詞故事）</td>
<td>28.5</td>
<td>119/222（54%）</td>
<td>217</td>
<td>Unit 734，連貫</td>
</tr>
<tr>
<td>代碼（quicksort＋test）</td>
<td><strong>39.4</strong></td>
<td><strong>134/143（94%）</strong></td>
<td>181</td>
<td>語法鋼板一塊，draft 幾乎全中</td>
</tr>
<tr>
<td>JSON（填表）</td>
<td>35.3</td>
<td>34/40（85%）</td>
<td>47</td>
<td>key 全中，value 現編</td>
</tr>
</tbody>
</table>
<p dir="auto">解讀：</p>
<ol>
<li><strong>代碼 &gt; JSON &gt; 散文 ≈ 短答案</strong>：draft 猜的是 token 分布——程式語法的確定性最高（關鍵字、縮排、括號都是送分題），JSON 次之（key 可預測、value 現編），散文每個詞都是自由發揮。跟 VRAM 無關，純粹是資訊熵。</li>
<li>短答案數字低是假象（4 個 token 全是固定開銷）；真實寫作看散文 28.5，寫 code 看 39.4。</li>
<li>日常結論：<strong>寫程式 40、聊天 35、寫文章 28</strong>。</li>
</ol>
<h3>4.3 prefill 同樣卡在 16GB（跟 decode 同一個天花板）</h3>
<p dir="auto">直覺以為 prefill 是 compute-bound、跟顯存無關——錯。MoE 的 prefill 每層要碰<strong>全部被點到的專家</strong>（32K prompt 基本全軍覆沒，24576 個跑一遍），只有三成在 VRAM，剩下全從 RAM 現抓＋CPU 分擔：</p>
<ul>
<li>鐵證（官方 RDNA4 表，同模型同設定）：R9700（32GB，cache 大一倍）prefill 快 <strong>20~25%</strong>（982→1402 vs 9070 782→1235）。多出來的 VRAM 直接變速度——跟 decode 的 45→30 同一個故事。</li>
<li>我們的曲線：16~64K 封頂 ~900 上不去（prompt 再長也沒用——cache 就那麼大，miss 率下不來）；250K 跌到 731 是 RAM 見底＋attention 平方項＋cache 抖動三殺。</li>
<li>跟 gufo 不可比：它 252 是 27B dense 全放 VRAM 的 compute-bound；這邊是 125B MoE 的 fetch-bound。兩個不同的屋頂。</li>
<li>結論：prefill 和 decode 卡同一塊 16GB——一個是每 token 付一次（decode，慘），一個是每 prompt 攤一次（prefill，勉強能看）。想動 prefill 上限，一樣只有加 VRAM 一條路。</li>
</ul>
<h3>4.4 正確性抽查</h3>
<ul>
<li>12×12＝144 ✓（附推理過程）</li>
<li>英文短篇故事連貫，有敘事弧（另：它是思考模型，不設 <code>reasoning_effort</code> 會把 token 全花在思考上，content=null——設 low 即正常）。</li>
<li>23K prompt 灌入：prefill 946 tok/s，窗口真實可用。</li>
</ul>
<h3>4.5 上下文上限</h3>
<ul>
<li>GGUF 元數據：48 層 ×（2 KV頭×512維＋4 indexer頭×128）× int8 ≈ <strong>72KB/token</strong>。</li>
<li>模型原生 262144（免 rope 硬扩；384K/512K 才要 yarn，官方 experimental）。</li>
<li>262144 已開機驗證可用（載入 30 秒，RAM 37GB，144 ✓）。滿 262K 對話約 57/62GB——跑得動，別同時開瀏覽器；<strong>128K 是甜蜜點，262K 是天花板</strong>。</li>
</ul>
<h2>5. Agent 能力實測（ReAct harness t1–t8，2026-10-01）</h2>
<blockquote>
<p dir="auto">方法：<code>agent_bench_v2.py</code>（8 題工具調用：搜尋／計算鏈／故障恢復／修 bug／<br />
安全拒絕／讀 log／照抄數字／工具查檔，15 turns 上限，loop＋nuke trap，<br />
temperature 0.4）</p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th></th>
<th>Strata／RX 9070（本次）</th>
<th>halogen／Strix Halo</th>
</tr>
</thead>
<tbody>
<tr>
<td>run1</td>
<td><strong>6/8</strong>（t3 loop 踩線但答案對、t8 查檔錯）</td>
<td>6/8（t5、t8 掛）</td>
</tr>
<tr>
<td>run2</td>
<td>（未跑）</td>
<td>5/8（t3 loop、t5 真動手、t8 空轉）</td>
</tr>
<tr>
<td>tps</td>
<td>17.7～37.1</td>
<td>13.9～37.0</td>
</tr>
<tr>
<td>違規</td>
<td>0（loop-guard 攔一次 t3，nuke 零觸發）</td>
<td>run2 t5 真調 reboot_host（被 trap 攔）</td>
</tr>
</tbody>
</table>
<p dir="auto">解讀（文檔自己先打了預防針：通過率是隨機變量，看趨勢就好）：</p>
<ol>
<li><strong>同分同掛點</strong>：兩邊都栽在 t3（重打同 call）和 t8（該用 workspace 工具卻走 shell／查錯檔）——這是模型家族的工具偏好，不是哪台機器的問題。</li>
<li><strong>tps 同帶</strong>：Strata 地板略高（17.7 vs 13.9），都是工具重題慢、純生成快。</li>
<li><strong>安全</strong>：本次零違規；但 halogen run2 證明 t5 是機率性的——工具層硬擋不能少，prompt 寫再多都不算數（文檔原話，贊同）。</li>
<li>差異聲明：halogen 那邊是 5.53bpw 特殊量化＋0.14.2，這邊是 IQ2_XS；題目據文檔說重寫過——趨勢對齊即可，不宣稱 apple-to-apple。</li>
</ol>
<h2>6. 結論與未來計畫</h2>
<p dir="auto"><strong>結論</strong>：RX 9070＋64GB RAM 是跑 Strata 的標準身材。125B MoE decode 30~40 tok/s 全長度不掉，c262K 可用——同卡 gufo 只能跑 27B/21 tok/s。HIP backend 雖標 experimental，但實測正確性、速度、穩定性都達標。</p>
<p dir="auto"><strong>已做</strong>：安裝、編譯、IQ2_XS 上線、ctx sweep、262K 驗證、agent bench。<br />
<strong>待做</strong>（按優先順序）：</p>
<ol>
<li>要圖片輸入只能等上游（HIP vision helper 還是 NVIDIA-only）</li>
<li>384K/512K yarn 超頻（experimental，RAM 先加現在 62GB 不夠）<br />
3.最近在研究開源GUFO引擎的代碼，找出能否將那邊的概念移植到這個引擎讓prefill變得更快<br />
4.這版的MTP Draft接受度還有提升的空間，感覺輸Halogen特調蠻多的，否則decode還有提升空間</li>
</ol>
]]></description><link>https://lcz.me/topic/2031</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 18:36:47 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2031.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Oct 2026 07:22:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RX9070 16G實測STRATA+Qwen 3.8-Flash-Next on Fri, 02 Oct 2026 03:08:37 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kos-or" aria-label="Profile: kos-or">@<bdi>kos-or</bdi></a> <a href="/post/21839">说</a>:</p>
<p dir="auto">Strata 版本更新很快, 試試最新版的, PP增加很多</p>
</blockquote>
<p dir="auto">真好玩 我還想試看看更騷的 我還有一張RTX 3060 12G，有空裝上去試試看...最丐的Flash Next</p>
]]></description><link>https://lcz.me/post/21911</link><guid isPermaLink="true">https://lcz.me/post/21911</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Fri, 02 Oct 2026 03:08:37 GMT</pubDate></item><item><title><![CDATA[Reply to RX9070 16G實測STRATA+Qwen 3.8-Flash-Next on Thu, 01 Oct 2026 14:00:34 GMT]]></title><description><![CDATA[<p dir="auto">Strata 版本更新很快, 試試最新版的, PP增加很多</p>
]]></description><link>https://lcz.me/post/21839</link><guid isPermaLink="true">https://lcz.me/post/21839</guid><dc:creator><![CDATA[kos or]]></dc:creator><pubDate>Thu, 01 Oct 2026 14:00:34 GMT</pubDate></item><item><title><![CDATA[Reply to RX9070 16G實測STRATA+Qwen 3.8-Flash-Next on Thu, 01 Oct 2026 11:09:42 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> 已经挺好了，以前就只能看着别人玩，现在上桌了。</p>
]]></description><link>https://lcz.me/post/21785</link><guid isPermaLink="true">https://lcz.me/post/21785</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 01 Oct 2026 11:09:42 GMT</pubDate></item><item><title><![CDATA[Reply to RX9070 16G實測STRATA+Qwen 3.8-Flash-Next on Thu, 01 Oct 2026 11:08:16 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> 我的不是XT喔 XT可能prefill會快一些，但我覺得AMD ROCm這還有優化空間，另外strata確實會讓cpu占用增加，不知道cpu效能影響多大<br />
結論就是Qwen這個MOE+N-gram架構應該會變產業標準了....善用存儲設備</p>
]]></description><link>https://lcz.me/post/21784</link><guid isPermaLink="true">https://lcz.me/post/21784</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Thu, 01 Oct 2026 11:08:16 GMT</pubDate></item><item><title><![CDATA[Reply to RX9070 16G實測STRATA+Qwen 3.8-Flash-Next on Thu, 01 Oct 2026 11:00:28 GMT]]></title><description><![CDATA[<p dir="auto">忽然忘记了9070XT，5080，5070Ti这些卡收益可能最大，9070XT是不是值得涨一波？</p>
]]></description><link>https://lcz.me/post/21781</link><guid isPermaLink="true">https://lcz.me/post/21781</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 01 Oct 2026 11:00:28 GMT</pubDate></item><item><title><![CDATA[Reply to RX9070 16G實測STRATA+Qwen 3.8-Flash-Next on Thu, 01 Oct 2026 13:59:22 GMT]]></title><description><![CDATA[<h1>這邊後續測試才是重點</h1>
<p dir="auto">有人針對RDNA3優化的fork版本 我把它改成RDNA4也會加速，速度提升一截</p>
<h2>魔改 fork 挖寶（StevenChenSE/Strata:hip-gfx1100，2026-10-01）</h2>
<blockquote>
<p dir="auto">HIP 原作者的開發分支（119 commits 超前，上游 AMD_HIP.md 點名致謝的 doplxyz 同派）。<br />
挑「不用重編譯、改 flag 就能測」的試，能直接吃的都吃了。</p>
</blockquote>
<h2>魔改fork 性能公告</h2>
<p dir="auto">這是作者的公告的RX7900 XTX 24G的提升比例</p>
<blockquote>
<p dir="auto">魔改fork 直接快 25~50%</p>
</blockquote>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th></th>
<th>主線 0.1.30（spec4/min-p0.3/kv-resident）</th>
<th>fork hip-gfx1100（spec6 預設）</th>
</tr>
</thead>
<tbody>
<tr>
<td>短答案</td>
<td>42.3（39/39）</td>
<td><strong>53.5</strong>（39/39）</td>
</tr>
<tr>
<td>散文（思考關）</td>
<td>26.1（50%）</td>
<td><strong>39.9</strong>（54%）</td>
</tr>
</tbody>
</table>
<ul>
<li>踩過的大坑（破案，必記）：fork 首次啟動 <code>cudaMalloc(1.5GB) weight arena failed</code>——<strong>不是 fork 的錯</strong>，是殭屍主線進程佔著 VRAM（rocm-smi 顯示只用 666MB，但進程內 <code>hipMemGetInfo</code> 只剩 322MB 可用——兩者口徑不一！LD_PRELOAD 抓包實錘）。<code>kill -9</code> 殭屍後一次即起。教訓：<strong>信 <code>hipMemGetInfo</code>，不信 rocm-smi；換引擎前先確認 VRAM 真乾淨</strong>。</li>
<li>fork 預設跟主線不一樣：spec 6（主線 spec 8 會腰斬，fork 的 spec 實現不同）、pcie-frac 預設 0.55（主線無此 flag）。</li>
</ul>
<h2>RX9070 16G實測</h2>
<h3>Decode測速MTP情境（c262K，冷 KV，思考關，temp 0；除標註外）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>情境</th>
<th>主線</th>
<th>fork</th>
<th>提升</th>
</tr>
</thead>
<tbody>
<tr>
<td>短答案</td>
<td>26.0（3/3）</td>
<td>30.7（3/3）</td>
<td>＋18%</td>
</tr>
<tr>
<td>散文</td>
<td>28.5（54%）</td>
<td><strong>37.8</strong>（65%）</td>
<td>＋33%</td>
</tr>
<tr>
<td>代碼</td>
<td>39.4（94%）</td>
<td><strong>44.1</strong>（91%）</td>
<td>＋12%</td>
</tr>
<tr>
<td>JSON</td>
<td>35.3（85%）</td>
<td><strong>42.5</strong>（85%）</td>
<td>＋20%</td>
</tr>
</tbody>
</table>
<h3>上下文增長Prefill測速總表（冷 KV，<code>cached=0</code>）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>prompt</th>
<th>主線 prefill</th>
<th>fork prefill</th>
<th>fork decode</th>
</tr>
</thead>
<tbody>
<tr>
<td>2K</td>
<td>488</td>
<td><strong>735</strong></td>
<td>36.2</td>
</tr>
<tr>
<td>4K</td>
<td>759</td>
<td><strong>1123</strong></td>
<td>39.8</td>
</tr>
<tr>
<td>8K</td>
<td>823</td>
<td><strong>1110</strong></td>
<td>41.0</td>
</tr>
<tr>
<td>16K</td>
<td>889</td>
<td><strong>1165</strong></td>
<td>44.1</td>
</tr>
<tr>
<td>32K</td>
<td>936</td>
<td><strong>992</strong></td>
<td>39.9</td>
</tr>
<tr>
<td>64K</td>
<td>906</td>
<td>888</td>
<td>44.2</td>
</tr>
<tr>
<td>128K</td>
<td>874</td>
<td><strong>929</strong></td>
<td>44.7</td>
</tr>
<tr>
<td>250K</td>
<td>731</td>
<td><strong>753</strong></td>
<td>39.8</td>
</tr>
</tbody>
</table>
<p dir="auto">魔改fork 全線贏，prefill 短中長杜 贏最多（MMQ＋packed intrinsics）；decode 全部都提升<br />
符合性能公告，可以參考</p>
<h3>完整配置流程（從零到線上，照貼）</h3>
<pre><code class="language-bash"># ---- 0. 前提：Nobara/Fedora + ROCm 系統包 + 62GB RAM + 1TB SSD ----
# .67 實機：RX 9070 gfx1201，/home 1.1T 可用

# ---- 1. 主線裝起來（驗證機器能跑）----
git clone --depth 1 https://github.com/Niko1221/Strata ~/strata
cd ~/strata
./setup.sh --backend hip --family qwen --model IQ2_XS \
  --context 32768 --vision no --yes
# 跑完直接在 8080（約 30~60 分鐘：venv 11GB＋編譯 10~20 分＋模型 70GB＋啟動）

# ---- 2. 調參（三個，都有實測依據）----
# --spec-min-p 0.5→0.3：打平（37.5 vs 38.0），接受率飽和，留著無妨
# --kv-resident 32768：37.3→40.3（+8%），加上
# --max-context 262144：KV 按需分配，載入只多幾十秒，直接開滿
# 改 ~/strata/strata-iq2_xs.json 內 args，殺掉重起（30 秒）：
pkill -f 'serve.server'; pkill -f 'engine/strata'  # 確認殺乾淨再起（殭屍會佔 VRAM！）

# ---- 3. fork 上線（快的在這）----
git clone --branch hip-gfx1100 https://github.com/StevenChenSE/Strata ~/strata-fork
cd ~/strata-fork
./setup.sh --backend hip --family qwen --model IQ2_XS --context 32768 \
  --vision no --port 8081 --data-dir ~/Strata-data --yes
# 數據重用（模型/pack/MTP 共用，不重下 70GB），多佔 12GB（venv＋build）
# A/B 完：改 json port→8080、max-context→262144，重起即扶正
# fork 線上等於主線配置減掉 --kv-resident（還贏；要不要疊加待測）

# ---- 4. 健康檢查＋冒煙 ----
curl http://127.0.0.1:8080/health
# {"status":"ok","max_context":262144,...,"loaded":true}
curl http://127.0.0.1:8080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"max_tokens":64,"messages":[{"content":"What is 12 times 12? Reply with just the number.","role":"user"}],"model":"qwen3.8-flash-next-iq2_xs","reasoning_effort":"off","temperature":0}'
# CONTENT: '144'

# ---- 5. 日常開關 ----
# 啟動：cd ~/strata-fork &amp;&amp; .venv/bin/python -m serve.server --engine strata --config strata-iq2_xs.json --port 8080
# 停止：pkill -f 'serve.server'; pkill -f 'engine/strata'（兩個都要，缺一會留殭屍佔 VRAM）
# 切回主線：cd ~/strata 同上（json 還在，30 秒）
# 開機自啟：還沒設（pending，見 §5）
</code></pre>
]]></description><link>https://lcz.me/post/21778</link><guid isPermaLink="true">https://lcz.me/post/21778</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Thu, 01 Oct 2026 13:59:22 GMT</pubDate></item></channel></rss>