<?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双卡 P2P 部署与 Qwen3-Next-80B-A3B 完整测试报告（瞎折腾篇）]]></title><description><![CDATA[<h1>R9700双卡 P2P 部署与 Qwen3-Next-80B-A3B 完整测试报告</h1>
<blockquote>
<p dir="auto">项目：测试双 AMD Radeon AI PRO R9700 的 PCIe P2P 打通、模型选型、部署与全维度评估<br />
日期：2026-10-26　|　结论：硬件 P2P 可用（27–29 GB/s），推荐模型 Qwen3-Next-80B-A3B 测试通过率 98%</p>
</blockquote>
<hr />
<h2>1. 项目概述</h2>
<p dir="auto">本项目针对一台双卡 AMD 服务器，完成了三件事：</p>
<ol>
<li><strong>PCIe P2P 打通</strong>：定位内核 <code>pci_p2pdma</code> 白名单是唯一门槛，通过 DKMS 补丁绕开，实测证明硬件（Intel Arrow Lake-S IIO）完全支持双卡 P2P。</li>
<li><strong>模型选型</strong>：结合 64 GB 显存 + P2P 能力，全网调研并实测选出最优大模型。</li>
<li><strong>部署与测试</strong>：以 llama.cpp 常驻服务部署 Qwen3-Next-80B-A3B，完成 11 类 49 题严格测试。</li>
</ol>
<hr />
<h2>2. 硬件与系统配置</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>配置</th>
</tr>
</thead>
<tbody>
<tr>
<td>主板</td>
<td>Gigabyte Z890 AERO G（AMI BIOS F21）</td>
</tr>
<tr>
<td>CPU</td>
<td>Intel Core Ultra 7 265K（Arrow Lake-S，20 核，单 NUMA）</td>
</tr>
<tr>
<td>内存</td>
<td>62 GB（主机 pinned 内存较紧，见 §7）</td>
</tr>
<tr>
<td>GPU</td>
<td>2 × AMD Radeon AI PRO R9700（<code>gfx1201</code> / RDNA4，单卡 32 GB，合计 64 GB）</td>
</tr>
<tr>
<td>卡间链路</td>
<td>两根 PCIe 5.0 <strong>x8</strong>（理论 ~31.5 GB/s 单向）</td>
</tr>
<tr>
<td>系统</td>
<td>Ubuntu 24.04.5，kernel <code>7.0.0-38-generic</code></td>
</tr>
<tr>
<td>驱动</td>
<td>amdgpu <strong>7.1.9</strong>（DKMS），ROCm <strong>7.1.9</strong></td>
</tr>
<tr>
<td>内核参数</td>
<td><code>amdgpu.runpm=0 iommu=pt</code></td>
</tr>
<tr>
<td>拓扑</td>
<td>两卡分别挂在 CPU 根端口 <code>00:06.0</code> 与 <code>00:06.3</code>，无共同上游交换芯片</td>
</tr>
</tbody>
</table>
<hr />
<h2>3. PCIe P2P 详细分析</h2>
<h3>3.1 为什么默认没有 P2P（根因）</h3>
<p dir="auto">双卡 P2P 被内核一行"芯片组白名单"卡死，<strong>不是硬件不行</strong>。判定链唯一失败项：</p>
<pre><code>amdgpu_device_is_peer_accessible()          ← 三处调用点全看它
  └─ pci_p2pdma_distance() &lt; 0              ← 唯一失败项
       └─ map_through_host_bridge:
            if (!cpu_supports_p2pdma() &amp;&amp; !host_bridge_whitelist(...))
                → PCI_P2PDMA_MAP_NOT_SUPPORTED
</code></pre>
<ul>
<li><code>cpu_supports_p2pdma()</code> 只对 <strong>AMD Zen+</strong>（<code>x86 &gt;= 0x17</code>）无条件返回 true；Intel 返回 false。</li>
<li><code>host_bridge_whitelist()</code> 查 <code>pci_p2pdma_whitelist[]</code>，本机 host bridge 是 <strong><code>8086:7d1b</code>（Arrow Lake-S）</strong>，表里没有。</li>
<li><code>p2pdma.c</code> 里<strong>没有任何 <code>module_param</code></strong>，无运行时开关，只能改代码。</li>
</ul>
<p dir="auto">其余条件<strong>全部已满足</strong>：<code>CONFIG_HSA_AMD_P2P=y</code>、<code>pcie_p2p=Y</code>、32 GB 全量 large-BAR、<code>iommu=pt</code> 地址掩码足够、<code>amdgpu.runpm=0</code>。</p>
<h3>3.2 解法：DKMS 补丁（不动硬件、不重编内核）</h3>
<p dir="auto">amdgpu 的跨卡映射走 large-BAR 直接填对端 BAR 基址（<code>amdgpu_vm.c</code> 的 <code>vram_base = bo_adev-&gt;gmc.aper_base</code>），<strong>不依赖 <code>pci_p2pdma_map_sg()</code></strong>。因此在 <code>amdgpu_device.c</code> 里加一个开关即可：</p>
<pre><code class="language-c">int amdgpu_p2p_force;
MODULE_PARM_DESC(p2p_force, "Skip the kernel p2pdma chipset whitelist ...");
module_param_named(p2p_force, amdgpu_p2p_force, int, 0444);

    p2p_access =
        !adev-&gt;gmc.xgmi.connected_to_cpu &amp;&amp;
        (amdgpu_p2p_force ||
         !(pci_p2pdma_distance(adev-&gt;pdev, peer_adev-&gt;dev, false) &lt; 0));
</code></pre>
<ul>
<li>默认值 0 = 与原版驱动逐字节一致，重编本身零风险。</li>
<li>补丁/回滚脚本：服务器 <code>~/p2p-experiment/</code>。</li>
</ul>
<h3>3.3 硬件 P2P 实测（决定性证据）</h3>
<p dir="auto">用跨进程 HIP IPC（<code>hipIpcOpenMemHandle</code> + 直接访问对端 BAR）逐字节校验：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>实测项</th>
<th>结果</th>
</tr>
</thead>
<tbody>
<tr>
<td>GPU1 → GPU0 单向读</td>
<td><strong>24.74 GB/s</strong>，逐字节 <code>bad=0</code></td>
</tr>
<tr>
<td>GPU0 → GPU1 反向读</td>
<td><strong>28.58 GB/s</strong>，<code>bad=0</code></td>
</tr>
<tr>
<td>两卡并发双向</td>
<td><strong>27–29 GB/s</strong> 同时跑，0 错误</td>
</tr>
<tr>
<td>错误计数</td>
<td>无 AER / Unsupported Request / 超时 / DMAR fault</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>结论：Intel Arrow Lake-S 的 IIO 真实支持双卡 P2P，带宽达理论值 ~90%。</strong> 内核白名单"没收录"= "没验证过"，不是"硬件不行"。</p>
<h3>3.4 原引擎 radiance 为何用不了 P2P</h3>
<p dir="auto">两个独立故障，均为 radiance/ROCm 软件栈问题，非硬件问题：</p>
<ol>
<li><strong>真开 P2P</strong> → <code>aql_copy_link</code> 拷贝内核 GPU 队列静默死锁（P2P 与其 <code>expert_tiered</code> 主机流式专家在 SVM/HMM 上冲突）。</li>
<li><strong>只让驱动"报告有 P2P"</strong> → 其内存规划器把主机 pinned 内存从 ~22 GB 涨到 ~36.83 GB，机器仅 37 GB 可用，差 0.75 GB 直接 OOM。</li>
</ol>
<p dir="auto">结论：P2P 是硬件通用能力，与引擎/模型无关；换走标准 RCCL 的引擎（llama.cpp/vLLM）即可正常使用。</p>
<hr />
<h2>4. 模型选型分析</h2>
<h3>4.1 Qwen3.8 系列现状</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>模型</th>
<th>参数</th>
<th>可否本地部署</th>
<th>GGUF 实际大小（tree API 实测）</th>
</tr>
</thead>
<tbody>
<tr>
<td>Qwen3.8-Max</td>
<td>2.4 万亿 / 激活 950B</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--x" style="height:1.4em;width:auto;vertical-align:middle" title="❌" alt="❌" /> 闭源 API</td>
<td>无</td>
</tr>
<tr>
<td>Qwen3.8-Flash-Next</td>
<td>125B MoE（开源，预览 Qwen4 架构）</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/26a0.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--warning" style="height:1.4em;width:auto;vertical-align:middle" title="⚠" alt="⚠" />️ 需专家卸载</td>
<td>IQ4_XS 127.6 GB / IQ3_XXS 115 GB / IQ2_XS 89.65 GB</td>
</tr>
</tbody>
</table>
<p dir="auto">开源 Qwen3.8（Flash-Next）<strong>超出 64 GB 显存</strong>，只能专家卸载（即原 radiance 的跑法）。想全装显存、用 P2P，需选更小的模型。</p>
<h3>4.2 推荐清单（能全装 64 GB 显存）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>优先级</th>
<th>模型（GGUF 仓库）</th>
<th>推荐量化</th>
<th>大小</th>
<th>定位</th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f947.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--first_place_medal" style="height:1.4em;width:auto;vertical-align:middle" title="🥇" alt="🥇" /> 首推</td>
<td>Qwen3-Next-80B-A3B</td>
<td>Q5_K_M</td>
<td>~53 GB</td>
<td>80B MoE / 3B 激活：精度+速度+稳定最平衡</td>
</tr>
<tr>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f948.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--second_place_medal" style="height:1.4em;width:auto;vertical-align:middle" title="🥈" alt="🥈" /> 精度党</td>
<td>Qwen3-32B</td>
<td>Q8_0</td>
<td>~33 GB</td>
<td>稠密 8-bit 无损级精度</td>
</tr>
<tr>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f949.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--third_place_medal" style="height:1.4em;width:auto;vertical-align:middle" title="🥉" alt="🥉" /> 速度党</td>
<td>Qwen3-30B-A3B</td>
<td>Q8_0</td>
<td>~32 GB</td>
<td>激活 3B，解码最快</td>
</tr>
</tbody>
</table>
<hr />
<h2>5. 可复现的部署方案</h2>
<h3>5.1 编译 llama.cpp（ROCm / gfx1201 / RCCL）</h3>
<pre><code class="language-bash">git clone --depth 1 https://github.com/ggml-org/llama.cpp.git ~/llama-work/llama.cpp
cd ~/llama-work/llama.cpp
cmake -B build -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx1201 -DGGML_HIP_RCCL=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build -j 20 --target llama-bench llama-server llama-cli
</code></pre>
<h3>5.2 下载模型（ModelScope 最快，~147 MiB/s）</h3>
<pre><code class="language-bash">cd ~/llama-work/models
aria2c -x 16 -s 16 -k 1M -c -o Qwen_Qwen3-Next-80B-A3B-Instruct-Q5_K_M-00001-of-00002.gguf \
  "https://modelscope.cn/models/bartowski/Qwen_Qwen3-Next-80B-A3B-Instruct-GGUF/resolve/master/Qwen_Qwen3-Next-80B-A3B-Instruct-Q5_K_M/Qwen_Qwen3-Next-80B-A3B-Instruct-Q5_K_M-00001-of-00002.gguf"
# 第二个分片 -00002-of-00002.gguf 同理
</code></pre>
<blockquote>
<p dir="auto">三条通道速度对比：hf-mirror 单连接 295 KB/s、直连 HF（走代理）262 KB/s、<strong>ModelScope 12.4 MB/s 单连接 / aria2 16 连接 147 MiB/s</strong>。ModelScope 快 40 倍。</p>
</blockquote>
<h3>5.3 部署 systemd 常驻服务</h3>
<pre><code class="language-ini"># /etc/systemd/system/llama-qwen3next.service
[Unit]
Description=llama.cpp server - Qwen3-Next-80B-A3B (Q5_K_M)
After=network.target
[Service]
User=magic629
ExecStart=/home/magic629/llama-work/llama.cpp/build/bin/llama-server \
  -m /home/magic629/llama-work/models/q3next80b/Qwen_Qwen3-Next-80B-A3B-Instruct-Q5_K_M-00001-of-00002.gguf \
  -ngl 99 -sm layer -t 8 --host 0.0.0.0 --port 8001 --ctx-size 16384 --parallel 4 --temp 0.7
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
</code></pre>
<pre><code class="language-bash">sudo systemctl daemon-reload
sudo systemctl enable --now llama-qwen3next
</code></pre>
<blockquote>
<p dir="auto"><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/26a0.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--warning" style="height:1.4em;width:auto;vertical-align:middle" title="⚠" alt="⚠" />️ 关键：<strong>MoE 模型必须用 <code>-sm layer</code>（整层切分）</strong>。<code>-sm tensor</code>（张量切分）会因专家张量不参与切分而 OOM（试图把 54 GB 塞进单卡）。层切分每卡 ~26.5 GB，且无 all-reduce，P2P 对该类 MoE 基本无关（但模型本身已 60 t/s）。</p>
</blockquote>
<h3>5.4 服务切换 / 回滚</h3>
<pre><code class="language-bash"># 切回 radiance（Flash-Next）
sudo systemctl stop llama-qwen3next
cd ~/radiance/compose &amp;&amp; docker compose -f flashnext.yaml up -d

# 停 radiance，起 Qwen3-Next
docker update --restart=no radiance-flashnext &amp;&amp; docker stop radiance-flashnext
sudo systemctl start llama-qwen3next
</code></pre>
<hr />
<h2>6. 完整测试报告（11 类 49 题）</h2>
<p dir="auto">服务端：llama.cpp <code>llama-server</code>，OpenAI 兼容 API，<code>:8001</code>。</p>
<h3>6.1 速度</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th>结果</th>
</tr>
</thead>
<tbody>
<tr>
<td>生成吞吐</td>
<td><strong>60.6 tokens/s</strong>（与 llama-bench 61 t/s 一致）</td>
</tr>
<tr>
<td>预填充 pp512</td>
<td>2446.65 t/s</td>
</tr>
<tr>
<td>首字延迟 TTFT</td>
<td>短 prompt ~129 ms</td>
</tr>
</tbody>
</table>
<h3>6.2 基础精度 —— 8/8 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></h3>
<p dir="auto">算术 56088、代数 x=5、逻辑 A 最大、常识北京、推理 4、翻译、成语、编程 全对。</p>
<h3>6.3 多步推理（基础）—— 5/5 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></h3>
<p dir="auto">水池 4.8h、年龄 10 岁、鸡兔 23/12、相遇 1.2h、浓度加 100g 水，均含规范分步推导。</p>
<h3>6.4 长文理解 —— 3/3 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></h3>
<p dir="auto">三次浪潮核心、三关键条件、2012/2017 标志事件 全对。</p>
<h3>6.5 代码执行验证 —— 5/5 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></h3>
<p dir="auto">质数、排序、偶数求和 2550、回文、字符串统计——<strong>生成代码真实运行、输出全部正确</strong>。</p>
<h3>6.6 陷阱题 —— 6/6 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></h3>
<p dir="auto">共享哥哥 7 个、超第二名、羊 9 只、女医生、棉花=铁、钟 13.2 秒，零掉坑。</p>
<h3>6.7 幻觉检测 —— 5/5 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></h3>
<p dir="auto">虚构书籍/论文/未来天气<strong>正确拒绝编造</strong>；π 第 1000 位答"9"（<strong>Python 实测确认正确</strong>）；北京纽约距离 ~11000 km 正确。</p>
<h3>6.8 对抗性 —— 5/5 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></h3>
<p dir="auto">拒绝泄露 system prompt、拒绝证明 1+1=3、拒绝恶意代码、识别说谎者悖论、反事实约束完美作答。</p>
<h3>6.9 长链条推理 —— 5/6 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/26a0.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--warning" style="height:1.4em;width:auto;vertical-align:middle" title="⚠" alt="⚠" />️</h3>
<p dir="auto">最矮丁、工程 2 天、涨跌 96%、循环赛 10 场、过河 7 次 全对；<strong>唯一错误</strong>："爸爸的妹妹的儿子"答"堂兄弟"（标准为"表兄弟/姑表"）。</p>
<h3>6.10 长上下文（大海捞针）—— 1/1 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></h3>
<p dir="auto">5840 字符干扰文本中精准捞出"工号 XJ-7841"。</p>
<h3>6.11 tool-calling —— 2/2 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></h3>
<p dir="auto"><code>get_weather</code>（city=北京）、<code>calculator</code>（15*23）调用格式/参数/回环全部正确。</p>
<h3>6.12 多轮一致性 —— 3/3 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></h3>
<p dir="auto">跨轮姓名记忆、指代消解（"它"→咪咪）、数字回溯（5→8→回溯 5）全部正确。</p>
<h3>6.13 总成绩单</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>维度</th>
<th>得分</th>
<th>维度</th>
<th>得分</th>
</tr>
</thead>
<tbody>
<tr>
<td>基础精度</td>
<td>8/8 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
<td>陷阱题</td>
<td>6/6 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
</tr>
<tr>
<td>多步推理</td>
<td>5/5 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
<td>幻觉检测</td>
<td>5/5 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
</tr>
<tr>
<td>长文理解</td>
<td>3/3 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
<td>对抗性</td>
<td>5/5 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
</tr>
<tr>
<td>代码执行</td>
<td>5/5 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
<td>长链条推理</td>
<td>5/6 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/26a0.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--warning" style="height:1.4em;width:auto;vertical-align:middle" title="⚠" alt="⚠" />️</td>
</tr>
<tr>
<td>长上下文</td>
<td>1/1 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
<td>tool-calling</td>
<td>2/2 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
</tr>
<tr>
<td>多轮一致性</td>
<td>3/3 <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /></td>
<td><strong>总计</strong></td>
<td><strong>48/49（98.0%）</strong></td>
</tr>
</tbody>
</table>
<hr />
<h2>7. 结论与建议</h2>
<ol>
<li><strong>硬件 P2P 已打通并实测可用</strong>（27–29 GB/s），问题从不在硬件，而在内核白名单与 radiance 的软件栈。</li>
<li><strong>Qwen3-Next-80B-A3B @ Q5_K_M 是当前配置最优解</strong>：98% 测试通过、零幻觉、抗攻击、工具调用规范、长上下文精准、60 t/s、32 并发零失败零重启。</li>
<li><strong>P2P 的实际收益场景</strong>：对"小激活 MoE"（层切分、无 all-reduce）P2P 无关紧要；P2P 真正有价值的是<strong>大稠密模型 + 张量并行 + 大批量</strong>场景（如 Qwen3-32B 稠密双卡张量并行）。</li>
<li><strong>待办/隐患</strong>：
<ul>
<li>主机内存 62 GB 贴边（radiance 无 P2P 时 pin ~22 GB、报 P2P 时 36.83 GB），建议关 swap 或加内存。</li>
<li>两卡功率被限在 250 W（默认 300 W），如需更高吞吐可回调。</li>
<li>模型风格偏热情（<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f60a.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--blush" style="height:1.4em;width:auto;vertical-align:middle" title="😊" alt="😊" /><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f389.png?v=ec85ec55bc1" class="not-responsive emoji emoji-android emoji--tada" style="height:1.4em;width:auto;vertical-align:middle" title="🎉" alt="🎉" />），可用 system prompt 约束为更简洁。</li>
</ul>
</li>
</ol>
<hr />
<h2>附：关键命令速查</h2>
<pre><code class="language-bash"># P2P 实测（HIP）
cd ~/p2p-experiment &amp;&amp; bash check_p2p.sh test

# 基准
~/llama-work/llama.cpp/build/bin/llama-bench -m &lt;gguf&gt; -ngl 99 -sm layer -t 8 -p 512 -n 128

# 服务
sudo systemctl status llama-qwen3next
curl http://127.0.0.1:8001/health
</code></pre>
]]></description><link>https://lcz.me/topic/2599</link><generator>RSS for Node</generator><lastBuildDate>Mon, 26 Oct 2026 19:53:27 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2599.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Oct 2026 09:46:52 GMT</pubDate><ttl>60</ttl></channel></rss>