<?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 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next]]></title><description><![CDATA[<h1>双卡 R9700 部署 Qwen3.8-Flash-Next（MXFP4 + LRU Expert Cache）</h1>
<p dir="auto">这是一份在 <strong>2× AMD Radeon AI PRO R9700</strong> 上，用 davetha 的 <a href="https://github.com/davetha/r9700-lru-expert-cache" rel="nofollow ugc">r9700-lru-expert-cache</a> 把 <strong>Qwen3.8-Flash-Next</strong> 跑起来的实操记录。</p>
<p dir="auto">结论先写在前面：</p>
<ul>
<li>这不是 SGLang，也不是 llama.cpp GGUF。主路径是 <strong>打过补丁的 vLLM（Flash-Next fork）+ Docker + ROCm 10</strong>。</li>
<li>专家权重放不进 64 GB 显存，必须 <strong>CPU 常驻 + UVA 过 PCIe</strong>。davetha 的工作是把「固定热专家」改成 <strong>GPU 侧 LRU 槽位</strong>，decode 时按路由换专家。</li>
<li>官方 README 把 host RAM 写轻了。真正吃内存的不是 30 GiB 专家，而是 <strong>约 47.75 GiB 的 PLE / n-gram 表</strong>，而且只能待在 CPU。</li>
<li>作者机器是 EPYC + 更大内存；我这边是 <strong>X99 + 128 G + 双 R9700</strong>。128 G 能启动 160k 上下文，但 PLE 会进 NVMe swap，prefill 会明显慢于作者数字。</li>
</ul>
<p dir="auto">如果你只想复现作者那套 256k / ~90–140 tok/s，先看内存账，再决定要不要上这套。</p>
<hr />
<h2>性能参数与实测</h2>
<h3>启动档位（影响速度 / 显存 / 内存）</h3>
<p dir="auto">双卡是 <strong>张量并行 TP=2</strong>（<code>--tensor-parallel-size 2</code>），不是数据并行。</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>参数</th>
<th>git原作者默认（大内存）</th>
<th>本机已跑通</th>
<th>作用</th>
</tr>
</thead>
<tbody>
<tr>
<td>并行</td>
<td>TP=2</td>
<td><strong>TP=2</strong></td>
<td>一份模型切两张卡</td>
</tr>
<tr>
<td>LRU 热槽 <code>HOT_GB</code></td>
<td><strong>15 GB / rank</strong></td>
<td><strong>15 GB / rank</strong></td>
<td>显存里的可变专家槽；不要上 16，会挤死 KV</td>
</tr>
<tr>
<td>上下文 <code>max-model-len</code></td>
<td><strong>262144</strong>（256k）</td>
<td><strong>163840</strong>（160k）</td>
<td>几乎只改 GPU KV，不改 PLE 体积</td>
</tr>
<tr>
<td>并发 <code>max-num-seqs</code></td>
<td>4</td>
<td><strong>1</strong>（单用户）</td>
<td>同时请求数</td>
</tr>
<tr>
<td><code>max-num-batched-tokens</code>（NBT）</td>
<td><strong>4096</strong></td>
<td><strong>2048</strong></td>
<td>chunked prefill 块大小；越大越吃瞬时显存</td>
</tr>
<tr>
<td>MTP</td>
<td><strong>4</strong> draft tokens</td>
<td><strong>4</strong></td>
<td><code>speculative_config.num_speculative_tokens</code></td>
</tr>
<tr>
<td>KV dtype</td>
<td>fp8</td>
<td>fp8</td>
<td><code>--kv-cache-dtype fp8</code></td>
</tr>
<tr>
<td>专家 offload</td>
<td><code>--cpu-offload-gb 40 --cpu-offload-params experts</code></td>
<td>同左</td>
<td>主层 MXFP4 专家走 host UVA</td>
</tr>
<tr>
<td>PLE</td>
<td><code>VLLM_PLE_CPU_OFFLOAD=1</code></td>
<td>同左</td>
<td>~47.75 GiB n-gram 表钉在 CPU</td>
</tr>
<tr>
<td>视觉</td>
<td>image 8 / video 1</td>
<td><strong>关掉</strong>（<code>MM_IMAGE=0 MM_VIDEO=0</code>）</td>
<td>省一点 host / 调度</td>
</tr>
<tr>
<td><code>gpu-memory-utilization</code></td>
<td>0.97</td>
<td>0.97</td>
<td>尽量把剩余显存给 KV</td>
</tr>
<tr>
<td>prefix cache / chunked prefill</td>
<td>开</td>
<td>开</td>
<td>长上下文必备</td>
</tr>
<tr>
<td>服务端口</td>
<td><code>:8057</code></td>
<td><code>:8057</code></td>
<td>容器内 <code>:8000</code></td>
</tr>
</tbody>
</table>
<p dir="auto">本机 wrapper 默认写的是 <code>MAXLEN=32768</code>；上面 160k 是启动时 <code>MAXLEN=163840</code> 覆盖的。160k 起来后日志：<code>GPU KV cache size: 519,545 tokens</code>（相对 163840 约 3.17×，<code>NSEQ=1</code> 用不满）。</p>
<h3>本机吞吐（X99 + 128 G + PLE 在 NVMe swap）</h3>
<p dir="auto">测的是 32k 服务窗口、MTP-4、<code>NSEQ=1</code>、<code>NBT=2048</code>、text-only、LRU 15 GB/rank。数字是客户端扣掉 TTFT 之后的 decode，以及 <code>prompt_tokens / prefill_time</code>。</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>场景</th>
<th>Prefill</th>
<th>Decode</th>
<th>MTP 接受率</th>
<th>tok / step</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>8k × 3</strong>（真实文本，逼 LRU 换入，不是 pad）</td>
<td><strong>594.6 ± 5.7 tok/s</strong></td>
<td><strong>68.1 ± 10.0 tok/s</strong></td>
<td><strong>38.8 ± 7.7%</strong></td>
<td>~2.55 / 5</td>
</tr>
<tr>
<td><strong>32k prefill</strong></td>
<td><strong>580–588 tok/s</strong></td>
<td>—</td>
<td>—</td>
<td>—</td>
</tr>
<tr>
<td><strong>32k decode</strong>（<code>ignore_eos</code> + 半句续写）</td>
<td>—</td>
<td><strong>91.2 ± 11.7 tok/s</strong></td>
<td><strong>56.5 ± 7.0%</strong></td>
<td>~3.27 / 5</td>
</tr>
</tbody>
</table>
<p dir="auto">同一轮里用 padding 灌满 32k 时，模型会复读 <code>pad</code>，接受率会被抬到 70%+，<strong>不能当日常数字</strong>。上面 8k 的 ~39% 更接近正常写说明。</p>
<p dir="auto">较早一版（padding 提示、单次 128 gen，仅供对照）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>场景</th>
<th>Prefill</th>
<th>Decode</th>
<th>MTP 接受率</th>
</tr>
</thead>
<tbody>
<tr>
<td>8k / 8192 tok</td>
<td>560.9 tok/s</td>
<td>71.8 tok/s</td>
<td>64.6%</td>
</tr>
<tr>
<td>32k / 32000 tok（复读 pad）</td>
<td>620.2 tok/s</td>
<td>82.1 tok/s</td>
<td>74.2%（虚高）</td>
</tr>
</tbody>
</table>
<p dir="auto">MTP 深度用 metrics 核对：<code>draft_tokens / drafts = 4</code>。</p>
<pre><code class="language-text">curl -s http://127.0.0.1:8057/metrics | grep ^vllm:spec_decode
</code></pre>
<h3>作者机器（对照，不要当成这台的数）</h3>
<p dir="auto">作者 <code>fp8head</code> arm：EPYC + 更大内存 + NBT 4096 + 256k + MTP-4 + 15 GB 热槽。单流 greedy，<code>bench/ab3.py</code> best-of-3：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th></th>
<th>prose</th>
<th>JSON</th>
<th>code</th>
<th>prefill</th>
</tr>
</thead>
<tbody>
<tr>
<td>静态热集（baseline）</td>
<td>60.2</td>
<td>68.6</td>
<td>89.1</td>
<td>~3066 tok/s</td>
</tr>
<tr>
<td><strong>启动脚本默认（fp8head）</strong></td>
<td><strong>93.1</strong></td>
<td><strong>138.8</strong></td>
<td><strong>128.5</strong></td>
<td><strong>~3551 tok/s</strong></td>
</tr>
</tbody>
</table>
<p dir="auto">作者并发（c8 全栈，aggregate tok/s）：B=1 → 105.7，B=4 → 165.7。</p>
<h3>怎么读这两台的差距</h3>
<ul>
<li><strong>Decode</strong>：这台 32k 约 <strong>91 tok/s</strong>，已经进作者 prose 区间（~90–96）；JSON/code 作者更高，这边没按那三个 probe 复测。</li>
<li><strong>Prefill</strong>：这台稳定 <strong>~580–600 tok/s</strong>，作者 <strong>~3500</strong>，大约 <strong>6×</strong>。主因是 47.75 GiB PLE 在 swap、X99/更窄的 CPU 通道、NBT 2048。prefix-cache 命中时日志里也能看到 ~3200 tok/s 的 prompt，说明 GPU 算力不是 600 那个量级。</li>
<li><strong>接受率</strong>随文本变：散文/说明大约 40–56%；数字、复读、JSON 会高很多。</li>
</ul>
<hr />
<h2>1. 这套栈在做什么</h2>
<p dir="auto">Qwen3.8-Flash-Next 是超大 MoE：每层 512 个 routed expert，主层专家是 MXFP4。两张 R9700 一共约 64 GB VRAM，装不下全部专家。</p>
<p dir="auto">常见做法是：</p>
<ol>
<li>专家放 host RAM，GPU 用 UVA 按需读（PCIe）。</li>
<li>启动时钉一份「热专家」在显存里，其余走冷路径。</li>
</ol>
<p dir="auto">davetha 仓库改的是第 2 步：显存里仍是那批槽位（默认每卡 <strong>15 GB</strong>），但 <strong>槽里装谁由 GPU 上的两个 HIP kernel 在 decode 步之间决定</strong>。作者测到生产 trace 上 PCIe 专家流量从 432 MB/step 降到 86 MB/step，MoE grouped GEMM 从 21.1 ms/step 降到 4.2 ms/step。</p>
<p dir="auto">同时还有一串 kernel-count 补丁（W4 draft LM head、fused SiLU-quant、fp8 target lm_head、MTP-4 等）。启动脚本默认复现的是 README 里的 <strong><code>fp8head</code> arm</strong>。</p>
<p dir="auto">权重用的是作者测数字的同一份 checkpoint：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td>Hugging Face</td>
<td><a href="https://huggingface.co/davetha/q38fn-heretic2-mxfp4-fp8" rel="nofollow ugc"><code>davetha/q38fn-heretic2-mxfp4-fp8</code></a></td>
</tr>
<tr>
<td>来源</td>
<td><a href="https://huggingface.co/Qwen/Qwen3.8-Flash-Next" rel="nofollow ugc">Qwen/Qwen3.8-Flash-Next</a> 的 MXFP4/FP8 量化，Heretic 去审查</td>
</tr>
<tr>
<td>体积</td>
<td>约 <strong>118 GiB</strong>，25 个 safetensors shard</td>
</tr>
<tr>
<td>专家</td>
<td>主层 MXFP4；attention / MTP / PLE 为 FP8</td>
</tr>
</tbody>
</table>
<p dir="auto">换一份别的 Flash-Next 量化也能起，但不要拿它和 README 表格比速度。</p>
<hr />
<h2>2. 硬件：作者 vs 这台机器</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th></th>
<th>作者 <code>big</code></th>
<th>这台机器</th>
</tr>
</thead>
<tbody>
<tr>
<td>主板 / CPU</td>
<td>Supermicro H12SSL-NT + EPYC 74F3（Milan，八通道）</td>
<td><strong>华南 X99-T8 + Xeon E5-2696 v3</strong></td>
</tr>
<tr>
<td>GPU</td>
<td>2× R9700（推理只用这两张；同机还有 2× MI210）</td>
<td><strong>2× R9700</strong>（DID <code>0x7551</code>，gfx1201，各约 32 GB）</td>
</tr>
<tr>
<td>卡间 P2P</td>
<td>两卡各占一条 Gen4 root port，<strong>没有 P2P</strong></td>
<td>X99 双 root port；这套 vLLM 不依赖 Direct-P2P</td>
</tr>
<tr>
<td>Host RAM</td>
<td>未写死，但从 EPYC + MI210 推断远大于 128 G</td>
<td><strong>128 G 安装，系统可见约 126 GiB</strong></td>
</tr>
<tr>
<td>宿主机 ROCm</td>
<td>—</td>
<td><strong>7.2.4</strong></td>
</tr>
<tr>
<td>容器内 PyTorch</td>
<td>ROCm 10 / torch 2.11（gfx1201）</td>
<td>同左</td>
</tr>
<tr>
<td>权重盘</td>
<td>未特别强调</td>
<td>必须放 <strong>NVMe ext4</strong>，不要从 NTFS/FUSE 直接 serve</td>
</tr>
</tbody>
</table>
<p dir="auto">要点：<strong>GPU 型号一致，差的是主机内存、CPU 通道、PCIe 代数。</strong> 作者仓库默认 <code>GPUS=1,2</code>，那是因为他机器上 0/3 是 MI210。纯双 R9700 一般是 <code>0,1</code>。<strong>不要抄他的 GPU 下标。</strong></p>
<p dir="auto">本机 grub 里有 <code>intel_iommu=on</code>（以及 <code>amdgpu.ras_enable=0</code>）。对这套 LRU/UVA 路径，P2P 不是启动门槛——作者自己也没有 P2P。</p>
<hr />
<h2>3. 内存账（启动前先看这个）</h2>
<p dir="auto">按仓库 <code>docs/VRAM_CENSUS.md</code>，<code>q38fn-heretic2-mxfp4-fp8</code> + TP=2 + <code>--cpu-offload-gb 40 --cpu-offload-params experts</code>：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>块</th>
<th>每 rank / 全局</th>
<th>住哪</th>
</tr>
</thead>
<tbody>
<tr>
<td>PLE / n-gram 表（<code>*.ple.*</code>）</td>
<td><strong>47.75 GiB（全局，不切 TP）</strong></td>
<td><strong>CPU only</strong>（<code>VLLM_PLE_CPU_OFFLOAD=1</code>），不能卸 GPU</td>
</tr>
<tr>
<td>主层 MXFP4 experts</td>
<td><strong>29.88 GiB / rank</strong></td>
<td>Host，UVA（<code>--cpu-offload-gb 40</code>）</td>
</tr>
<tr>
<td>LRU 热槽</td>
<td>默认 <strong>15 GB / rank</strong></td>
<td>VRAM</td>
</tr>
<tr>
<td>常驻 VRAM 权重（attn / GDN / MTP experts / lm_head / embed / 视觉塔等）</td>
<td>约 <strong>6 GiB / rank</strong></td>
<td>VRAM</td>
</tr>
<tr>
<td>KV（fp8）</td>
<td>显存扣完热槽和权重后的剩余</td>
<td>VRAM</td>
</tr>
</tbody>
</table>
<p dir="auto">加载峰值比稳态更凶：PLE worker 要把约 48 GiB 表物化，两个 TP worker 同时把 checkpoint 读进来。这就是 94 G、甚至 128 G 也会在启动瞬间被 OOM killer 干掉的原因。</p>
<p dir="auto"><strong>上下文长度几乎只改 GPU KV，不改 PLE 体积。</strong> 把 <code>max-model-len</code> 从 32k 调到 160k，救不了 host OOM。</p>
<p dir="auto">经验阈值（单用户、桌面还要活着）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Host RAM</th>
<th>现实</th>
</tr>
</thead>
<tbody>
<tr>
<td>≤ 96 G</td>
<td>几乎必然 OOM（PLE worker 先被杀）</td>
</tr>
<tr>
<td>128 G + NVMe swap</td>
<td>能起来；稳态下 PLE 大部分在 swap</td>
</tr>
<tr>
<td>作者那类大内存服务器</td>
<td>PLE 留在 DRAM，才能接近 README 的 prefill</td>
</tr>
</tbody>
</table>
<p dir="auto">128 G 上测到的稳态（服务已起来、空闲）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>进程</th>
<th>RSS</th>
<th>Swap</th>
</tr>
</thead>
<tbody>
<tr>
<td>PLE worker（<code>multiprocessing.spawn</code>）</td>
<td>~4.1 GiB</td>
<td><strong>~44.7 GiB</strong></td>
</tr>
<tr>
<td><code>VLLM::Worker_TP0/TP1</code></td>
<td>各 ~42.4 GiB</td>
<td>各 ~0.6 GiB</td>
</tr>
<tr>
<td>整机 swap</td>
<td>—</td>
<td>~48 GiB / 71 GiB</td>
</tr>
</tbody>
</table>
<p dir="auto">也就是说：<strong>进 swap 的主要是 n-gram / PLE，不是专家权重。</strong> Decode 打到冷 n-gram 项时会先从 NVMe 换页回来。</p>
<hr />
<h2>4. 部署流程</h2>
<p dir="auto">下面按「别人机器也能照着做」写。本机封装脚本路径单独标出。</p>
<h3>4.1 系统准备</h3>
<ol>
<li>宿主机 ROCm 能看到两张卡：<code>/dev/kfd</code>、<code>/dev/dri/renderD128</code> / <code>renderD129</code>，用户在 <code>video</code> + <code>render</code> 组。</li>
<li>安装 Docker，当前用户进 <code>docker</code> 组（否则每次 <code>sg docker -c '...'</code>）。</li>
<li>国内拉 <code>ghcr.io</code> 时，<strong>要把代理配到 dockerd / containerd</strong>，只 export 当前 shell 的 <code>http_proxy</code> 不够。Ubuntu 24.04 + Docker 29 用 containerd-snapshotter 拉层，必须给两个服务都写 drop-in。</li>
<li>关掉会占住这两张卡的其它推理进程。启动脚本会等 VRAM 掉下来，但不会把别人的 server 杀掉。</li>
</ol>
<p dir="auto">本机脚本：</p>
<pre><code class="language-text">~/sglang/scripts/install_docker_flashnext.sh   # apt 装 docker，加组
~/sglang/scripts/setup_docker_proxy.sh         # dockerd/containerd → Clash :7897
</code></pre>
<h3>4.2 下载权重，并拷到 NVMe ext4</h3>
<pre><code class="language-bash"># 可用镜像站；本机脚本默认 HF_ENDPOINT=https://hf-mirror.com
hf download davetha/q38fn-heretic2-mxfp4-fp8 \
  --local-dir /path/to/fast-nvme/q38fn-heretic2-mxfp4-fp8
</code></pre>
<p dir="auto">本机先下到机械盘 NTFS（<code>/mnt/hdd/llm-storage/...</code>），再 <strong>byte-identical</strong> 拷到：</p>
<pre><code class="language-text">/home/minghao/models/q38fn-heretic2-mxfp4-fp8    # 125913314711 bytes，25 shards
</code></pre>
<p dir="auto">不要从 NTFS / FUSEBLK（<code>/mnt/hdd</code>、<code>/mnt/ssd</code> 这类）直接给容器 serve。加载本来就把 host RAM 顶满，再叠加 FUSE 延迟，失败面更大。</p>
<p dir="auto">本机下载脚本：<code>~/sglang/scripts/dl_q38fn_mxfp4.sh</code>。</p>
<h3>4.3 准备 64 G NVMe swap（128 G 机器强烈建议）</h3>
<p dir="auto">系统自带 <code>/swap.img</code> 只有 8 G，装不下 PLE。在 <strong>系统盘 NVMe</strong> 上另做一块：</p>
<pre><code class="language-bash">sudo fallocate -l 64G /home/$USER/swap-fn.img
sudo chmod 600 /home/$USER/swap-fn.img
sudo mkswap /home/$USER/swap-fn.img
sudo swapon /home/$USER/swap-fn.img
# 可选：写入 /etc/fstab，prio 高于系统 8G swap
</code></pre>
<p dir="auto">本机实际是 <code>/home/minghao/swap-fn.img</code>（64 G，prio 10）+ <code>/swap.img</code>（8 G）。合计约 72 G。</p>
<p dir="auto"><strong>警告：</strong> 启动失败时 Linux OOM killer 可能连 GNOME/GDM 一起杀掉。启动前关掉重桌面负载，容器建议加 <code>--oom-score-adj=-300</code>，保护图形会话。</p>
<h3>4.4 克隆仓库、做镜像、打补丁</h3>
<pre><code class="language-bash">git clone https://github.com/davetha/r9700-lru-expert-cache
cd r9700-lru-expert-cache

docker build -t local/q38fn-rocm10:try1  -f docker/Dockerfile       docker/
docker build -t local/q38fn-rocm10:build -f docker/Dockerfile.build docker/

# 确认容器能看见两张卡
docker run --rm --device /dev/kfd --device /dev/dri --group-add video \
  -v "$PWD:/repo" --entrypoint python3 local/q38fn-rocm10:try1 /repo/docker/probe.py

./prebuilt/install.sh                # 预编译 gfx1201 的 librlu.so 等
./patches/apply_patches.sh --dry-run # 必须先 dry-run
./patches/apply_patches.sh
./templates/fetch.sh                 # 修正过的 Qwen chat template
</code></pre>
<p dir="auto">镜像分层：</p>
<ol>
<li>底包是 <code>ghcr.io/davetha/vllm-flashnext:DevQwenNextFlash</code>（原 <code>tcclaviger/vllm:DevQwenNextFlash</code> 的镜像；上游 Docker Hub tag 已于 2026-09-05 删除）。</li>
<li>再 overlay <strong>torch 2.11 + ROCm 10 / gfx1201</strong>，得到 <code>local/q38fn-rocm10:try1</code>。</li>
<li>闭源 <code>r4d.so</code> / <code>libfp8hip_gemm.so</code> 在底包里，不在这个 git 仓库里。</li>
</ol>
<p dir="auto">本机一键：<code>~/sglang/scripts/setup_flashnext_images.sh</code>。</p>
<h3>4.5 确认 GPU 下标</h3>
<pre><code class="language-bash">python3 - &lt;&lt;'PY'
import torch
for i in range(torch.cuda.device_count()):
    p = torch.cuda.get_device_properties(i)
    print(f"HIP {i}: {torch.cuda.get_device_name(i)}  {p.total_memory/2**30:.1f} GiB")
PY

# R9700 = PCI device id 0x7551
for d in /sys/class/drm/card*/device; do
  [ "$(cat $d/device 2&gt;/dev/null)" = "0x7551" ] &amp;&amp; echo "R9700: $(basename $(dirname $d))"
done
</code></pre>
<p dir="auto">纯双 R9700：<code>GPUS=0,1</code>，<code>VRAM_CARDS</code> 填上面打印的 <code>cardN</code>。混插 MI210 时不要用 0,1。</p>
<h3>4.6 启动</h3>
<p dir="auto">官方默认（大内存、256k、并发 4、NBT 4096）：</p>
<pre><code class="language-bash">export MODELS_DIR=/path/to/parent-of-checkpoint
export MODEL=/models/q38fn-heretic2-mxfp4-fp8
export GPUS=0,1
export VRAM_CARDS="card0 card1"   # 按 4.5 改
./launch/launch_q38fn.sh 15 262144
</code></pre>
<p dir="auto">服务默认 <strong>宿主机 <code>:8057</code> → 容器 <code>:8000</code></strong>，容器名 <code>q38fn-mxfp4</code>，served name <code>q38fn-mxfp4</code>。</p>
<p dir="auto">本机 128 G、单用户、已验证能起来的组合：</p>
<pre><code class="language-bash">MAXLEN=163840 NSEQ=1 NBT=2048 \
  sg docker -c 'bash /home/minghao/sglang/scripts/start_flashnext_lru.sh'
</code></pre>
<p dir="auto">本机 wrapper：<code>~/sglang/scripts/start_flashnext_lru.sh</code><br />
它会设好 <code>MODELS_DIR=/home/minghao/models</code>、自动扫 <code>0x7551</code> 的 <code>VRAM_CARDS</code>、关掉图/视频，然后 <code>exec</code>：</p>
<pre><code class="language-text">~/r9700-lru-expert-cache/launch/launch_q38fn.sh
</code></pre>
<p dir="auto">Wrapper 文件里的默认是 <code>MAXLEN=32768</code>；<strong>160k 要靠环境变量覆盖，没有写死。</strong></p>
<p dir="auto">启动脚本还会：</p>
<ul>
<li><code>docker rm -f</code> 旧容器，并等到名字释放、两张卡 VRAM 降下来；</li>
<li>挂 <code>profiles/hot_profile.json</code> 做 per-layer 热启动；</li>
<li>打开 LRU / fuse / MTP-4 / PLE CPU offload / expert UVA 等全部实测有效的开关。</li>
</ul>
<p dir="auto">关键容器环境（完整列表见 <code>launch/launch_q38fn.sh</code>）：</p>
<pre><code class="language-text">VLLM_PLE_CPU_OFFLOAD=1
VLLM_R4D_HOT_PROFILE=/hot/hot_profile.json
VLLM_R4D_HOT_GB=15
VLLM_R4D_LRU=1
VLLM_R4D_LRU_FUSE=1
VLLM_UVA_OFFLOAD_EMBED=1
VLLM_UVA_OFFLOAD_VISUAL=1
</code></pre>
<p dir="auto">关键 vLLM 参数：</p>
<pre><code class="language-text">--tensor-parallel-size 2
--kv-cache-dtype fp8
--cpu-offload-gb 40 --cpu-offload-params experts
--gpu-memory-utilization 0.97
--enable-prefix-caching --enable-chunked-prefill
--speculative-config {"method": "mtp", "num_speculative_tokens": 4}
</code></pre>
<hr />
<h2>5. 怎么确认 LRU 真的开了</h2>
<p dir="auto">日志里必须看到类似：</p>
<pre><code class="language-text">r4d LRU expert cache: ON (lib ..., thresh 0.50, max_inserts 64, grid 8x16)
r4d LRU: layer 0 -&gt; 257 slots warm-started from the profile hot set,
         read-through above 128 distinct experts/step
</code></pre>
<p dir="auto">如果是 <strong><code>r4d unavailable</code></strong>，某个 bind-mount 补丁 import 失败，MoE <strong>会静默退回官方热集</strong>。数字全部作废。这是静默失败，启动后务必搜这一行。</p>
<p dir="auto">160k 启动成功时，本机日志里还有：</p>
<pre><code class="language-text">GPU KV cache size: 519,545 tokens
</code></pre>
<p dir="auto">相对 163840 的并发大约 <strong>3.17×</strong>（<code>max-num-seqs=1</code> 时用不满）。32k 启动时同一套账只报过约 219k KV tokens——hybrid GDN/QSA 的 KV 预算会随 <code>max_model_len</code> 重算，不要拿两次启动的 KV 行直接相减。</p>
<p dir="auto">256k（<code>MAXLEN=262144</code> + <code>HOT_GB=15</code>）在这台 128 G 上 <strong>没有稳定跑通</strong>。若要试，先把 <code>HOT_GB</code> 降到 13–14，给 KV 留空，并接受更差的 expert hit rate。</p>
<hr />
<h2>6. 本机踩过的坑</h2>
<h3>6.1 以为调 ctx / 并发就能避开 OOM</h3>
<p dir="auto">不行。OOM 发生在 <strong>PLE 物化 + 双 TP 读盘</strong> 的加载峰值。<code>max-num-seqs=1</code>、关掉视觉塔，只能减 GPU 和一点 host，砍不掉那 48 GiB 表。</p>
<h3>6.2 从 HDD / NTFS 直接加载</h3>
<p dir="auto">权重 118 G，加载期两个 worker 一起读。FUSE NTFS 会把峰值拉得更长，更容易和桌面抢内存。先 <code>cp -a</code> 到 NVMe ext4，再挂进容器。</p>
<h3>6.3 没有 swap、或 swap 在慢盘上</h3>
<p dir="auto">8 G 系统 swap 不够。64 G 文件必须在 NVMe 上。PLE 进 swap 之后服务能活，但 prefill 会掉一个数量级。</p>
<h3>6.4 启动失败杀桌面</h3>
<p dir="auto">一次「瘦身重启」触发 OOM killer，GDM/GNOME 被干掉。后来给容器加了 <code>--oom-score-adj=-300</code>。启动时不要同时编译、浏览器开几十个标签、或再拉一个大模型。</p>
<h3>6.5 Docker 代理只配了 shell</h3>
<p dir="auto"><code>docker pull ghcr.io/...</code> 走 containerd，必须给 <code>docker.service</code> <strong>和</strong> <code>containerd.service</code> 写 <code>HTTP_PROXY</code>。本机 Clash 只开 <strong>7897</strong>，没有 7890。</p>
<h3>6.6 IPv6 / 错误的 GPU 下标</h3>
<p dir="auto">部分网络环境下 pull 会卡在 IPv6。GPU 下标抄作者的 <code>1,2</code> 会直接跑到不存在的设备或错误的卡。</p>
<h3>6.7 中文长上下文提前 EOS</h3>
<p dir="auto">32k 散文、提示里写「忽略 padding」时，模型可能立刻 EOS、生成空。测 decode 要用 <code>ignore_eos</code>，或用半截句子当续写（本机用过「LRU缓存的核心思想是」）。</p>
<hr />
<h2>7. 实测说明</h2>
<p dir="auto">吞吐、接受率、作者对照和启动档位见文首 <strong>「性能参数与实测」</strong>。这里只补测量时要注意的两点：</p>
<ul>
<li>用 padding 灌满上下文会让模型复读 <code>pad</code>，MTP 接受率虚高；要用真实长文或半句续写，并考虑 <code>ignore_eos</code>。</li>
<li>核对 MTP-4：<code>http://127.0.0.1:8057/metrics</code> 里 <code>draft_tokens / drafts</code> 应为 4。分词走 <code>POST /tokenize</code>。</li>
</ul>
<hr />
<h2>8. 调用</h2>
<p dir="auto">OpenAI 兼容，模型名 <code>q38fn-mxfp4</code>，端口 <strong>8057</strong>。</p>
<p dir="auto">Flash-Next <strong>默认开 thinking</strong>。关思考是请求级参数，不是启动开关：</p>
<pre><code class="language-json">{
  "model": "q38fn-mxfp4",
  "messages": [{"role": "user", "content": "你好"}],
  "chat_template_kwargs": {"enable_thinking": false}
}
</code></pre>
<p dir="auto"><code>reasoning_effort</code>、<code>preserve_thinking</code> 同样生效。</p>
<hr />
<h2>9. 本机文件速查</h2>
<pre><code class="language-text"># 权重
/home/minghao/models/q38fn-heretic2-mxfp4-fp8          # 线上用，NVMe ext4
/mnt/hdd/llm-storage/q38fn-heretic2-mxfp4-fp8          # 原始下载，NTFS，不要直接 serve

# 仓库与镜像
/home/minghao/r9700-lru-expert-cache
  launch/launch_q38fn.sh
  profiles/hot_profile.json
  build/MOUNTS.txt
  build/kernels/librlu.so
local/q38fn-rocm10:try1                                # 运行镜像

# 本机封装
~/sglang/scripts/start_flashnext_lru.sh
~/sglang/scripts/setup_flashnext_images.sh
~/sglang/scripts/dl_q38fn_mxfp4.sh
~/sglang/scripts/install_docker_flashnext.sh
~/sglang/scripts/setup_docker_proxy.sh

# Swap
/home/minghao/swap-fn.img                              # 64G，需 swapon
/swap.img                                              # 系统 8G

# 服务
容器 q38fn-mxfp4 ，宿主机 http://127.0.0.1:8057
</code></pre>
<p dir="auto">再拉起上次 160k 配置：</p>
<pre><code class="language-bash">MAXLEN=163840 NSEQ=1 NBT=2048 \
  sg docker -c 'bash /home/minghao/sglang/scripts/start_flashnext_lru.sh'
</code></pre>
<hr />
<h2>10. 若你要在自己机器上复现</h2>
<p dir="auto">按优先级：</p>
<ol>
<li><strong>Host RAM ≥ 192 G 更好</strong>；128 G 必须配大块 NVMe swap，并接受 PLE 换页。</li>
<li>权重放 NVMe ext4。</li>
<li>先 <code>apply_patches.sh --dry-run</code>，再启动。</li>
<li>日志确认 <code>r4d LRU expert cache: ON</code>。</li>
<li>单用户先 <code>NSEQ=1</code>、<code>MM_IMAGE=0 MM_VIDEO=0</code>，起来再加并发和视觉。</li>
<li><code>HOT_GB</code> 不要上 16：作者测过 16 GB 槽位会把 KV 挤到起不来（「2.4 GiB KV needed, 2.12 GiB available」）。15 GB + NBT 4096 是他那边每次都能起来的最大组合。本机内存更紧，NBT 先用 2048。</li>
<li>不要在桌面会话高峰期重启这个容器。</li>
</ol>
<hr />
<h2>参考</h2>
<ul>
<li>仓库与 Quickstart：<a href="https://github.com/davetha/r9700-lru-expert-cache" rel="nofollow ugc">https://github.com/davetha/r9700-lru-expert-cache</a></li>
<li>权重：<a href="https://huggingface.co/davetha/q38fn-heretic2-mxfp4-fp8" rel="nofollow ugc">https://huggingface.co/davetha/q38fn-heretic2-mxfp4-fp8</a></li>
<li>官方模型：<a href="https://huggingface.co/Qwen/Qwen3.8-Flash-Next" rel="nofollow ugc">https://huggingface.co/Qwen/Qwen3.8-Flash-Next</a></li>
<li>vLLM 底包镜像：<code>ghcr.io/davetha/vllm-flashnext:DevQwenNextFlash</code></li>
</ul>
]]></description><link>https://lcz.me/topic/1670</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 22:47:20 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1670.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Sep 2026 06:27:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 08:15:43 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/geekyang" aria-label="Profile: Geekyang">@<bdi>Geekyang</bdi></a> <a href="/post/17806">说</a>:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stormaround" aria-label="Profile: stormaround">@<bdi>stormaround</bdi></a> 多问一句，电源的选择，双卡GPU，在考虑是R9700还是7900xtx，这个电源配多大，双GPU电源线怎么接出来。</p>
</blockquote>
<p dir="auto">1000w就够了，850w的其实都够，不放心就1200w，7900xtx功耗高，建议限制到305w，我现在用的是微星 1200w电源，一共5个pcie/cpu + 一个12v的，双9700 完全够用，如果两张7900xtx，3x8pin 需要有一个插那个分线</p>
]]></description><link>https://lcz.me/post/17807</link><guid isPermaLink="true">https://lcz.me/post/17807</guid><dc:creator><![CDATA[stormaround]]></dc:creator><pubDate>Sun, 13 Sep 2026 08:15:43 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 08:07:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stormaround" aria-label="Profile: stormaround">@<bdi>stormaround</bdi></a> 多问一句，电源的选择，双卡GPU，在考虑是R9700还是7900xtx，这个电源配多大，双GPU电源线怎么接出来。</p>
]]></description><link>https://lcz.me/post/17806</link><guid isPermaLink="true">https://lcz.me/post/17806</guid><dc:creator><![CDATA[Geekyang]]></dc:creator><pubDate>Sun, 13 Sep 2026 08:07:34 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 07:34:45 GMT]]></title><description><![CDATA[<p dir="auto">找到了新方向，我内存也是128g</p>
]]></description><link>https://lcz.me/post/17800</link><guid isPermaLink="true">https://lcz.me/post/17800</guid><dc:creator><![CDATA[张光璞]]></dc:creator><pubDate>Sun, 13 Sep 2026 07:34:45 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 07:15:04 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/geekyang" aria-label="Profile: Geekyang">@<bdi>Geekyang</bdi></a> <a href="/post/17794">说</a>:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stormaround" aria-label="Profile: stormaround">@<bdi>stormaround</bdi></a> 对了问一下，你agent 上网查询的主要工具是什么，google seach api 现在好像不能用了。</p>
</blockquote>
<p dir="auto">hermes直接爬网页，考虑要不要加上brave search</p>
]]></description><link>https://lcz.me/post/17796</link><guid isPermaLink="true">https://lcz.me/post/17796</guid><dc:creator><![CDATA[stormaround]]></dc:creator><pubDate>Sun, 13 Sep 2026 07:15:04 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 07:09:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stormaround" aria-label="Profile: stormaround">@<bdi>stormaround</bdi></a> 对了问一下，你agent 上网查询的主要工具是什么，google seach api 现在好像不能用了。</p>
]]></description><link>https://lcz.me/post/17794</link><guid isPermaLink="true">https://lcz.me/post/17794</guid><dc:creator><![CDATA[Geekyang]]></dc:creator><pubDate>Sun, 13 Sep 2026 07:09:00 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 07:07:55 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/17792">说</a>:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stormaround" aria-label="Profile: stormaround">@<bdi>stormaround</bdi></a></p>
<p dir="auto">了解, 我27B 主要是用在Agent用途  知識面不懂它就上網自己去查,<br />
如果Qwen3.8-Flash-Next coding 能力強過27B, 那倒是有可以發揮的空間做指揮調度的角色<br />
全套地端local llm, 否則只能必要時依賴 云端 前沿模型了</p>
</blockquote>
<p dir="auto">我感觉还是flash更好一些，如果做的任务不复杂27b应该是够用，稍微复杂点可以考虑用flash，或者直接用云端模型</p>
]]></description><link>https://lcz.me/post/17793</link><guid isPermaLink="true">https://lcz.me/post/17793</guid><dc:creator><![CDATA[stormaround]]></dc:creator><pubDate>Sun, 13 Sep 2026 07:07:55 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 07:05:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stormaround" aria-label="Profile: stormaround">@<bdi>stormaround</bdi></a></p>
<p dir="auto">了解, 我27B 主要是用在Agent用途  知識面不懂它就上網自己去查,<br />
如果Qwen3.8-Flash-Next coding 能力強過27B, 那倒是有可以發揮的空間做指揮調度的角色<br />
全套地端local llm, 否則只能必要時依賴 云端 前沿模型了</p>
]]></description><link>https://lcz.me/post/17792</link><guid isPermaLink="true">https://lcz.me/post/17792</guid><dc:creator><![CDATA[kos or]]></dc:creator><pubDate>Sun, 13 Sep 2026 07:05:14 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 07:02:07 GMT]]></title><description><![CDATA[<p dir="auto">噪声和「适不适合本地」分三点说。</p>
<p dir="auto"><strong>1. 噪声</strong><br />
R9700 是 300W 级卡，双卡满载约 600W 全变成热。能不能放客厅，关键不在卡本身而在散热形式：</p>
<ul>
<li>涡轮卡出风集中，只要机箱风道能把热排出去，主要是高频风噪，1 米外一般 45–55 dB(A)；</li>
<li>轴流非公卡装普通机箱，热和噪声都留在屋里，风扇一上 850 转就很明显。<br />
可操作：用 <code>rocm-smi</code> 或 vLLM 的功耗上限把两张卡锁到 80%，TG 掉几个点，风噪下降明显；长期放客厅还要算上 600W 的空调负担。</li>
</ul>
<p dir="auto"><strong>2. 真正卡你的不是算力，是 host 内存带宽</strong><br />
Flash-Next 这套的专家权重 + PLE/n-gram 表必须常驻 host（约 47.75 GiB，官方 README 写轻了），decode 每步按路由过 PCIe/UVA 取专家。X99 + DDR3 四通道的 host 带宽远低于 EPYC 的 8–12 通道，PLE 一旦被挤进 NVMe swap，prefill 就会塌。dardeaw 的 395 小盒子 prefill 能赢双卡 MXFP4，原因就在这：LPDDR5x 统一内存约 256 GB/s，而你是 DDR3 + PCIe 串联，瓶颈在链路上不在卡上。建议先在这台 X99 上跑个 STREAM/pcm 量一下实际内存带宽，对不上再谈调参。</p>
<p dir="auto"><strong>3. 27B 还是 Flash-Next</strong><br />
kos or 那个问题我的看法：单机主力放 27B（稳、KV 小、能全进显存）；Flash-Next 只在需要它的知识面/去审核、且 host 内存和带宽扛得住时当重活补充，不适合当日常主力。</p>
]]></description><link>https://lcz.me/post/17788</link><guid isPermaLink="true">https://lcz.me/post/17788</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Sun, 13 Sep 2026 07:02:07 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 06:57:59 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/17782">说</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stormaround" aria-label="Profile: stormaround">@<bdi>stormaround</bdi></a> <a href="/post/17779">said</a>:</p>
<p dir="auto">zx-bench 智秀评测截图</p>
</blockquote>
<p dir="auto">請問跟跑Qwen3.8-27B 相較之下 各項表現差異大嗎？</p>
<p dir="auto">我想主力用Qwen3.8-27B, 在遇到難題時 派出Qwen3.8-Flash-Next, Deepseek or Codex 應戰</p>
</blockquote>
<p dir="auto">27b稳一些，但是知识面不足，我现在主要还是用云端模型，目前考虑用本地flash替换云端，而且这个模型是去审核的</p>
]]></description><link>https://lcz.me/post/17785</link><guid isPermaLink="true">https://lcz.me/post/17785</guid><dc:creator><![CDATA[stormaround]]></dc:creator><pubDate>Sun, 13 Sep 2026 06:57:59 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 07:09:02 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stormaround" aria-label="Profile: stormaround">@<bdi>stormaround</bdi></a> <a href="/post/17779">said</a>:</p>
<p dir="auto">zx-bench 智秀评测截图</p>
</blockquote>
<p dir="auto">請問跟跑Qwen3.8-27B 相較之下 各項表現差異大嗎？</p>
<p dir="auto">我想主力用Qwen3.8-27B, 在遇到難題時 派出Qwen3.8-Flash-Next, Deepseek or Codex</p>
]]></description><link>https://lcz.me/post/17782</link><guid isPermaLink="true">https://lcz.me/post/17782</guid><dc:creator><![CDATA[kos or]]></dc:creator><pubDate>Sun, 13 Sep 2026 07:09:02 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 06:52:42 GMT]]></title><description><![CDATA[<p dir="auto">我395小盒子halogen-flash-next竟然prefill贏你雙卡搭MXFP4好大一圈.....希望AMD官方把Halogen買下來，搞給所有RDNA家族，讓一眾兄弟少折騰少走彎路吧</p>
]]></description><link>https://lcz.me/post/17781</link><guid isPermaLink="true">https://lcz.me/post/17781</guid><dc:creator><![CDATA[dardeaw feng]]></dc:creator><pubDate>Sun, 13 Sep 2026 06:52:42 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 06:48:01 GMT]]></title><description><![CDATA[<p dir="auto">双卡R9700 噪声怎么样，是否可以直接放在家里客厅。</p>
]]></description><link>https://lcz.me/post/17780</link><guid isPermaLink="true">https://lcz.me/post/17780</guid><dc:creator><![CDATA[Geekyang]]></dc:creator><pubDate>Sun, 13 Sep 2026 06:48:01 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 06:46:01 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://upload.lcz.me/uploads/b7aa9a8d-8746-4d11-bf8f-8adff2cecaf5.jpeg" alt="image.jpeg" class=" img-fluid img-markdown" /><br />
<img src="https://upload.lcz.me/uploads/e6c8926a-2e9c-4a53-a1ab-bac50af566ec.jpeg" alt="image.jpeg" class=" img-fluid img-markdown" /><br />
zx-bench 智秀评测截图，4并发</p>
]]></description><link>https://lcz.me/post/17779</link><guid isPermaLink="true">https://lcz.me/post/17779</guid><dc:creator><![CDATA[stormaround]]></dc:creator><pubDate>Sun, 13 Sep 2026 06:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 06:42:23 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/geekyang" aria-label="Profile: Geekyang">@<bdi>Geekyang</bdi></a> <a href="/post/17773">说</a>:</p>
<p dir="auto">qwen3.8-flash-next 应该不适合本地部署吧，资源要求太大了</p>
</blockquote>
<p dir="auto">还好，我这个128g ddr3内存，不算大，而且速度不错，swap主要放n-gram，还可以，比27b内容多</p>
]]></description><link>https://lcz.me/post/17778</link><guid isPermaLink="true">https://lcz.me/post/17778</guid><dc:creator><![CDATA[stormaround]]></dc:creator><pubDate>Sun, 13 Sep 2026 06:42:23 GMT</pubDate></item><item><title><![CDATA[Reply to 双R9700 + 华南X99 + 128g ddr3内存部署 qwen3.8-flash-next on Sun, 13 Sep 2026 06:36:58 GMT]]></title><description><![CDATA[<p dir="auto">qwen3.8-flash-next 应该不适合本地部署吧，资源要求太大了</p>
]]></description><link>https://lcz.me/post/17773</link><guid isPermaLink="true">https://lcz.me/post/17773</guid><dc:creator><![CDATA[Geekyang]]></dc:creator><pubDate>Sun, 13 Sep 2026 06:36:58 GMT</pubDate></item></channel></rss>