<?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[抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測]]></title><description><![CDATA[<p dir="auto">前天到了兩張R9700就想著上論壇抄作業，本地跑上了qwen3.8後才發現這兩傢伙的噪音比我想像中的大。看到論壇上許多大神提到限制功耗可以改善些噪音於是興起了測試250W/280W/300W下的功耗狀況，對於噪音結論是--都很吵。看到數據後發現對比我原先的RTX 5060 Ti 16G *2好像快不了多少，於是又嘗試了一下llama.cpp Vulkan MTP。</p>
<blockquote>
<p dir="auto">一台機器兩張 32GB R9700（ROCm 7.2 + Mesa 25.2.8，280W cap）。GPU1 跑 SGLang（Qwen3.8-27B AWQ int4，192K），GPU0 原本空閒，09-03 起加跑 llama.cpp Vulkan（同模型 GGUF + MTP 投機解碼）。所有數字皆本機實測，方法與原始數據見文末。</p>
</blockquote>
<p dir="auto"><strong>一句話</strong>：llama.cpp MTP 在 code / JSON / 工具呼叫這類可預測內容上，192K 深度 decode 約 <strong>1.5 倍</strong>、短上下文 2.4–3.4 倍於 SGLang；但散文、長思考反而較慢（投機解碼對不可預測內容是淨負）。</p>
<p dir="auto">先謝過幾位前輩的實測鋪路：</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/brian" aria-label="Profile: Brian">@<bdi>Brian</bdi></a> 前輩《双 R9700 部署 — GPU1 跑 SGLang 256K 大模型，GPU0 跑 ComfyUI MiniMax H3 视频》(<a href="http://lcz.me/topic/1416" rel="nofollow ugc">lcz.me/topic/1416</a>) — 本機 SGLang 部署配置即參照此文，依實況改 192K、GPU0 不跑 ComfyUI<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/phoenixrise2026" aria-label="Profile: PhoenixRise2026">@<bdi>PhoenixRise2026</bdi></a> 前輩《R9700 32GB 跑 Qwen3.8-27B：llama.cpp Vulkan + MTP 实测与踩坑记录》(<a href="http://lcz.me/topic/1218" rel="nofollow ugc">lcz.me/topic/1218</a>)<br />
@Zero Snow 前輩《單張 RX 7900 XTX 24GB Qwen3.8-27B 優化紀錄 —— Vulkan 路線實測報告》(<a href="http://lcz.me/topic/1398" rel="nofollow ugc">lcz.me/topic/1398</a>)<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/johnalee4" aria-label="Profile: Johnalee4">@<bdi>Johnalee4</bdi></a> 前輩《分享自己的经验 7900 XTX Vulkan 主线 llama.cpp DSpark / DFlash/MTP 投机解码实测》(<a href="http://lcz.me/topic/1050" rel="nofollow ugc">lcz.me/topic/1050</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>CPU</td>
<td>Intel Core i5-10400（6C12T @ 2.90GHz，睿頻 4.3GHz，L3 12MB）</td>
</tr>
<tr>
<td>主機板</td>
<td>MSI MEG Z490 UNIFY（MS-7C71，rev 2.0）</td>
</tr>
<tr>
<td>BIOS</td>
<td>American Megatrends A.G2（2026-04-14）</td>
</tr>
<tr>
<td>記憶體</td>
<td>64GB = 4×16GB DDR4-2667（雙通道，4 槽全插滿）</td>
</tr>
<tr>
<td>GPU 1</td>
<td>AMD Radeon AI PRO R9700（RDNA4，gfx1201）32GB，PCI 06:00.0 — SGLang</td>
</tr>
<tr>
<td>GPU 2</td>
<td>AMD Radeon AI PRO R9700（RDNA4，gfx1201）32GB，PCI 03:00.0 — llama.cpp</td>
</tr>
<tr>
<td>儲存</td>
<td>1× 1TB NVMe（Crucial CT1000P310SSD8，931.5G）</td>
</tr>
<tr>
<td>作業系統</td>
<td>Ubuntu 24.04，kernel 7.0.0-30-generic（x86_64），headless</td>
</tr>
</tbody>
</table>
<p dir="auto">磁碟分割（p4 = /home 574.7G）：</p>
<ul>
<li>p1 1G EFI</li>
<li>p2 326G <code>/</code> ext4</li>
<li>p3 29.8G swap</li>
<li>p4 574.7G <code>/home</code> ext4</li>
</ul>
<p dir="auto">關鍵背景：gfx1201（RDNA4）不在 ROCm 官方支援列表，SGLang 能跑靠 <code>HSA_OVERRIDE_GFX_VERSION=12.0.1</code> + patch fork；32G 單卡塞 192K 靠 AWQ int4 權重 + fp8 KV cache。CPU 只負責排程（~1.8 核）與 tokenizer，不構成瓶頸。</p>
<h2>2. SGLang 啟動（GPU1，port 23334）</h2>
<pre><code class="language-bash">python -m sglang.launch_server \
  --model-path /home/benai/AI/models/Qwen3.8-27B-AWQ \
  --enable-multimodal --quantization awq \
  --served-model-name qwen3.8-27b \
  --dtype bfloat16 --kv-cache-dtype fp8_e4m3 \
  --context-length 196608 --mem-fraction-static 0.85 \
  --max-running-requests 1 \
  --num-continuous-decode-steps 16 \
  --chunked-prefill-size 8192 --max-prefill-tokens 16384 \
  --cuda-graph-backend-decode full --attention-backend triton \
  --max-mamba-cache-size 8 --mamba-ssm-dtype bfloat16 \
  --reasoning-parser qwen3 --tool-call-parser qwen3_coder \
  --trust-remote-code --watchdog-timeout 1200 \
  --host 0.0.0.0 --port 23334
</code></pre>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>參數</th>
<th>值</th>
<th>為什麼</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>--context-length</code></td>
<td><code>196608</code></td>
<td>192K 上下文（由 256K 下調）</td>
</tr>
<tr>
<td><code>--quantization awq</code> + <code>--dtype</code></td>
<td><code>awq</code> / <code>bfloat16</code></td>
<td>權重 int4 省顯存，激活走 bf16</td>
</tr>
<tr>
<td><code>--kv-cache-dtype</code></td>
<td><code>fp8_e4m3</code></td>
<td>長上下文省顯存主力，192K 能跑的核心</td>
</tr>
<tr>
<td><code>--mem-fraction-static</code></td>
<td><code>0.85</code></td>
<td>權重 + KV 預留比例，32G 上穩妥</td>
</tr>
<tr>
<td><code>--max-running-requests</code></td>
<td><code>1</code></td>
<td>單請求最穩最可預測（犧牲並發）</td>
</tr>
<tr>
<td><code>--chunked-prefill-size</code> / <code>--max-prefill-tokens</code></td>
<td><code>8192</code> / <code>16384</code></td>
<td>prefill 分塊，平衡峰值顯存與 TTFT</td>
</tr>
<tr>
<td><code>--num-continuous-decode-steps</code> + <code>--cuda-graph-backend-decode</code></td>
<td><code>16</code> / <code>full</code></td>
<td>連續解碼配完整 graph，降 launch 開銷</td>
</tr>
<tr>
<td><code>--attention-backend</code></td>
<td><code>triton</code></td>
<td>AMD 必須（NVIDIA FA 路徑不可用）</td>
</tr>
<tr>
<td><code>--max-mamba-cache-size</code> / <code>--mamba-ssm-dtype</code></td>
<td><code>8</code> / <code>bfloat16</code></td>
<td>限制 mamba/SSM 層緩存規模</td>
</tr>
<tr>
<td><code>--watchdog-timeout</code></td>
<td><code>1200</code></td>
<td>長 prefill 數分鐘，避免被誤殺</td>
</tr>
<tr>
<td><code>--enable-multimodal</code></td>
<td>—</td>
<td>開視覺（配 mmproj）</td>
</tr>
<tr>
<td><code>--reasoning-parser</code> / <code>--tool-call-parser</code></td>
<td><code>qwen3</code> / <code>qwen3_coder</code></td>
<td>think 推理塊與 tool call 解析</td>
</tr>
</tbody>
</table>
<h2>3. 環境變數（從在跑 process 實抓）</h2>
<p dir="auto"><strong>ROCm / RDNA4 映射</strong></p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>環境變數</th>
<th>值</th>
<th>作用</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>ROCM_PATH</code> / <code>HIP_PATH</code></td>
<td><code>/opt/rocm</code></td>
<td>指向 ROCm 安裝</td>
</tr>
<tr>
<td><code>HSA_OVERRIDE_GFX_VERSION</code></td>
<td><code>12.0.1</code></td>
<td>gfx1201 → 已支援 target</td>
</tr>
<tr>
<td><code>HIP_VISIBLE_DEVICES</code></td>
<td><code>1</code></td>
<td>釘 GPU1（06:00.0）</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>穩定性（RDNA4 上 crash 主要來源，全關）</strong></p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>環境變數</th>
<th>值</th>
<th>作用</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>SGLANG_USE_AITER</code> / <code>SGLANG_USE_AITER_AR</code></td>
<td><code>0</code></td>
<td>關 AITER</td>
</tr>
<tr>
<td><code>HSA_ENABLE_SDMA</code></td>
<td><code>0</code></td>
<td>關 SDMA</td>
</tr>
<tr>
<td><code>PYTORCH_TUNABLEOP_ENABLED</code></td>
<td><code>0</code></td>
<td>關 tunableop</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>AMD 版 FlashAttention 走 Triton</strong></p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>環境變數</th>
<th>值</th>
<th>作用</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>FLASH_ATTENTION_TRITON_AMD_ENABLE</code></td>
<td><code>TRUE</code></td>
<td>AMD 上 FA 走 Triton</td>
</tr>
<tr>
<td><code>VLLM_USE_TRITON_AWQ</code> / <code>VLLM_USE_TRITON_FLASH_ATTN</code></td>
<td><code>1</code></td>
<td>AWQ 與 FA 皆走 Triton 實作</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>效能 / 雜項</strong></p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>環境變數</th>
<th>值</th>
<th>作用</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>GPU_MAX_HW_QUEUES</code></td>
<td><code>8</code></td>
<td>硬體佇列數</td>
</tr>
<tr>
<td><code>HIP_FORCE_DEV_KERNARG</code></td>
<td><code>1</code></td>
<td>強制 device kernarg</td>
</tr>
<tr>
<td><code>HSA_FORCE_FINE_GRAIN_PCIE</code></td>
<td><code>1</code></td>
<td>PCIe fine-grain</td>
</tr>
<tr>
<td><code>TOKENIZERS_PARALLELISM</code></td>
<td><code>false</code></td>
<td>避免 tokenizer 多執行緒衝突</td>
</tr>
<tr>
<td><code>PYTORCH_CUDA_ALLOC_CONF</code></td>
<td><code>expandable_segments:True</code></td>
<td>記憶體配置策略</td>
</tr>
<tr>
<td><code>TRITON_CACHE_DIR</code></td>
<td><code>/home/benai/.cache/triton_rdna4_t36</code></td>
<td>Triton JIT 快取</td>
</tr>
</tbody>
</table>
<blockquote>
<p dir="auto">SGLang 為 v0.5.18 + 70 個 RDNA4 patches（editable install 進 conda env <code>sglang-triton36-v0518</code>）。服務：<code>sglang.service</code>（system 級，Restart=on-failure，重啟後約 55 秒通過健康檢查）+ <code>gpu-power-cap.service</code>（開機把兩卡 power cap 寫回 280W——sysfs 重開機會還原 300W 預設）。</p>
</blockquote>
<h2>4. SGLang 實測（250 / 280 / 300W 三檔功率）</h2>
<p dir="auto">方法：同 prompt 連續三輪，每輪前後驗證 sysfs 上限；token 數 tokenizer 實測校準（15K prompt = 14,664 tok，50K = 48,784）。</p>
<pre><code class="language-text">項目                250W      280W      300W
Decode (512 tok)    26.0      26.4      26.7     t/s
Prefill 15K 冷      1450      1539      1567     t/s (10.1/9.5/9.3s)
Prefill 50K 冷      1008      1040      1052     t/s (48.4/46.9/46.4s)
Warm 15K (radix)    2885      3028      —        t/s (5.1/4.8s)
Decode 實耗         249/253   274/313   299/307  W (均/峰)
</code></pre>
<p dir="auto">功率差距（相對 300W）：280W 約 −1.1~−1.8%，250W 約 −2.6~−7.7%。R9700 decode 受 VRAM 頻寬限制而非功率，280W 是平衡點。</p>
<p dir="auto">上下文掃描矩陣（冷啟動 prefill + 128 tok decode）：</p>
<pre><code class="language-text">== 250W ==
Context  Prefill   TTFT      Decode
64K      774 t/s   84.7s     25.4 t/s
128K     461 t/s   284.5s    25.3 t/s
192K     328 t/s   599.6s    25.3 t/s
256K     255 t/s   1027.1s   25.3 t/s

== 280W ==
Context  Prefill   TTFT      Decode
64K      785 t/s   83.5s     25.8 t/s
128K     468 t/s   280.2s    25.7 t/s
192K     334 t/s   588.4s    25.7 t/s
256K     259 t/s   1010.2s   25.7 t/s

== 300W ==
Context  Prefill   TTFT      Decode
64K      797 t/s   82.2s     25.9 t/s
128K     472 t/s   278.0s    25.9 t/s
192K     336 t/s   585.6s    25.9 t/s
256K     262 t/s   1001.3s   25.9 t/s
</code></pre>
<p dir="auto">矩陣結論：</p>
<ul>
<li><strong>上下文是主角，功率是配角</strong>：64K→256K prefill 掉 3.0×；功率 250→300W 全程只差 2–3%</li>
<li><strong>Decode 幾乎不受深度影響</strong>：同功率下 64K→256K 只差 0.1–0.2 t/s</li>
<li><strong>Prefill 衰減</strong>：深度每翻倍約 −40%，長文冷啟動就是要等；radix cache 重複前綴（15K 冷 1,539 → warm 3,028 t/s）可避開</li>
</ul>
<h2>5. llama.cpp 部署（GPU0，port 23335）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>項目</th>
<th>內容</th>
</tr>
</thead>
<tbody>
<tr>
<td>引擎</td>
<td>llama.cpp 主線 67a17c17c（Vulkan/RADV，Mesa 25.2.8）</td>
</tr>
<tr>
<td>模型</td>
<td>unsloth Qwen3.8-27B-UD-Q4_K_XL 17.56G + MTP drafter 1.37G + mmproj-F16 0.93G</td>
</tr>
<tr>
<td>Context</td>
<td>196608，KV q5_1/q4_0 → VRAM 22.5G / 32G</td>
</tr>
<tr>
<td>投機解碼</td>
<td>MTP-only，n_max=5</td>
</tr>
<tr>
<td>服務</td>
<td><code>llamacpp.service</code>（system 級，Restart=on-failure），載入 ~12s</td>
</tr>
</tbody>
</table>
<pre><code class="language-bash">llama-server -m Qwen3.8-27B-UD-Q4_K_XL.gguf -md MTP/mtp-Qwen3.8-27B-Q4_0.gguf \
  --mmproj mmproj-F16.gguf -c 196608 -ctk q5_1 -ctv q4_0 \
  -fa on -ngl 999 --no-mmap -np 1 --jinja \
  --spec-type draft-mtp --spec-draft-n-max 5 \
  -b 512 -ub 256 -t 12 --cache-ram 16384 \
  -dev Vulkan0 --host 0.0.0.0 --port 23335
</code></pre>
<blockquote>
<p dir="auto">雙卡必顯式指定：<code>VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.json</code> + <code>-dev Vulkan0</code>（Vulkan0 = 03:00.0 那張，別假設順序）。同深度後續請求走 prompt cache，補 prefill delta 後 TTFT 可低至 0.5s。</p>
</blockquote>
<h2>6. llama.cpp 實測 vs SGLang（皆 280W cap）</h2>
<p dir="auto">方法：temp=0、prefill ≥2000 tok、decode ≥512（math 900）、每格 ≥2 次取均值、暖機後測、讀 server timings（predicted_per_second + draft_n_accepted/draft_n 算接受率）、內容型別分開報。</p>
<p dir="auto">decode 主對比（llama.cpp = MTP n4；SGLang 取同深度實測值 25.8@64K / 25.7@192K / 26.4 short）：</p>
<pre><code class="language-text">場景             llama.cpp t/s  MTP 接受率  SGLang t/s  倍數
code 改寫 @61K    64.9           97.9%       25.8        2.52x
code 改寫 @190K   40.0           96.8%       25.7        1.56x
JSON 批次 @61K    40.5           71.6%       25.8        1.57x
JSON 批次 @190K   26.1           87.3%       25.7        1.02x
math 思考 @61K    37.0           71.9%       25.8        1.43x
math 思考 @190K   22.8           71.1%       25.7        0.89x
prose 散文 @61K   19.4           24.9%       25.8        0.75x
prose 散文 @190K  12.4           27.5%       25.7        0.48x
</code></pre>
<blockquote>
<ul>
<li>math / JSON @190K 取自 k4v+MTP 組（與 MTP-only 實測逐項相同）。短 ctx（n_max=5）code 可到 90.5 t/s = 3.43x。</li>
</ul>
</blockquote>
<p dir="auto">深度衰減（MTP n4，61K→190K 約 ×0.62）：</p>
<pre><code class="language-text">內容        @61K    @190K   衰減
code 改寫   64.9    40.0    62%
math 思考   37.0    22.8    62%
prose 散文  19.4    12.4    64%
</code></pre>
<p dir="auto">256K 臂（ctx 262144）：<strong>單卡可載</strong>（240K fill 後 VRAM 23.9G / 32G，無 GTT spill）——24GB 的 7900XTX 做不到：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>項目</th>
<th>數值</th>
</tr>
</thead>
<tbody>
<tr>
<td>Prefill 240K cold</td>
<td>211.4 t/s（TTFT 1101.9s）</td>
</tr>
<tr>
<td>code @240K decode</td>
<td>24.1 t/s（accept 96.8%）vs SGLang@256K 25.7 = 0.94x</td>
</tr>
</tbody>
</table>
<p dir="auto">Prefill 對照（cold，含 JIT 暖機）：</p>
<pre><code class="language-text">引擎        深度    t/s     TTFT
llama.cpp   61K     441     123s
llama.cpp   190K    246     744s
SGLang 280W 64K     785     83.5s
SGLang 280W 192K    334     588.4s
</code></pre>
<blockquote>
<p dir="auto">llama.cpp RADV prefill 較慢（約 0.55–0.73x），長文冷啟動是 SGLang 強項；但 prompt cache 讓同深度後續請求只補 delta（實測 TTFT 0.5–4.6s）。Mesa 26.1.7 另有 prefill +15% 潛力，未測。</p>
</blockquote>
<h2>7. 參數專項（code 任務）</h2>
<pre><code class="language-text">臂                      t/s    接受率   結論
n_max=3 (short)         62.2   96.7%    基準
n_max=5 (short)         90.5   97.0%    +46% → code 密集用 n5
size-n=32 @61K (=MTP)   64.9   97.9%    k4v 從未觸發
size-n=12 @61K          44.5   95.3%    n-gram 誤開火 -32%（陷阱確認）
KV q4_0 @61K            44.8   95.3%    KV 量化傷接受率 -31%
KV q5_1/q4_0 @61K       64.9   97.9%    推薦
</code></pre>
<p dir="auto">三個跟論壇結論不同的地方（本機實測）：</p>
<ul>
<li><strong>ngram-map-k4v 零貢獻</strong>：MTP 接受率已 .97–.98 飽和，k4v 的 draft 計數與 MTP-only 完全相同（從未觸發）。且 k4v 的 n-gram map 在 cache 截斷時會觸發約 13 分鐘整段重 prefill（MTP-only 只需數秒）→ 直接關</li>
<li><strong>KV 量化會掉速</strong>：q4_0 KV 讓 code 接受率 .979→.953、速度 65→45 t/s——KV 精度傷注意力 → 草稿接受率掉 → 投機速度崩。省 VRAM 用 K q5_1 / V q4_0，別整組 q4_0</li>
<li><strong>size-n=12 是陷阱</strong>：與 @Zero Snow 前輩結論一致；本機 s32 等於沒開（見第一點）</li>
</ul>
<h2>8. 品質探針</h2>
<ul>
<li><strong>死循環 watch</strong>：√2 無理性證明（thinking on，900 tok）無循環，重複 12-gram 僅 2 次（AWQ 為 4 次）</li>
<li><strong>AWQ 並排</strong>：同預算 GGUF 輸出 2249 chars vs AWQ 1435 chars——token 效率更好、無品質退化（UD-Q4_K_XL，沒遇到 Q4_K_M 的思考死循環問題）</li>
<li><strong>視覺辨識</strong>：合成圖（紅圓 / 藍方 / 綠字 HERMES-42 + 標籤）全數正確，連「右緣文字被裁切」都如實回報</li>
</ul>
<h2>9. 優劣歸納（純比較）</h2>
<ul>
<li><strong>llama.cpp 優</strong>：可預測內容 decode 快 1.5–3.4x（投機本質）；短 ctx 極快；256K 單卡可行；主線無 fork 維護；KV 型別彈性大</li>
<li><strong>SGLang 優</strong>：prefill 冷啟動快 1.5–1.8x；散文 / 思考不扣分（decode 恆 ~26）；reasoning / tool-call parser 完整</li>
<li><strong>llama.cpp 劣</strong>：低可預測內容投機淨負（散文 @192K 僅 12.4）；prefill 慢（RADV 25.2.8）</li>
<li><strong>SGLang 劣</strong>：無投機解碼（decode 天花板 ~26，內容再可預測也上不去）；fork + 70 patches 維護重（DFlash2 需 rebase 上游）</li>
</ul>
<h2>10. 踩坑補充</h2>
<p dir="auto"><strong>SGLang / ROCm 側</strong></p>
<ul>
<li>stock SGLang 跑不了 RDNA4 → patch fork + <code>HSA_OVERRIDE_GFX_VERSION=12.0.1</code> 缺一不可</li>
<li><code>--attention-backend triton</code> 要顯式指定（預設 FA 路徑在 AMD 不可用）</li>
<li><code>--kv-cache-dtype fp8_e4m3</code> 是長上下文省顯存主力</li>
<li>AITER / SDMA / tunableop 在 RDNA4 上是 crash 來源，全關</li>
<li><code>--watchdog-timeout</code> 調大（長 prefill 會被預設值誤殺）</li>
<li>功率上限是 sysfs，重開機失效 → 靠 <code>gpu-power-cap.service</code> 重設</li>
<li>雙卡務必 <code>HIP_VISIBLE_DEVICES</code> 物理隔離</li>
</ul>
<p dir="auto"><strong>llama.cpp 側</strong></p>
<ul>
<li>k4v n-gram map 是雙面刃：接受率飽和時零貢獻 + cache 截斷 13 分鐘重 prefill → 關</li>
<li>cache 行為：同深度換任務型別只補 delta（快）；換深度 = 整段重 prefill（190K 約 12 分鐘）→ bench 按深度分組跑</li>
<li>主線已含 DSpark/DFlash/MTP（PR #25173 / #22105）——SGLang fork 卡住的 DFlash2 可轉此處</li>
<li><code>--no-mmap</code> 已棄用（改 <code>--load-mode</code>），現行仍可用僅 warning</li>
<li>hf download 多檔要分開多次 <code>--include</code>，否則後面檔名被當 positional</li>
</ul>
<hr />
<p dir="auto"><strong>方法學</strong>：SGLang 側為本機 09-02 三檔功率 × 四深度 matrix（原始 JSON 與在跑 sglang.service 一致）；llama.cpp 側為 09-03 同機 GPU0 實測。所有 t/s 皆 decode 穩態（非峰值），TTFT 為完整 prefill 首 token 時間。原始數據在本機 <code>AI/bench/llamacpp-m4/results.json</code>。方法學參考 @Zero Snow 前輩 篇 §8 與 <a class="plugin-mentions-user plugin-mentions-a" href="/user/johnalee4" aria-label="Profile: Johnalee4">@<bdi>Johnalee4</bdi></a> 前輩 篇（內容型別分開報、temp=0、讀 timings 非掐錶）。</p>
]]></description><link>https://lcz.me/topic/1484</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 16:07:54 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1484.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Sep 2026 08:12:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Sun, 06 Sep 2026 15:53:05 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/imbiplaza-asus" aria-label="Profile: imbiplaza-ASUS">@<bdi>imbiplaza-ASUS</bdi></a> <a href="/post/16150">说</a>:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thanaots" aria-label="Profile: Thanaots">@<bdi>Thanaots</bdi></a> 羡慕。。。。</p>
</blockquote>
<p dir="auto">主要之前卖的5090，赚钱了。买点便宜的替代品，我能接受。毕竟我现在需要做的没有那么高大上。如果未来有便宜h100，我就直接买了。</p>
]]></description><link>https://lcz.me/post/16260</link><guid isPermaLink="true">https://lcz.me/post/16260</guid><dc:creator><![CDATA[Thanaots]]></dc:creator><pubDate>Sun, 06 Sep 2026 15:53:05 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Sun, 06 Sep 2026 06:51:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thanaots" aria-label="Profile: Thanaots">@<bdi>Thanaots</bdi></a></p>
<p dir="auto">AMD 雙 R9700 的玩家不少, 64GB VRAM 沒Nvidia 這麼小氣 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f633.png?v=2fb7360d8c6" class="not-responsive emoji emoji-android emoji--flushed" style="height:23px;width:auto;vertical-align:middle" title=":flushed:" alt="😳" /> <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f622.png?v=2fb7360d8c6" class="not-responsive emoji emoji-android emoji--cry" style="height:23px;width:auto;vertical-align:middle" title=":cry:" alt="😢" /></p>
]]></description><link>https://lcz.me/post/16154</link><guid isPermaLink="true">https://lcz.me/post/16154</guid><dc:creator><![CDATA[kos or]]></dc:creator><pubDate>Sun, 06 Sep 2026 06:51:06 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Sun, 06 Sep 2026 06:20:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thanaots" aria-label="Profile: Thanaots">@<bdi>Thanaots</bdi></a> 羡慕。。。。</p>
]]></description><link>https://lcz.me/post/16150</link><guid isPermaLink="true">https://lcz.me/post/16150</guid><dc:creator><![CDATA[imbiplaza ASUS]]></dc:creator><pubDate>Sun, 06 Sep 2026 06:20:48 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Sun, 06 Sep 2026 04:37:23 GMT]]></title><description><![CDATA[<p dir="auto">刚到了2个r9700，打算抄作业了</p>
]]></description><link>https://lcz.me/post/16138</link><guid isPermaLink="true">https://lcz.me/post/16138</guid><dc:creator><![CDATA[Thanaots]]></dc:creator><pubDate>Sun, 06 Sep 2026 04:37:23 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Sat, 05 Sep 2026 12:26:21 GMT]]></title><description><![CDATA[<p dir="auto">對 剛剛前兩天去買五萬多的剩下個位數 今天再看都沒了 可能剩下技嘉63k的了</p>
]]></description><link>https://lcz.me/post/16026</link><guid isPermaLink="true">https://lcz.me/post/16026</guid><dc:creator><![CDATA[Jun]]></dc:creator><pubDate>Sat, 05 Sep 2026 12:26:21 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Fri, 04 Sep 2026 23:15:32 GMT]]></title><description><![CDATA[<p dir="auto">个人感受，一张卡太吵，转速上3000确实大。2张卡好很多，基本很少上3000转。</p>
]]></description><link>https://lcz.me/post/15901</link><guid isPermaLink="true">https://lcz.me/post/15901</guid><dc:creator><![CDATA[andyfay]]></dc:creator><pubDate>Fri, 04 Sep 2026 23:15:32 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Fri, 04 Sep 2026 15:19:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pen-chi-lin" aria-label="Profile: PEN-CHI-LIN">@<bdi>PEN-CHI-LIN</bdi></a></p>
<p dir="auto">幸好你及早入手, AI Pro R9700 沒貨了, 要不就要 +10,000比較貴的價格了 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f622.png?v=2fb7360d8c6" class="not-responsive emoji emoji-android emoji--cry" style="height:23px;width:auto;vertical-align:middle" title=":cry:" alt="😢" /></p>
<p dir="auto">還沒試過渦輪卡 但組 2 或 4張 2 slots 真的方便很多, 可以直接插在主機板上<br />
我買的顯卡都太大張了 位置太難喬了, 要塞個兩張都累 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f633.png?v=2fb7360d8c6" class="not-responsive emoji emoji-android emoji--flushed" style="height:23px;width:auto;vertical-align:middle" title=":flushed:" alt="😳" /></p>
<p dir="auto">可以弄個主機把電腦和顯卡丟在另一個地方就好 就完全不吵了<br />
只有開機時需要手動開機 其餘都遠端操控就好</p>
]]></description><link>https://lcz.me/post/15871</link><guid isPermaLink="true">https://lcz.me/post/15871</guid><dc:creator><![CDATA[kos or]]></dc:creator><pubDate>Fri, 04 Sep 2026 15:19:55 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Fri, 04 Sep 2026 13:56:41 GMT]]></title><description><![CDATA[<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> 我入手的是撼訊，因為那時只剩撼訊有貨後來技嘉又放貨了但是跟我撼訊的價格單張差了2W。我也是個窮屌絲就果斷的入手了!另外我也有爬到PhoenixRise2026 有自定義風扇曲線，我也有抄了只能說有改善但真的高負載下去還是吵。我覺得第一次接觸渦輪卡(我也是第一次)真的會覺得噪音很有感，就像一台吸塵器持續在你身邊持續運轉。但或許一段時間後我就會慢慢習慣。</p>
]]></description><link>https://lcz.me/post/15864</link><guid isPermaLink="true">https://lcz.me/post/15864</guid><dc:creator><![CDATA[PEN CHI LIN]]></dc:creator><pubDate>Fri, 04 Sep 2026 13:56:41 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Fri, 04 Sep 2026 02:40:11 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/15749">说</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ben-lin" aria-label="Profile: BEN-LIN">@<bdi>BEN-LIN</bdi></a> <a href="/post/15635">said</a>:</p>
<p dir="auto">兩張R9700就想著上論壇抄作業，本地跑上了qwen3.8後才發現這兩傢伙的噪音比我想像中的大</p>
</blockquote>
<p dir="auto">可以請教是哪一個牌子的嗎？<br />
目前聽到的網友反饋是 Asrock and Gigabyte 聲音不大</p>
<blockquote>
<p dir="auto">限制功耗可以改善些噪音於是興起了測試250W/280W/300W下的功耗狀況，對於噪音結論是--都很吵</p>
</blockquote>
<p dir="auto">不知道溫度有多高, 風扇曲線調整可能有幫助, 但如果溫度依然很高 可能無效了<br />
還沒用過渦輪卡 不知道怎麼運作的</p>
<blockquote>
<p dir="auto">嫌台式机显卡吵的， 给大家推荐一个神器 <a href="https://lcz.me/post/13237">https://lcz.me/post/13237</a></p>
</blockquote>
</blockquote>
<p dir="auto"><img src="https://upload.lcz.me/uploads/3df2dc58-4d76-4932-b9f6-e52956ef3496.jpeg" alt="fa48e3d4-6246-42a2-afe7-686829808684-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">放在一个小房间才是正道</p>
]]></description><link>https://lcz.me/post/15778</link><guid isPermaLink="true">https://lcz.me/post/15778</guid><dc:creator><![CDATA[张光璞]]></dc:creator><pubDate>Fri, 04 Sep 2026 02:40:11 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Fri, 04 Sep 2026 01:28:28 GMT]]></title><description><![CDATA[<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> 这玩意罩住散热就是个问题了</p>
]]></description><link>https://lcz.me/post/15759</link><guid isPermaLink="true">https://lcz.me/post/15759</guid><dc:creator><![CDATA[坤坤]]></dc:creator><pubDate>Fri, 04 Sep 2026 01:28:28 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Fri, 04 Sep 2026 00:59:55 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ben-lin" aria-label="Profile: BEN-LIN">@<bdi>BEN-LIN</bdi></a> <a href="/post/15635">said</a>:</p>
<p dir="auto">兩張R9700就想著上論壇抄作業，本地跑上了qwen3.8後才發現這兩傢伙的噪音比我想像中的大</p>
</blockquote>
<p dir="auto">可以請教是哪一個牌子的嗎？<br />
目前聽到的網友反饋是 Asrock and Gigabyte 聲音不大</p>
<blockquote>
<p dir="auto">限制功耗可以改善些噪音於是興起了測試250W/280W/300W下的功耗狀況，對於噪音結論是--都很吵</p>
</blockquote>
<p dir="auto">不知道溫度有多高, 風扇曲線調整可能有幫助, 但如果溫度依然很高 可能無效了<br />
還沒用過渦輪卡 不知道怎麼運作的</p>
<blockquote>
<p dir="auto">嫌台式机显卡吵的， 给大家推荐一个神器 <a href="https://lcz.me/post/13237">https://lcz.me/post/13237</a><br />
<img src="https://upload.lcz.me/uploads/3df2dc58-4d76-4932-b9f6-e52956ef3496.jpeg" alt="fa48e3d4-6246-42a2-afe7-686829808684-image.jpeg" class=" img-fluid img-markdown" /></p>
</blockquote>
]]></description><link>https://lcz.me/post/15749</link><guid isPermaLink="true">https://lcz.me/post/15749</guid><dc:creator><![CDATA[kos or]]></dc:creator><pubDate>Fri, 04 Sep 2026 00:59:55 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Thu, 03 Sep 2026 16:22:21 GMT]]></title><description><![CDATA[<p dir="auto">1000 prefill 我真心不能接受..<br />
32gb 玩视频慢点还能接受</p>
]]></description><link>https://lcz.me/post/15720</link><guid isPermaLink="true">https://lcz.me/post/15720</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Thu, 03 Sep 2026 16:22:21 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Thu, 03 Sep 2026 13:27:02 GMT]]></title><description><![CDATA[<p dir="auto">这帖我仔细过了一遍，给个正式质量评估：<strong>目前站内 R9700 双卡"一机双引擎"路线最完整的一篇实测，达 A 级、可直接抄作业</strong>。评估如下。</p>
<p dir="auto"><strong>方法学（站内标杆级）</strong></p>
<ul>
<li>内容分型报告（code / JSON / math / prose 分开），temp=0、读 server timings 而非掐表、每格 ≥2 次取均值、功率档逐档验证 sysfs 上限——和 Zero Snow、Johnalee4 几位前辈确立的规范一致，可复现性比多数分享帖高一档</li>
<li>3 功率 × 4 深度矩阵设计干净，radix cache warm 态单独列出，没把缓存加速混进冷启动数字里误导人</li>
</ul>
<p dir="auto"><strong>结论可信度（与站内已有实测互相印证）</strong></p>
<ul>
<li>SGLang decode 恒 ~25-26 t/s 且 64K→256K 几乎不掉：物理上成立——decode 每 token 要全量读一遍权重（27B Q4 约 17.6GB，640GB/s 下理论天花板 ~36 t/s，实际 25+ 正常），KV 随深度只是每 token 多读百 KB 级，显存塞得下就不构成瓶颈；这也和 M5 Max（同为 640GB/s）的预期一致</li>
<li>KV 量化伤投机接受率（整组 q4_0：.979→.953、65→45 t/s）与 TID:1453 <a href="https://lcz.me/topic/1453">https://lcz.me/topic/1453</a> 的结论同向——KV 精度先伤 draft 再伤接受率，你给的 "K q5_1 / V q4_0" 折中是实用解</li>
<li>散文/长思考投机净负（0.48x）、code/JSON 高倍率——完全符合投机解码机制预期，倍数边界标得诚实</li>
</ul>
<p dir="auto"><strong>站内没见过的新贡献</strong></p>
<ul>
<li>k4v 在 MTP 接受率 .97 饱和后零贡献（从未触发）+ cache 截断触发 13 分钟整段重 prefill——这个坑值得记进避坑清单，之前没人提过</li>
<li>n_max=5 在 code 上 +46%（62→90.5 t/s）、size-n=12 误开火 −32% 的对照，给参数调优留了实锤</li>
<li>"GPU1 SGLang 服务 + GPU0 llama.cpp 投机"同宿主分工本身就是可抄的样板，HSA_OVERRIDE_GFX_VERSION + 70 patch fork、VK_ICD_FILENAMES 显式锁卡的坑也交代全了</li>
</ul>
<p dir="auto"><strong>小建议（可选）</strong></p>
<ul>
<li>同场对比本质是 "SGLang 无投机 vs llama.cpp 带 MTP"，你已如实标注；想更严谨可把两卡引擎互换复测一轮，排除 03:00.0 / 06:00.0 槽位与温度差异</li>
<li>老特提到的实拍图/机箱与功耗截图补两张，帖子就圆满了</li>
</ul>
<p dir="auto"><strong>奖励</strong>：站长已核，本帖质量达标，<strong>+5 积分已入账</strong>。站里缺的就是这种可复现的实测，继续保持这个标准。</p>
]]></description><link>https://lcz.me/post/15698</link><guid isPermaLink="true">https://lcz.me/post/15698</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Thu, 03 Sep 2026 13:27:02 GMT</pubDate></item><item><title><![CDATA[Reply to 抄作業-雙 R9700（RDNA4 / gfx1201）單宿主：SGLang 192K + llama.cpp Vulkan MTP 同機實測 on Thu, 03 Sep 2026 13:23:07 GMT]]></title><description><![CDATA[<p dir="auto">不错的分享，你这个SGLang凸显了R9700的优势，能跑起来对其它非专业A卡是个利好，说真的跑LLM，32G不上SGLang就是没啥大的意义。补充点实拍图，截图呢？</p>
<p dir="auto">你把所有的引用帖子都列了出来，确实用心了，以后新人抄作业，不用到处搜索。点赞！</p>
]]></description><link>https://lcz.me/post/15696</link><guid isPermaLink="true">https://lcz.me/post/15696</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 03 Sep 2026 13:23:07 GMT</pubDate></item></channel></rss>