<?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[Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next)]]></title><description><![CDATA[<h1>halogen-flash-server 跑 Qwen3.8-Flash-Next 完整設定與實測（Strix Halo gfx1151）</h1>
<p dir="auto">前天知道訊息時知道很吃內存，隨便測到24K就收手了，就先去測27B<br />
這次把BIOS調好把系統掛載應用收一收認真測到長ctx，結果太逆天了....曲線沒掉<br />
這如果開源下去，能用在7900XTX或R9700還得了</p>
<blockquote>
<p dir="auto">實測環境：AMD Strix Halo（Ryzen AI MAX+ 395，Radeon 8060S），2026-09。<br />
目標讀者：同架構想抄作業的人。照貼可跑。<br />
姊妹篇：<a href="https://lcz.me/topic/1623">AI Max+ 395 定製的docker Qwen 3.8 27b prefill翻倍了</a>。</p>
</blockquote>
<hr />
<h2>1. 案例系統</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>項目</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td>APU</td>
<td>AMD Strix Halo <code>gfx1151</code>，32 thread</td>
</tr>
<tr>
<td>統一記憶體</td>
<td>128 GB 物理，<strong>BIOS carve 調最小後 OS 可見 124 GB</strong>（UMA VRAM一定得調最小，見 §3.3）</td>
</tr>
<tr>
<td>系統碟</td>
<td>1 TB NVMe（系統）</td>
</tr>
<tr>
<td>資料碟</td>
<td>2 TB NVMe Gen4（模型全放這；n-gram 47G 走 page cache 吃這顆的速度）</td>
</tr>
<tr>
<td>OS</td>
<td>Nobara 44（Fedora 系）</td>
</tr>
<tr>
<td>容器</td>
<td>Podman rootful（<code>--device /dev/kfd --device /dev/dri</code>；Docker 把 <code>--group-add keep-groups</code> 換成 <code>video</code>＋<code>render</code>）</td>
</tr>
<tr>
<td>ROCm</td>
<td>host 7.2.4（engine 自帶 runtime，只借 kfd／dri；官方用 7.14 測的）</td>
</tr>
<tr>
<td>Engine</td>
<td><code>ghcr.io/peonist-ai/halogen-flash-server:0.6.1</code>，單容器 <code>:8731</code></td>
</tr>
</tbody>
</table>
<hr />
<h2>2. 特別項目與特殊量化模型介紹</h2>
<h3>2.1 flash 是什麼（跟舊 halogen 同門不同掛）</h3>
<p dir="auto">peonist-ai 寫的** Strix Halo 專用引擎第二代**，只認一顆 U、一個模型家族（Qwen3.8-Flash-Next，179B MoE）。跟舊 halogen（27B dense 專用）同作者、不同 binary（<code>flash_serve</code>，CLI 是 <code>--ck</code>，無 <code>--serve</code>）：</p>
<ul>
<li><strong>原生 262,144 ctx</strong>（<code>HALOGEN_CTX</code> 預設，要縮就縮，見 §3.3）</li>
<li><strong>兩種 drafter</strong>：serial greedy＋MTP depth-1（wire 0/1），temperature 0 byte-identical 保證沿用</li>
<li><strong>n-gram 是第二個模型</strong>：51B 參數的 FP8 embedding 表（47.7 GiB），<strong>放 SSD、用 page cache 分頁讀，不常駐</strong>——prompt lookup draft 的來源，也是長文第一次慢的原因</li>
<li><strong>KV</strong>：多 slot 共用一個 pool（<code>slots × ctx</code> 預算制，<code>HALOGEN_KV_POOL_FIT=1</code> 預設會自己縮水並印出決定）</li>
<li><strong>OpenAI 相容</strong>：<code>/v1/chat/completions</code>、<code>/v1/responses</code>、streaming、tool calling；<strong>原生支援關思考</strong>（<code>HALOGEN_ENABLE_THINKING=0</code>，不用 proxy 灌 flag）</li>
<li><strong>有 vision</strong>（0.6 起收 image content part；舊 halogen 沒有。這代 API＋engine 必須同 tag 跑，見官方 issue #26 教訓）</li>
<li><strong>token 預算含思考</strong>（沿用：<code>max_tokens</code> 用完直接空回覆＋<code>finish=length</code>，先看 <code>finish_reason</code> 再罵模型）</li>
</ul>
<h3>2.2 特殊量化：5.53 bpw（官方算法，不是格式名）</h3>
<p dir="auto">179.55B 全參數量下來 5.53 bits/weight（扣掉 n-gram 表，主幹＋專家 4.55）。演算法細節見官方 <code>docs/QUANT.md</code>，可用算術驗算不是喊口號。</p>
<h3>2.3 跟 llama.cpp 體系的根本差異（沿用舊表，加兩列）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th></th>
<th>Halogen Flash Server</th>
<th>舊 halogen 27B</th>
<th>llama.cpp 系</th>
</tr>
</thead>
<tbody>
<tr>
<td>常駐體重</td>
<td>68G 權重＋14.4G KV＋12.5G working</td>
<td>35.9G</td>
<td>13–20G（Q4）</td>
</tr>
<tr>
<td>關思考</td>
<td>server 原生 env</td>
<td>需靠 proxy 注入／per-request flag</td>
<td>per-request flag</td>
</tr>
<tr>
<td>多模型</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=a9f01d9edaa" class="not-responsive emoji emoji-android emoji--x" style="height:23px;width:auto;vertical-align:middle" title="❌" alt="❌" />（一顆專用）</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=a9f01d9edaa" class="not-responsive emoji emoji-android emoji--x" style="height:23px;width:auto;vertical-align:middle" title="❌" alt="❌" /></td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=a9f01d9edaa" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
</tr>
<tr>
<td>管理面</td>
<td>env 全配置＋自適應（啟動印預算行）</td>
<td>env</td>
<td>preset ini＋systemd</td>
</tr>
</tbody>
</table>
<hr />
<h2>3. 配置流程</h2>
<h3>3.1 抓 engine＋權重（共 ~118G）</h3>
<pre><code class="language-bash"># 容器內自動抓（rw mount，斷點可續傳；115G checkpoint 永不重抓，只補 2.4G sidecar）
sudo podman run -d --name halogen-flash -p 8731:8731 \
  --device /dev/kfd --device /dev/dri --group-add keep-groups \
  --ipc=host --ulimit memlock=-1:-1 \
  -e HALOGEN_DOWNLOAD=peonist-ai/halogen-qwen3.8-flash-next \
  -v &lt;MODEL_DIR&gt;/halogen-models:/models \
  ghcr.io/peonist-ai/halogen-flash-server:0.6.1

# 或手動先下好再 :ro 跑（踏實派）：
# hf download peonist-ai/halogen-qwen3.8-flash-next --local-dir &lt;MODEL_DIR&gt;/halogen-models
</code></pre>
<h3>3.2 啟動（正式參數，思考關＋全量 ctx）</h3>
<pre><code class="language-bash">sudo podman run -d --name halogen-flash -p 8731:8731 \
  --device /dev/kfd --device /dev/dri --group-add keep-groups \
  --ipc=host --ulimit memlock=-1:-1 \
  -e HALOGEN_ENABLE_THINKING=0 \
  -e HALOGEN_REASONING_EFFORT=low \
  -e HALOGEN_MAX_TOK=16384 \
  -v &lt;MODEL_DIR&gt;/halogen-models:/models:ro \
  ghcr.io/peonist-ai/halogen-flash-server:0.6.1
</code></pre>
<p dir="auto">systemd（<code>halogen-flash.service</code>，enable；就是上面包一層＋<code>Restart=always</code>）。健康檢查：<code>curl 127.0.0.1:8731/health</code>（<code>status ok</code>＋<code>server_defaults</code> 可驗思考預設；冷載入讀 ~68G，幾分鐘，開著 log 看進度）。</p>
<h3>3.3 RAM 預算（系統內存必須設到124G ，整份文件的關鍵）</h3>
<p dir="auto">冷載入自報（ MEM 單位 GiB）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>項目</th>
<th>用量</th>
</tr>
</thead>
<tbody>
<tr>
<td>權重 pin</td>
<td>68.0</td>
</tr>
<tr>
<td>KV pool（524288 positions，4 slots 共用）</td>
<td>14.4</td>
</tr>
<tr>
<td>working memory</td>
<td>12.5</td>
</tr>
<tr>
<td><strong>合計常駐</strong></td>
<td><strong>94.9</strong></td>
</tr>
<tr>
<td>剩餘（124G 可見）</td>
<td>~30</td>
</tr>
</tbody>
</table>
<p dir="auto">Gate（硬門檻，不過直接 2 秒退出）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>檢查</th>
<th>數字</th>
</tr>
</thead>
<tbody>
<tr>
<td>pin 65.6G＋floor 16G</td>
<td>要 <strong>MemAvailable ≥ 81.6G</strong></td>
</tr>
</tbody>
</table>
<p dir="auto">血淚對照（同一台，不同 carve）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>host 可見</th>
<th>結果</th>
</tr>
</thead>
<tbody>
<tr>
<td>62G（carve 64G，原廠大 carve）</td>
<td>pin gate 直接拒載</td>
</tr>
<tr>
<td>93G（carve 35G）</td>
<td>pin 過，死在 pool（<code>host RAM cannot spare 27.8 GiB</code>）＋device HIP OOM；只能 <code>HALOGEN_CTX=32768</code> 半速版</td>
</tr>
<tr>
<td><strong>124G（carve 最小）</strong></td>
<td><strong>全量一次過</strong></td>
</tr>
</tbody>
</table>
<p dir="auto">結論：<strong>carve 往小調</strong>，device 走 GTT 不怕 carve 小（128K 實驗證明小 carve 下 engine 照起）；host 可見才是門票。<code>free</code> 會把 68G pin 權重誤算成可回收 cache 而虛報，信 engine 啟動印的那行，不要信 <code>free</code>。</p>
<h3>3.4 Deepseek Harness 接入</h3>
<p dir="auto">dsh（<code>~/.dsh/settings.yaml</code>，<code>llm-pi-ai</code> 下，改完下個請求生效免重啟）：</p>
<pre><code class="language-yaml">llm-pi-ai:
  halogen:
    displayName: Halogen Flash-Next
    api: openai-completions
    baseURL: http://127.0.0.1:8731/v1
    apiKeyEnv: HALOGEN_API_KEY
    models:
      - id: halogen-qwen3.8-flash-next
        name: Halogen Flash-Next
        contextWindow: 262144
</code></pre>
<p dir="auto">憑據走 <code>~/.dsh/.credentials.yaml</code> 的 <code>refs</code>（隨便填，server 不驗；但引用一定要存在，不然 <code>MISSING_CREDENTIAL</code>）。dsh 的设置→模型頁不顯示手寫路由，直接去對話的模型選單找，或用「添加自定义提供方」再加一條（一樣指 <code>:8731</code>，思考照樣關）。</p>
<h3>3.5 地雷（全踩過）</h3>
<ol>
<li>同機大戶應用服務全停（餘裕經常只有幾 G）。</li>
<li><code>podman stop -a</code> 會連 flash 一起砍，點名停。</li>
<li>碎片：大進程剛走時連續 2MiB 塊剩 1400 個，啟前 <code>echo 1 &gt; /proc/sys/vm/compact_memory</code>。</li>
<li>深 prompt 第一次慢是 n-gram 分頁（SSD 速度），不是 hang；真 hang 看 <code>engine watchdog</code>（180 秒無進度自殺，調 <code>HALOGEN_ENGINE_WATCHDOG_S</code>）。</li>
<li><code>HALOGEN_FLASH_PIN_TRUNK=0</code> 是最後手段（decode 慢數倍），機器夠大永遠別碰。</li>
</ol>
<hr />
<h2>4. 實測速度</h2>
<p dir="auto">條件：同機、temp 0.4（decode）／0.0（prefill）、思考關（server 預設，另有 <code>enable_thinking: false</code> 對齊舊標準）。</p>
<h3>4.1 Decode（fib 31 tok in／250 tok out，同 prompt 三發，finish 皆 length）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>run1／2／3</th>
<th>平均</th>
</tr>
</thead>
<tbody>
<tr>
<td>45.5／52.9／52.1</td>
<td><strong>50.2</strong>（舊 27B halogen 50.1，打平）</td>
</tr>
</tbody>
</table>
<h3>4.2 Prefill（fill 文，wall 實測，finish 皆 stop）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>prompt（actual）</th>
<th>flash-next</th>
</tr>
</thead>
<tbody>
<tr>
<td>2K（首發冷）</td>
<td><strong>232.8</strong></td>
</tr>
<tr>
<td>4K</td>
<td><strong>938.3</strong></td>
</tr>
<tr>
<td>8K</td>
<td><strong>1101.0</strong></td>
</tr>
<tr>
<td>16K</td>
<td><strong>1219.5</strong></td>
</tr>
<tr>
<td>24.5K</td>
<td><strong>1254.1</strong></td>
</tr>
<tr>
<td>52K</td>
<td><strong>1321.1</strong>（39 秒）</td>
</tr>
<tr>
<td>111K</td>
<td><strong>1350.3</strong>（82 秒）</td>
</tr>
<tr>
<td>198K</td>
<td><strong>1320.9</strong>（150 秒）</td>
</tr>
</tbody>
</table>
<p dir="auto">52K→198K 全程 1320 上下，深度不掉速。</p>
<h3>4.3 Cache（16K 同 prompt 兩發）</h3>
<p dir="auto">冷 10.7s → <strong>暖 0.2s（×50）</strong>。</p>
<h3>4.4 Agentic（自寫 ReAct harness t1–t8，工具全開）</h3>
<p dir="auto"><strong>8/8</strong>，迴圈 0、核彈 0；tps 2.4–30（工具重題偏低，純生成題 30.0；舊 halogen 17–28、fork 23–35）。</p>
<hr />
<h2>5. 測速比較表（同機實測總表）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>項目</th>
<th>flash-next 179B（5.53bpw）</th>
<th>舊 halogen 27B（6.3bpw）</th>
<th>27B ROCmFP4＋DFlash2</th>
<th>27B GGUF Q4（HIP）</th>
</tr>
</thead>
<tbody>
<tr>
<td>decode（fib）</td>
<td><strong>50.2</strong></td>
<td>50.1</td>
<td>46.0</td>
<td>24.0</td>
</tr>
<tr>
<td>prefill 16K</td>
<td><strong>1219.5</strong></td>
<td>614.1</td>
<td>431.6</td>
<td>—</td>
</tr>
<tr>
<td>prefill 100K＋</td>
<td><strong>~1330</strong></td>
<td>382（128K）</td>
<td>190（128K）</td>
<td>—</td>
</tr>
<tr>
<td>prefill 198K</td>
<td><strong>1320.9</strong></td>
<td>—（沒測）</td>
<td>—</td>
<td>—</td>
</tr>
<tr>
<td>暖輪</td>
<td><strong>0.2s（×50）</strong></td>
<td>9.9s（×5.7）</td>
<td>disk restore</td>
<td>同左</td>
</tr>
<tr>
<td>agentic</td>
<td>8/8（2.4–30 tps）</td>
<td>8/8（17–28）</td>
<td>8/8（23–35）</td>
<td>6/6</td>
</tr>
<tr>
<td>ctx 上限</td>
<td>262144</td>
<td>262144</td>
<td>131072</td>
<td>視模型</td>
</tr>
<tr>
<td>體重</td>
<td>118G（磁碟）／95G（常駐）</td>
<td>36G／53G</td>
<td>~15G</td>
<td>~17G</td>
</tr>
<tr>
<td>vision</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=a9f01d9edaa" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" />（0.6＋）</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=a9f01d9edaa" class="not-responsive emoji emoji-android emoji--x" style="height:23px;width:auto;vertical-align:middle" title="❌" alt="❌" /></td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=a9f01d9edaa" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=a9f01d9edaa" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
</tr>
<tr>
<td>多模型</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=a9f01d9edaa" class="not-responsive emoji emoji-android emoji--x" style="height:23px;width:auto;vertical-align:middle" title="❌" alt="❌" /></td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=a9f01d9edaa" class="not-responsive emoji emoji-android emoji--x" style="height:23px;width:auto;vertical-align:middle" title="❌" alt="❌" /></td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=a9f01d9edaa" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=a9f01d9edaa" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
</tr>
</tbody>
</table>
<hr />
<h2>6. 結論</h2>
<ol>
<li><strong>179B 跑出 27B 的 decode、兩倍多的 prefill，還一路平到 200K</strong>：6 倍參數、速度沒掉，Strix Halo 專用 kernel 的價值。opencode 日常（大 prompt＋短回答）正中下懷：10 萬字開局 82 秒，以前要 9 分鐘。</li>
<li><strong>RAM 是唯一的門票</strong>：94.9GiB 常駐，host 可見 124G 才玩全量。BIOS carve 調小是正解；<code>free</code> 會虛報 68G，信 engine 的預算行。</li>
<li><strong>agent 可用</strong>：8/8＋零違規；極限 tps 看題型，短句漂亮、長推理掉。</li>
<li><strong>代價清單</strong>：118G 磁碟、95G 常駐、單模型、整台機器資源被占用（§3.5）。</li>
<li>未來前景看好，次世代模型的架構，如果配上次世代的推論引擎，若能在所有RDNA卡與多模型切換才是香。</li>
</ol>
]]></description><link>https://lcz.me/topic/1659</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 17:39:47 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1659.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Sep 2026 15:23:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sun, 13 Sep 2026 04:02:55 GMT]]></title><description><![CDATA[<p dir="auto">对，稀疏/线性注意力这条线成立，基本就是这个机制，不用再往 O(n²) 上套。</p>
<p dir="auto">补两个边界，免得从「能平」外推过头：</p>
<p dir="auto">O(n) 指的是混合架构里那条线性路径（如 Qwen3-Next 的 gated DeltaNet + 稀疏 MoE）；多数模型仍保留少量全注意力层（常见 3:1 或隔几层一个），这几层还是 O(n²)。所以曲线通常不是全程水平，而是在全注意力层占比被稀释后才趋平，ctx 拉到极长仍会有缓降。</p>
<p dir="auto">稀疏省的是计算，不代表 decode 每步读的 KV/状态量是零，瞬时上限还受 kernel 效率和显存带宽约束。你这份能平到 200K，说明实现和量测口径都站得住。</p>
<p dir="auto">想验证就同机画两条 pp（首 token）曲线：一条全注意力、一条这个混合模型，差距会直接体现在长 ctx 的斜率上。</p>
]]></description><link>https://lcz.me/post/17737</link><guid isPermaLink="true">https://lcz.me/post/17737</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Sun, 13 Sep 2026 04:02:55 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sun, 13 Sep 2026 03:20:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xiaote" aria-label="Profile: Xiaote">@<bdi>Xiaote</bdi></a> 不用去想太多啥O(n²)，新世代模型架構的稀疏注意力可以做到O(n)</p>
]]></description><link>https://lcz.me/post/17729</link><guid isPermaLink="true">https://lcz.me/post/17729</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Sun, 13 Sep 2026 03:20:59 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sat, 12 Sep 2026 22:01:43 GMT]]></title><description><![CDATA[<p dir="auto">洗掉 cache 做冷预填，那 prefix cache / n-gram 这个解释就不成立，我上一条那点说错了。</p>
<p dir="auto">补个区分：随 ctx 明显掉的是 prefill（pp tokens/s、首 token 延迟），全注意力是 O(n²)；decode（tg）在 GQA + 权重带宽主导下基本平——每步固定读权重，KV 那点读取被权重淹没，ctx 很长之前看不出来。我上一条把这两件事混在一起了。</p>
<p dir="auto">如果 halogen 的 pp / 首 token 也不掉，那更可能是模型架构本身：Qwen3.8-Flash-Next 如果是 Qwen3-Next 那种混合线性注意力（多数层线性、少数层全注意力），长 ctx 本来就接近线性，跟 cache 无关。</p>
<p dir="auto">要验证就同机分别画 pp-tok/s vs ctx、tg-tok/s vs ctx，再拿一个纯全注意力模型跑同一条曲线对比；只有混合模型平，那就是架构。</p>
]]></description><link>https://lcz.me/post/17669</link><guid isPermaLink="true">https://lcz.me/post/17669</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Sat, 12 Sep 2026 22:01:43 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sat, 12 Sep 2026 19:23:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xiaote" aria-label="Profile: Xiaote">@<bdi>Xiaote</bdi></a> 別亂講 我測試benchmark每輪都是洗掉後全新增量冷預填</p>
]]></description><link>https://lcz.me/post/17651</link><guid isPermaLink="true">https://lcz.me/post/17651</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Sat, 12 Sep 2026 19:23:07 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sat, 12 Sep 2026 19:02:05 GMT]]></title><description><![CDATA[<p dir="auto">你遇不到是正常的，4090 上长 ctx 就是会掉，跟卡好坏无关：</p>
<ul>
<li>prefill 是 O(n²) 注意力，ctx 翻倍近似 4 倍计算，首 token 越来越慢；</li>
<li>decode 每步要读的 KV cache 随 ctx 线性增长，显存带宽固定，所以也会缓降。</li>
</ul>
<p dir="auto">halogen 那份能一路平到 200K，最可能不是「不算注意力」，而是命中了 prefix cache / n-gram（同一段上下文反复问、长文档问答，命中部分不用重算）。验证很简单：用 llama-bench 每次喂全新 prompt（或关掉 cache），prefill/decode 一起打曲线，4090 上一样会看到随 ctx 下滑。若曲线仍平，再去看 engine 的 cache 命中率。</p>
]]></description><link>https://lcz.me/post/17644</link><guid isPermaLink="true">https://lcz.me/post/17644</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Sat, 12 Sep 2026 19:02:05 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sat, 12 Sep 2026 17:58: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> 在 M5 Max (128GB) 上运行 Qwen3.8-Flash-Next 的 Q4 量化版本，速度表现高度依赖于你选择的推理运行时（Runtime）和具体配置。不同方案下的解码速度差异显著，从大约 28 tok/s 到 76 tok/s 不等。</p>
<p dir="auto">各运行时速度实测数据<br />
以下是基于 M5 Max (128GB) 的实测数据汇总：</p>
<p dir="auto">MLX 框架 (Apple 原生优化)</p>
<p dir="auto">典型速度：~57.5 tokens/s。这是在 Inferencer app 中测试的 Q4 版本速度，内存占用约 98.7 GiB。</p>
<p dir="auto">其他 MLX 配置：部分 MLX oQ4 实现的 standalone 生成速度约为 28-30 tokens/s。</p>
<p dir="auto">MLX + 量化 Draft 模型：如果搭配 DFlash2 量化草稿模型进行投机解码，速度可达 76.1 tokens/s，相比无投机解码的 33.3 tok/s 提升了 2.29 倍，且草稿模型量化对接受率影响很小（仅下降约 1%）。</p>
<p dir="auto">oMLX (Python 实现)</p>
<p dir="auto">开启 MTP（多 Token 预测）：在代码任务（5k 上下文）下，速度可从 43.2 tok/s 提升至 63.4 tok/s（+47%）。</p>
<p dir="auto">长上下文表现：在 41k 上下文下，开启 MTP 后速度约为 57.2 tok/s。</p>
<p dir="auto">llama.cpp (GGUF 格式)</p>
<p dir="auto">短上下文速度：在 71k 上下文下，UD-Q4_K_XL 量化版本的速度约为 69.3 至 72.7 tok/s，提示处理（Prefill）速度约为 2720 tok/s。</p>
<p dir="auto">MTP 投机解码：有报告显示，通过特定优化，速度可从 4.77 tok/s 提升至 25.83 tok/s（短上下文）。</p>
<p dir="auto">注意：llama.cpp 对 Qwen3.8-Flash-Next 的 qwen4exp 架构支持可能需要专用分支或特定编译。</p>
]]></description><link>https://lcz.me/post/17638</link><guid isPermaLink="true">https://lcz.me/post/17638</guid><dc:creator><![CDATA[johnnybegood]]></dc:creator><pubDate>Sat, 12 Sep 2026 17:58:42 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sat, 12 Sep 2026 17:11:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/polytoo" aria-label="Profile: Polytoo">@<bdi>Polytoo</bdi></a> 其實agent比較看重prefill速度，decode速度對聊天比較有感</p>
]]></description><link>https://lcz.me/post/17632</link><guid isPermaLink="true">https://lcz.me/post/17632</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Sat, 12 Sep 2026 17:11:54 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sat, 12 Sep 2026 16:11:50 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://upload.lcz.me/uploads/9503b048-5a53-43a5-9b64-273e7770ab7e.jpeg" alt="image.jpeg" class=" img-fluid img-markdown" /><br />
支援視覺 速度很快就很有趣</p>
]]></description><link>https://lcz.me/post/17623</link><guid isPermaLink="true">https://lcz.me/post/17623</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Sat, 12 Sep 2026 16:11:50 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sat, 12 Sep 2026 16:09:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/polytoo" aria-label="Profile: Polytoo">@<bdi>Polytoo</bdi></a> 我這測好玩的，玩得差不多我還是會下線，太佔空間了搞得機器不能幹別的活</p>
]]></description><link>https://lcz.me/post/17622</link><guid isPermaLink="true">https://lcz.me/post/17622</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Sat, 12 Sep 2026 16:09:07 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sat, 12 Sep 2026 16:06:30 GMT]]></title><description><![CDATA[<p dir="auto">谢谢，我也是395，等下就去试试，目前本地走的别的方案，qwen3.8 flash next基本维持在19-22tokens/s输出，你这个看着更厉害</p>
]]></description><link>https://lcz.me/post/17621</link><guid isPermaLink="true">https://lcz.me/post/17621</guid><dc:creator><![CDATA[Polytoo]]></dc:creator><pubDate>Sat, 12 Sep 2026 16:06:30 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sat, 12 Sep 2026 16:05:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xiaote" aria-label="Profile: Xiaote">@<bdi>Xiaote</bdi></a> 我自己也有4090，但還真沒遇過長ctx不掉速這回事</p>
]]></description><link>https://lcz.me/post/17620</link><guid isPermaLink="true">https://lcz.me/post/17620</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Sat, 12 Sep 2026 16:05:51 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sat, 12 Sep 2026 16:03:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnnybegood" aria-label="Profile: johnnybegood">@<bdi>johnnybegood</bdi></a> 跨平台比这个要小心口径。Strix Halo 的 GPU 可用内存受 BIOS carve 限制，M 系是整个统一内存池，两边"能装多大模型"不是一回事。</p>
<p dir="auto">真正可比的是带宽和 prefill/decode：Strix Halo 约 256 GB/s，M4 Max 约 546 GB/s、M3 Ultra 约 800 GB/s（M5 还没官方数，别拿传闻比）。带宽差 2–3 倍，decode 上限大致也差这个量级。但 Metal 后端对 Qwen3.8-Flash-Next 这类新架构的支持要单独确认，不是有卡就能跑。</p>
<p dir="auto">另外 halogen 这份数据最值钱的不是峰值，是长 ctx 曲线不掉——那多半来自 n-gram/page cache 命中，换平台不一定复现。要比就固定同 quant、同 ctx、同 prompt 长度各测一次，否则数字没有可比性。</p>
]]></description><link>https://lcz.me/post/17619</link><guid isPermaLink="true">https://lcz.me/post/17619</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Sat, 12 Sep 2026 16:03:30 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sat, 12 Sep 2026 15:46:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnnybegood" aria-label="Profile: johnnybegood">@<bdi>johnnybegood</bdi></a> 我沒有mac，請去看看有沒有兄弟有數據比一下吧</p>
]]></description><link>https://lcz.me/post/17609</link><guid isPermaLink="true">https://lcz.me/post/17609</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Sat, 12 Sep 2026 15:46:35 GMT</pubDate></item><item><title><![CDATA[Reply to Halogen Flash Server配置與實測(AI Max+ 395 w Qwen 3.8 Flash Next) on Sat, 12 Sep 2026 15:37:38 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> 不知道比 128G 的 M5 MAX怎么样</p>
]]></description><link>https://lcz.me/post/17608</link><guid isPermaLink="true">https://lcz.me/post/17608</guid><dc:creator><![CDATA[johnnybegood]]></dc:creator><pubDate>Sat, 12 Sep 2026 15:37:38 GMT</pubDate></item></channel></rss>