<?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[神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测]]></title><description><![CDATA[<h1>Strata RDNA3 fork：安装、调优与 32K–256K 性能实测</h1>
<p dir="auto"><strong>机器</strong>：llm-server / 192.168.2.6 ｜ <strong>日期</strong>：2026-10-29 ｜ <strong>引擎</strong>：<code>nicejunjie/Strata-rdna3</code> @ PR #1（<code>309f0c8f</code>），engine 0.1.43<br />
<strong>模型</strong>：Swift 1.5 Qwen3.8-Flash-Next GSQ-RCO <strong>IQ3_S abliterated</strong>（2 shard）+ native pack + MTP draft<br />
<strong>GPU</strong>：单张 RX 7900 XTX 24 GiB（gfx1100） ｜ <strong>CPU</strong>：Ryzen 5 3600（6 核 12 线程，Zen 2，<strong>无 AVX-512</strong>）</p>
<hr />
<h2>0. 摘要</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>档位（实测 prompt）</th>
<th style="text-align:right">原版 0.1.52 prefill</th>
<th style="text-align:right">fork prefill</th>
<th style="text-align:right">倍数</th>
<th style="text-align:right">原版 0.1.52 decode</th>
<th style="text-align:right">fork decode</th>
<th style="text-align:right">倍数</th>
</tr>
</thead>
<tbody>
<tr>
<td>32K（32,045 tok）</td>
<td style="text-align:right">1,696 tok/s ※</td>
<td style="text-align:right"><strong>3,511 tok/s</strong></td>
<td style="text-align:right"><strong>2.07×</strong></td>
<td style="text-align:right">~70 tok/s ※</td>
<td style="text-align:right"><strong>100.6 tok/s</strong></td>
<td style="text-align:right"><strong>1.44×</strong></td>
</tr>
<tr>
<td>64K（64,038 tok）</td>
<td style="text-align:right">—</td>
<td style="text-align:right"><strong>3,570 tok/s</strong></td>
<td style="text-align:right">—</td>
<td style="text-align:right">—</td>
<td style="text-align:right"><strong>106.6 tok/s</strong></td>
<td style="text-align:right">—</td>
</tr>
<tr>
<td>128K（131,056 tok）</td>
<td style="text-align:right">—</td>
<td style="text-align:right"><strong>3,601 tok/s</strong></td>
<td style="text-align:right">—</td>
<td style="text-align:right">—</td>
<td style="text-align:right"><strong>101.2 tok/s</strong></td>
<td style="text-align:right">—</td>
</tr>
<tr>
<td>256K（260,002 tok）</td>
<td style="text-align:right">—</td>
<td style="text-align:right"><strong>3,336 tok/s</strong></td>
<td style="text-align:right">—</td>
<td style="text-align:right">—</td>
<td style="text-align:right"><strong>95.5 tok/s</strong></td>
<td style="text-align:right">—</td>
</tr>
</tbody>
</table>
<p dir="auto">※ baseline 只有 32K，取自本机 2026-10-09 的实测记录（原版 0.1.52）：裸基线 <strong>1,502 tok/s</strong>，加上<br />
<code>--prefill auto:32768</code> + <code>STRATA_PF_FUSED/GEMM/SWITCH_MIN_T</code> + <code>--spec-min-p 0.7</code> 这套优化后 <strong>1,696 tok/s</strong>；<br />
decode 同机历史日志 <strong>67–70 tok/s</strong>。上表的倍数按 1,696 / 70 计算。</p>
<p dir="auto"><strong>一句话</strong>：同一台机器、同一个模型，只把引擎换成 fork 并按它的预设调参，prefill 大约翻倍，decode 约 +44%；<br />
32K 的 prefill 达到参考帖子（Ryzen 9 3900X 上 3,529 tok/s）的 <strong>99.5%</strong>，decode 超过它（88.1）。</p>
<hr />
<h2>1. 测试环境</h2>
<h3>硬件</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td>CPU</td>
<td>AMD Ryzen 5 3600，6 核 12 线程，32 MiB L3，Zen 2</td>
</tr>
<tr>
<td>指令集</td>
<td>AVX2 / FMA / F16C，<strong>无 AVX-512</strong>（这一条决定了必须用 PR #1，见 §2.2）</td>
</tr>
<tr>
<td>内存</td>
<td>62 GiB DDR4（引擎常驻约 55 GB）</td>
</tr>
<tr>
<td>GPU</td>
<td>AMD Radeon RX 7900 XTX，24 GiB，gfx1100，PCIe 3.0 x16（主板限制，卡本身 Gen4）</td>
</tr>
<tr>
<td>存储</td>
<td>NVMe，权重约 84 GB</td>
</tr>
</tbody>
</table>
<h3>软件</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>值</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>OS</td>
<td>Ubuntu 22.04 / kernel 6.8</td>
<td></td>
</tr>
<tr>
<td>ROCm</td>
<td><code>/opt/rocm</code> = <strong>10.1.0</strong>（amdgpu 7.1.9）</td>
<td>系统安装，<strong>不是</strong> TheRock 轮子</td>
</tr>
<tr>
<td>hipBLASLt</td>
<td><strong>1.4.x</strong></td>
<td>决定 tuning 表必须是 <code>100401</code>（见 §3.3）</td>
</tr>
<tr>
<td>rocWMMA</td>
<td>headers @ commit <code>1ab208f4</code>（tag rocm-7.1.1）</td>
<td>fork pin 的版本，自己下 zip，见 §2.4</td>
</tr>
<tr>
<td>llama.cpp</td>
<td>commit <code>3cf03257</code></td>
<td>CMake FetchContent 自动拉</td>
</tr>
<tr>
<td>编译器</td>
<td>gcc 11.4.0（host）+ <code>/opt/rocm/llvm/bin/clang++</code>（HIP）</td>
<td></td>
</tr>
<tr>
<td>CMake / Ninja</td>
<td><strong>cmake 4.4.4 + ninja 1.13.2</strong>（pip 装进 <code>.venv</code>）</td>
<td>系统 cmake 3.22 太老，fork 要求 ≥3.24</td>
</tr>
<tr>
<td>Python</td>
<td>3.11.6（venv）</td>
<td>serve 层需要 numpy/jinja2/psutil 等</td>
</tr>
</tbody>
</table>
<hr />
<h2>2. 安装（只讲 fork 本体）</h2>
<blockquote>
<p dir="auto">下面的步骤完全不依赖任何外部守护/门卫/代理，就是"把 fork 编出来、跑起来"。<br />
参考目录：<code>/data/llm/strata-rdna3</code>（源码 + build + .venv），引擎产物 <code>build/strata</code>。</p>
</blockquote>
<h3>2.1 前置条件</h3>
<pre><code class="language-bash">sudo apt install -y build-essential python3-venv   # 缺 ensurepip 时 venv 建不起来
ls /opt/rocm/bin/hipcc /opt/rocm/llvm/bin/clang++  # 系统 ROCm 已就位
</code></pre>
<p dir="auto">模型侧需要准备好（fork 不负责下载）：</p>
<ul>
<li>GGUF 第 1 个 shard（<code>--native</code> 与 <code>--ple-gguf</code> 都指它）</li>
<li>native pack（<code>tools/iq_pack.py --gguf &lt;shard1&gt; --out &lt;pack&gt;</code> 生成，含 <code>tokenizer/</code>）</li>
<li>MTP draft 目录（示例 <code>/data/llm/mtp/rt</code>）</li>
<li>expert profile（<code>data/expert-profile.bin</code>，与 slot 数匹配）</li>
<li>可选：视觉侧车 <code>strata-vision</code> + mmproj（fork 源码里<strong>不编</strong>这个 exe，见 §3.5）</li>
</ul>
<h3>2.2 取源码（必须用 PR #1，不能用分支头）</h3>
<pre><code class="language-bash">git clone https://github.com/nicejunjie/Strata-rdna3 /data/llm/strata-rdna3
cd /data/llm/strata-rdna3
git fetch origin refs/pull/1/head:pr1-avx2safe
git checkout pr1-avx2safe          # = ivanjiang5628:fix/avx2-safe-isa-probe, head 309f0c8f
</code></pre>
<p dir="auto"><strong>为什么必须这条 PR</strong>：fork 的 IQ3_S/IQ3_XXS 量化核按 <code>-mavx512f/-bw/-vl/-dq/-vnni/-vbmi</code> 编译，<br />
并把 IQ 查找表放在<strong>命名空间作用域</strong>初始化。在 AVX2-only 的 CPU 上，这个静态初始化会执行 AVX-512 指令<br />
→ 进程启动即 <strong>SIGILL</strong>。PR #1 把表初始化改成函数内 thread-safe static，并在 GCC 下让这些初始化/探针<br />
以"关闭 AVX-512"的方式编译；运行期仍然按 <code>cpu_avx512_ok()</code> 派发到对应核，AVX2 主机走 AVX2 回退。<br />
实测启动日志会明确写：</p>
<pre><code>strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows)
</code></pre>
<h3>2.3 Python 环境（cmake / ninja / serve 依赖）</h3>
<pre><code class="language-bash">cd /data/llm/strata-rdna3
python3 -m venv .venv
.venv/bin/pip install -U pip
.venv/bin/pip install -r requirements.txt     # 含 cmake 4.4.3、ninja、numpy、jinja2、psutil…
.venv/bin/cmake --version                     # 需要 ≥ 3.24
</code></pre>
<h3>2.4 rocWMMA（fork pin 的 headers）</h3>
<pre><code class="language-bash">curl -sL -o third_party/rocwmma.zip \
  https://github.com/ROCm/rocWMMA/archive/1ab208f49945c38626b79e3f0c284d65ac44a781.zip
unzip -q third_party/rocwmma.zip -d third_party/_unpack
mv third_party/_unpack/rocWMMA-1ab208f4* third_party/rocwmma
ls third_party/rocwmma/library/include/rocwmma/rocwmma.hpp
</code></pre>
<p dir="auto">不要图省事用 <code>/opt/rocm/include</code>（那是 ROCm 10.1 自带的版本，与 fork pin 的不同源）。</p>
<h3>2.5 配置与编译</h3>
<pre><code class="language-bash">R=/opt/rocm
export HIP_PLATFORM=amd ROCM_PATH=$R HIP_PATH=$R
.venv/bin/cmake -S . -B build -G Ninja \
  -DCMAKE_BUILD_TYPE=Release \
  -DSTRATA_ENABLE_HIP=ON \
  -DSTRATA_PREFILL_MMQ=ON \
  -DSTRATA_MMQ_KQUANTS=ON \
  -DCMAKE_HIP_ARCHITECTURES=gfx1100 \
  -DCMAKE_HIP_COMPILER=$R/llvm/bin/clang++ \
  -DCMAKE_HIP_COMPILER_ROCM_ROOT=$R \
  "-DCMAKE_HIP_FLAGS=--rocm-path=$R --rocm-device-lib-path=$R/lib/llvm/amdgcn/bitcode" \
  -DSTRATA_ROCWMMA_INCLUDE_DIR=$PWD/third_party/rocwmma/library/include \
  -DSTRATA_BUILD_TESTS=OFF
.venv/bin/cmake --build build -j8
./build/strata --version        # -&gt; strata 0.1.43
</code></pre>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>选项</th>
<th>作用</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>STRATA_ENABLE_HIP=ON</code></td>
<td>编 gfx1100（wave32）HIP 后端</td>
</tr>
<tr>
<td><code>STRATA_PREFILL_MMQ=ON</code></td>
<td>打开 GGML MMQ 的 prefill 路径（fork 的 prefill 提速主要来自这一族核）</td>
</tr>
<tr>
<td><code>STRATA_MMQ_KQUANTS=ON</code></td>
<td>编 Q4_K/Q5_K/Q5_1/Q6_K 的 MMQ 核；IQ3/IQ4 不受影响，但保持与预设一致</td>
</tr>
<tr>
<td><code>STRATA_ROCWMMA_INCLUDE_DIR</code></td>
<td>打开来自 xyzzing/Strata 的 WMMA QSA 选择路径（<code>STRATA_SELECT_WMMA</code> 用它）</td>
</tr>
<tr>
<td><code>CMAKE_HIP_ARCHITECTURES=gfx1100</code></td>
<td>只出本机目标，省编译时间</td>
</tr>
<tr>
<td><code>STRATA_BUILD_TESTS=OFF</code></td>
<td>不编测试套件（省一半时间）</td>
</tr>
</tbody>
</table>
<p dir="auto">实测代价：configure 约 99 s（会下载 pin 的 llama.cpp），<code>-j8</code> 编译 313 个目标约 4 分钟，目录合计 1.5 GB。</p>
<h3>2.6 运行</h3>
<p dir="auto">fork 的 API 层是自带的 <code>serve/server.py</code>（0.1.43），需要一个 JSON 配置：</p>
<pre><code class="language-jsonc">{
  "exe": "/data/llm/strata-rdna3/build/strata",
  "args": [
    "--pack", "/data/llm/packs/swift-iq3_s_abliterated",
    "--native", "/data/llm/models/…abliterated-IQ3_S-00001-of-00002.gguf",
    "--ple-gguf", "/data/llm/models/…abliterated-IQ3_S-00001-of-00002.gguf",
    "--expert-profile", "/data/llm/strata/data/expert-profile.bin",
    "--expert-cache", "auto",
    "--prefill", "auto", "--spec", "4", "--spec-min-p", "0.5",
    "--mtp", "/data/llm/mtp/rt", "--max-context", "262144", "--mtp-window", "4096",
    "--kv", "int8", "--vram-reserve-mib", "768",
    "--ple-io", "direct", "--stats", "--ple-row-cache", "1048576",
    "--kv-resident", "32768", "--pcie-frac", "0", "--pool-workers", "6",
    "--mtp-q4", "all", "--vision",
    "--conversation-cache-mib", "2048", "--conversation-cache-slots", "2",
    "--conversation-cache-min-tokens", "2000", "--conversation-cache-min-free-mib", "2048"
  ],
  "cwd": "/data/llm/strata",
  "tokenizer": "/data/llm/packs/swift-iq3_s_abliterated/tokenizer",
  "model_name": "swift-1.5-iq3_s",
  "log": "/data/llm/strata/strata-swift-iq3_s_abliterated.log",
  "lib_dirs": ["/opt/rocm/lib"],
  "port": 8080, "backend": "hip", "host": "0.0.0.0",
  "api_key": "&lt;把 key 写这里，或用 STRATA_API_KEY&gt;",
  "allowed_hosts": ["llm.shaneshou.eu.org"],
  "vision": {
    "exe": "/data/llm/strata/engine/strata-vision",
    "mmproj": "/data/llm/models/mmproj-Swift-Qwen3.8-Flash-Next-BF16.gguf",
    "model": "/data/llm/models/…abliterated-IQ3_S-00001-of-00002.gguf",
    "gpu": false, "max_tokens": 300, "threads": 6
  },
  "env": { /* 见 §3.1 的 42 个开关 */ }
}
</code></pre>
<p dir="auto">启动：</p>
<pre><code class="language-bash">cd /data/llm/strata
LD_LIBRARY_PATH=/opt/rocm/lib HSA_OVERRIDE_GFX_VERSION=11.0.0 \
  /data/llm/strata-rdna3/.venv/bin/python \
  /data/llm/strata-rdna3/serve/server.py --engine strata --config &lt;config.json&gt; --port 8080
</code></pre>
<p dir="auto">启动耗时：页面缓存热时约 <strong>45–50 秒</strong>；完全冷读那 46.84 GiB 专家 arena 时多约 <strong>25 秒</strong><br />
（日志 <code>loaded 46.84 GiB at 1.9 GiB/s</code>）。常驻内存约 <strong>55 GB</strong>，显存 <strong>25.7/24→ 接近占满</strong>（见 §5）。</p>
<h3>2.7 自检</h3>
<pre><code class="language-bash">curl -s http://127.0.0.1:8080/health
# {"status":"ok","max_context":262144,"model":"swift-1.5-iq3_s","images":true,"api_key":true,"loaded":true,…}

curl -s http://127.0.0.1:8080/metrics -H "Authorization: Bearer &lt;key&gt;" | python3 -m json.tool | head -40
# engine.version / pool_workers / expert_slots / kv_resident / conversation_cache_mib 都应等于配置值
</code></pre>
<p dir="auto">启动块里要能看到这几行（说明预设真的生效了）：</p>
<pre><code>this CPU has no AVX-512: the expert kernels run on AVX-2 …
loaded 46.84 GiB at 1.9x GiB/s
6 expert-pool workers + the host thread
expert cache 9286 slots, 17.6 GiB of VRAM
strata serve: prompt chunk auto: 32768 tokens, a 192-slot ring
prefill gemm: hipBLASLt tuning enabled (43 rows, gfx1100, version 100401)
strata: STRATA_HIP_WMMA: the prompt attention on matrix cores on (gfx1100)
</code></pre>
<hr />
<h2>3. 调优与参数</h2>
<h3>3.1 开关总表（fork 单卡预设，42 个环境变量）</h3>
<pre><code>GPU_MAX_HW_QUEUES=6                                 # ROCr 硬件队列
STRATA_HIP_WMMA=1 STRATA_SELECT_WMMA=1               # prompt attention + QSA 选择走 WMMA 矩阵核
STRATA_HC_UPMIX=1 STRATA_HEAD_MIX_MULTI=1            # hyper-connection / head mix 融合
STRATA_GR_RDNA=1 STRATA_GR_RDNA_Q8=1 STRATA_GR_RDNA_A8=1
STRATA_GR_FUSED=1 STRATA_GR_INJ_UP=1                 # RDNA hyper-connection int8/int8-act + fused down/up
STRATA_GDN_CHUNKED=1 STRATA_GDN_HEAD=1 STRATA_GDN_CONVL2=1
STRATA_GDN_NOY=1 STRATA_GDN_PP=1 STRATA_GDN_CHUNK_GDV=0   # chunked GDN 递推跑 FP16 矩阵核
STRATA_PF_FUSED=1 STRATA_PF_GEMM=1 STRATA_PF_F16=2
STRATA_PF_HCDOWN=1 STRATA_PF_PAD=1 STRATA_PF_GROUP_RES=1   # prompt 路径的融合/分块
STRATA_PREFILL_AUTO_MAX=32768 STRATA_PREFILL_RING=192
STRATA_PREFILL_CPU_SHARE=auto STRATA_PREFILL_CPU_SHARE_MAX=6144
STRATA_PREFILL_MMQ_TILE_ROWS=32                      # prompt 分块与 CPU/GPU 分工
# 另配命令行：--ple-io direct --ple-row-cache 1048576  # PLE 直读 + 行缓存
STRATA_QFUSE=1 STRATA_PA_FAST=1 STRATA_PA_KLDS=1 STRATA_KV_HOST_DMA=1
STRATA_COMBINE_CPU=1 STRATA_WAIT_FUSE=1 STRATA_ROUTE_PUBLISH=1 STRATA_VERIFY_QDEDUP=1
STRATA_RDNA_MMVQ_WAVE=3 STRATA_RDNA_Q6K=1 STRATA_STAGER_RING=64
STRATA_PEER_TRANSPORT=host STRATA_SH_STREAM=0
STRATA_HIPBLASLT_TUNING=&lt;repo&gt;/tools/hip/gfx1100-hipblaslt-100401.txt
</code></pre>
<p dir="auto">分组理解（按 fork README 的分类）：</p>
<ul>
<li><strong>WMMA 组</strong>：<code>STRATA_HIP_WMMA</code> / <code>STRATA_SELECT_WMMA</code> —— prompt 注意力与 QSA 选择走矩阵核，是 prefill 提升的主力。</li>
<li><strong>GDN 组</strong>：<code>STRATA_GDN_*</code> —— 把串行的门控递推改成分块矩阵乘。</li>
<li><strong>GR/fuse 组</strong>：<code>STRATA_GR_*</code> / <code>STRATA_WAIT_FUSE</code> / <code>STRATA_ROUTE_PUBLISH</code> / <code>STRATA_COMBINE_CPU</code> —— decode 侧的融合与同步削减。</li>
<li><strong>PF 组</strong>：<code>STRATA_PF_*</code> + <code>PREFILL_RING</code> + <code>CPU_SHARE*</code> —— prompt 的分块、CPU 参与度和流水线环深度。</li>
</ul>
<p dir="auto">这套值是 fork 作者在 <strong>Ryzen 9 3900X + 125 GiB</strong> 上量出来的，本机几乎照抄即可，<strong>只有 <code>--pool-workers</code> 必须改</strong>。</p>
<h3>3.2 关键调优：<code>--pool-workers</code> 必须按物理核算</h3>
<p dir="auto">帖子用 <code>--pool-workers 12</code>（他那台 3900X 是 12 物理核，1:1）。本机只有 6 物理核，照抄后引擎日志是：</p>
<pre><code>12 pool workers on logical processors 1,2,3,4,5, the host thread on 0     ← 12 个 worker 挤在 5 个逻辑核上
</code></pre>
<p dir="auto">后果是 <strong>decode 掉 25%</strong>（TG 70.2 → 95–101），而 <strong>prefill 几乎不受影响</strong>（长批次吞吐型）。实测（同机同日、每改一次重启）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:right"><code>--pool-workers</code></th>
<th style="text-align:right">prefill@32K</th>
<th style="text-align:right">decode@32K</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:right">12（照抄帖子）</td>
<td style="text-align:right">3,466 tok/s</td>
<td style="text-align:right">70.2 tok/s</td>
</tr>
<tr>
<td style="text-align:right"><strong>6（本机取值）</strong></td>
<td style="text-align:right">3,474 tok/s</td>
<td style="text-align:right"><strong>95.2 tok/s</strong></td>
</tr>
<tr>
<td style="text-align:right">5</td>
<td style="text-align:right">—</td>
<td style="text-align:right">102.7 tok/s（短 prompt 口径，与 6 在误差内）</td>
</tr>
</tbody>
</table>
<p dir="auto">规则：<strong>pool workers ≈ 物理核数</strong>（SMT 不翻倍），host 线程另算。</p>
<h3>3.3 tuning 表必须和 hipBLASLt 配对</h3>
<p dir="auto">引擎按 (架构, hipBLASLt 版本) 双条件校验表，不匹配就<strong>直接丢弃</strong>、退回普通 hipBLAS（prefill 会掉一大截）。<br />
本机 hipBLASLt 1.4.x →<code>gfx1100-hipblaslt-**100401**.txt</code>。fork 六套自带 config 里写的是 <code>100200</code><br />
（配它 pin 的 TheRock ROCm 7.10 轮子），抄到本机会失效。启动日志确认方式：</p>
<pre><code>prefill gemm: hipBLASLt tuning enabled (43 rows, gfx1100, version 100401)
</code></pre>
<h3>3.4 显存 / 内存预算（本机实测）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>专家 arena（host RAM）</td>
<td>46.84 GiB</td>
<td>默认全部常驻 pinned RAM</td>
</tr>
<tr>
<td>进程 RSS</td>
<td>约 55 GB</td>
<td>62 GB 机器上只剩 5–7 GB 给别的东西</td>
</tr>
<tr>
<td>显存</td>
<td>25.7 / 25.75 GiB</td>
<td><code>--kv-resident 32768</code> + <code>--ple-row-cache 1048576</code> 之后只剩 ~350–600 MiB</td>
</tr>
<tr>
<td>启动后的空闲显存</td>
<td>346–606 MiB</td>
<td>低于 <code>--vram-reserve-mib</code> 时引擎会按请求打警告（可接受）</td>
</tr>
<tr>
<td>会话停放缓存</td>
<td><strong>2048 MiB / 2 槽</strong>（预设原值 6144/3）</td>
<td>本机 RAM 不够；超长会话不再 park，只影响切回旧会话的速度</td>
</tr>
</tbody>
</table>
<p dir="auto">相关参数：</p>
<ul>
<li><code>--kv-resident 32768</code>：把 262144 个 KV cell 中的 32768 常驻显存，其余留在 pinned RAM（3.09 GiB）。这是 decode 的关键项。</li>
<li><code>--vram-reserve-mib</code>：本机取 768（预设 512）。给视觉侧车和驱动留余量；代价是少约 130 个专家槽（1.4%）。</li>
<li><code>--conversation-cache-*</code>：host RAM 的会话停放，按 §3.4 的值给，别照抄 6144/3，否则会和 55 GB 常驻一起把内存吃穿。</li>
</ul>
<h3>3.5 视觉（vision）怎么做</h3>
<p dir="auto">fork 0.1.43 的 CMake <strong>没有</strong> <code>strata-vision</code> 目标，但它的 <code>serve/server.py</code> 完整支持视觉侧车协议<br />
（stdin 的 <code>ENC &lt;image&gt; &lt;out&gt;</code>、stdout 的 <code>READY</code>）。因此可以<strong>复用</strong>另一份安装编出的 <code>strata-vision</code>：</p>
<pre><code class="language-jsonc">"args": [ …, "--vision" ],
"vision": { "exe": "/path/to/strata-vision", "mmproj": "…mmproj…gguf", "model": "…shard1…gguf",
            "gpu": false, "max_tokens": 300, "threads": 6 }
</code></pre>
<p dir="auto">本机实测（用 0.2.7 编的 <code>strata-vision</code> 配 fork 引擎）可以正常识图：发一张红方块+蓝圆形的 PNG，<br />
返回「一个红色正方形和一个蓝色圆形」。注意 <code>--vision</code> 必须显式写进 <code>args</code>，否则 serve 里有兜底逻辑会补，<br />
但配置里若只有 <code>vision</code> 段而无 <code>--vision</code>，旧版本会报 "started without the vision encoder"。</p>
<h3>3.6 实测过、确认无效或不要做的</h3>
<ul>
<li><strong><code>--resident-experts</code></strong>：默认模式本来就把全部专家常驻 RAM，加了是退化（历史实测 1,093 vs 1,504 tok/s）。</li>
<li><strong><code>STRATA_SCORES_THREAD</code></strong>：0.1.44+ 才有的开关，fork（0.1.43）源码 0 命中，设了静默无效。</li>
<li><strong>调 GPU 频率/功耗上限</strong>：decode 期间 <code>pp_dpm_sclk</code> 始终在最高档（2482–2549 MHz）、温度 56–57 °C、<code>gpu_busy=100%</code>，<br />
不是瓶颈；<code>gpu-power-limit.service</code> 把上限压到 294 W（默认 327 W）也未影响结果。</li>
<li><strong>CPU boost</strong>：本机 <code>/sys/devices/system/cpu/cpufreq/boost = 0</code>，CPU 卡在 ~3.95 GHz。这是<strong>尚未利用的余量</strong>，<br />
可在测完后另行评估（改它属于系统级调优，不在本文范围）。</li>
</ul>
<hr />
<h2>4. 性能测试</h2>
<h3>4.1 方法</h3>
<ul>
<li>协议来自 fork 的 PR 基准与官方 <code>bench_prefill.py</code>：<strong>256 token 输出</strong>、<code>temperature=0</code>、<code>top_k=1</code>、<code>top_p=1</code>、<br />
<code>min_p=0</code>、<code>seed=42</code>、关闭思考（<code>reasoning_effort=none</code>）、<strong>串行单请求</strong>。</li>
<li>每一档：<strong>1 发同尺寸暖机 + 1 发测量</strong>（用户要求每档只测一次；暖机是为了避免"最先测的那档吃到最冷的<br />
expert cache"，导致看起来长 prompt 更快）。</li>
<li>数字全部取<strong>引擎自己返回的</strong> <code>timings.prompt_per_second</code>（PP）与 <code>timings.predicted_per_second</code>（TG），<br />
不依赖客户端计时。</li>
<li>每发用不同随机盐生成全新文本，校验 <code>cache_n == 0</code>（无前缀复用）。</li>
<li>256K 档受 <code>max-context 262144</code> 限制，实测 prompt 260,002 token（还要留 256 个输出位）。</li>
<li>脚本：<code>/data/llm/strata-rdna3/sweep.py</code>，原始结果 <code>/data/llm/strata-rdna3/sweep-20261029.json</code>。</li>
</ul>
<h3>4.2 结果（fork，本次实测）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>档位</th>
<th style="text-align:right">prompt tokens</th>
<th style="text-align:right">prefill (PP)</th>
<th style="text-align:right">decode (TG)</th>
<th style="text-align:right">草稿命中</th>
<th style="text-align:right">墙钟</th>
</tr>
</thead>
<tbody>
<tr>
<td>32K</td>
<td style="text-align:right">32,045</td>
<td style="text-align:right"><strong>3,511.0 tok/s</strong></td>
<td style="text-align:right"><strong>100.6 tok/s</strong></td>
<td style="text-align:right">166/212</td>
<td style="text-align:right">11.7 s</td>
</tr>
<tr>
<td>64K</td>
<td style="text-align:right">64,038</td>
<td style="text-align:right"><strong>3,570.5 tok/s</strong></td>
<td style="text-align:right"><strong>106.6 tok/s</strong></td>
<td style="text-align:right">168/205</td>
<td style="text-align:right">20.4 s</td>
</tr>
<tr>
<td>128K</td>
<td style="text-align:right">131,056</td>
<td style="text-align:right"><strong>3,601.0 tok/s</strong></td>
<td style="text-align:right"><strong>101.2 tok/s</strong></td>
<td style="text-align:right">161/221</td>
<td style="text-align:right">39.0 s</td>
</tr>
<tr>
<td>256K</td>
<td style="text-align:right">260,002</td>
<td style="text-align:right"><strong>3,336.2 tok/s</strong></td>
<td style="text-align:right"><strong>95.5 tok/s</strong></td>
<td style="text-align:right">168/204</td>
<td style="text-align:right">80.8 s</td>
</tr>
</tbody>
</table>
<p dir="auto">引擎原始日志（可直接核对）：</p>
<pre><code>prompt  32045 tokens = 0 reused + 32045 read in  … ms (3511.0 tok/s), 256 generated (100.6 tok/s)
prompt  64038 tokens = 0 reused + 64038 read in  … ms (3570.5 tok/s), 256 generated (106.6 tok/s)
prompt 131056 tokens = 0 reused + 131056 read in 36395 ms (3600.9 tok/s), 256 generated in 2529 ms (101.2 tok/s)
prompt 260002 tokens = 0 reused + 260002 read in 77933 ms (3336.2 tok/s), 256 generated in 2679 ms ( 95.5 tok/s)
</code></pre>
<h3>4.3 与原版（baseline）对比</h3>
<p dir="auto">baseline 只有 32K 档（原版 engine <strong>0.1.52</strong>、同一台机器、同一模型、2026-10-09 实测）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>32K 档</th>
<th style="text-align:right">prefill</th>
<th style="text-align:right">decode</th>
<th>数据来源</th>
</tr>
</thead>
<tbody>
<tr>
<td>原版 0.1.52，裸基线</td>
<td style="text-align:right">1,502 tok/s</td>
<td style="text-align:right">~67 tok/s</td>
<td>2026-10-09 实测</td>
</tr>
<tr>
<td>原版 0.1.52 + 当日优化包</td>
<td style="text-align:right">1,696 tok/s</td>
<td style="text-align:right">~70 tok/s</td>
<td>同上（<code>auto:32768</code> + <code>PF_FUSED/GEMM/SWITCH_MIN_T</code> + <code>spec-min-p 0.7</code>）</td>
</tr>
<tr>
<td><strong>fork 0.1.43 + 本文预设</strong></td>
<td style="text-align:right"><strong>3,511 tok/s</strong></td>
<td style="text-align:right"><strong>100.6 tok/s</strong></td>
<td>2026-10-29 本次</td>
</tr>
</tbody>
</table>
<ul>
<li>prefill：<strong>2.07×</strong>（对裸基线 <strong>2.34×</strong>）</li>
<li>decode：<strong>1.44×</strong></li>
</ul>
<p dir="auto">作为横向参考，PR 作者在自己那台（Ryzen 9 3900X / 125 GiB / 同样单卡 7900 XTX）上测得<br />
32K <strong>3,529 tok/s / 88.1 tok/s</strong>；本机 prefill 达到其 <strong>99.5%</strong>，decode 更优（100.6 vs 88.1）。</p>
<h3>4.4 数据怎么读</h3>
<ol>
<li><strong>prefill 随长度先升后降</strong>：32K→128K 从 3,511 涨到 3,601（请求固定开销被摊薄、分块更满），<br />
到 256K 回落到 3,336（KV 只有 32768 个 cell 常驻显存，更长的上下文要流式搬 KV）。</li>
<li><strong>decode 随长度缓降</strong>：32K/64K 在 100–107 之间，128K 101，256K 95.5 —— 上下文越长，每 token 要读的 KV 越多。</li>
<li><strong>草稿命中率稳定在 75–82%</strong>（166/212 … 168/204），说明 MTP 抽头在长上下文下没有退化。</li>
<li>这些是<strong>吞吐</strong>数字，不是质量结论：WMMA/GDN/GR 路径用 FP16 操作数、改了舍入，fork 自己也声明<br />
"Do not infer model quality from kernel parity or throughput measurements"。真实任务质量需另行验证。</li>
</ol>
<hr />
<h2>5. 已知限制与注意事项</h2>
<ol>
<li><strong>非 bitwise 等价</strong>：融合核改变舍入，速度可信、质量要另测。</li>
<li><strong>显存几乎占满</strong>：25.7/25.75 GiB，空闲 350–600 MiB，低于配置的 512/768 MiB 保留，引擎会按请求打警告。<br />
想跑更长会话要下调 <code>--kv-resident</code> 或抬 <code>--vram-reserve-mib</code>（两者互相挤）。</li>
<li><strong>内存紧张</strong>：常驻 55 GB / 62 GB。<strong>同一台机器不能再跑第二个实例</strong>；会话停放缓存只能给 2048 MiB。</li>
<li><strong>fork 0.1.43 的 API 层比 0.2.x 少两个端点</strong>：<code>/v1/images/generations</code>、<code>/v1/telemetry</code>；<br />
聊天/补全/Anthropic messages/responses/models/status/health/metrics/mcp/props/slots 都有。<br />
<strong>不能用 0.2.x 的 <code>serve/server.py</code> 去驱动 0.1.43 引擎</strong>（实测启动死锁：引擎在 <code>pipe_read</code> 等命令，<br />
新版 serve 在等旧引擎不会打印的就绪标记）。</li>
<li><strong>别用 SIGKILL 杀引擎</strong>：实测会在 amdgpu 里留下孤儿内存（曾出现 23.9 GB 匿名页 + 5.94 GiB 显存无法回收，<br />
只能重启；<code>amdgpu_gpu_recover</code> 写入会报 I/O error）。用 SIGTERM/正常 stop。</li>
<li><strong>AVX2-only 必须走 PR #1</strong>：用分支头会在启动时 SIGILL。</li>
<li>PCIe 只跑在 3.0 x16（主板限制）——本机 prefill 仍达到参考机器的 99.5%，说明该链路不是当前瓶颈。</li>
</ol>
<hr />
<h2>6. 复现命令清单</h2>
<pre><code class="language-bash"># 1) 源码（PR #1）
git clone https://github.com/nicejunjie/Strata-rdna3 /data/llm/strata-rdna3
cd /data/llm/strata-rdna3 &amp;&amp; git fetch origin refs/pull/1/head:pr1-avx2safe &amp;&amp; git checkout pr1-avx2safe

# 2) 工具链
python3 -m venv .venv &amp;&amp; .venv/bin/pip install -U pip &amp;&amp; .venv/bin/pip install -r requirements.txt

# 3) rocWMMA（pin）
curl -sL -o third_party/rocwmma.zip https://github.com/ROCm/rocWMMA/archive/1ab208f49945c38626b79e3f0c284d65ac44a781.zip
unzip -q third_party/rocwmma.zip -d third_party/_unpack &amp;&amp; mv third_party/_unpack/rocWMMA-1ab208f4* third_party/rocwmma

# 4) 编译（见 §2.5 的完整 cmake 命令），产物 ./build/strata

# 5) 起服务（见 §2.6：config.json + serve/server.py）

# 6) 测速（本次 32/64/128/256K 用的脚本）
python3 /data/llm/strata-rdna3/sweep.py            # 结果写 sweep-20261029.json
BENCH_BASE=http://127.0.0.1:8080 BENCH_MODEL=swift-1.5-iq3_s \
  python3 /data/llm/strata-rdna3/bench.py          # 32K、warmup+3 发的中位协议
</code></pre>
]]></description><link>https://lcz.me/topic/2671</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 10:07:51 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2671.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Oct 2026 20:18:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Sat, 07 Nov 2026 16:14:18 GMT]]></title><description><![CDATA[<p dir="auto">作业已经抄完了。<br />
三处按本机硬件适配（其余照抄）</p>
<ul>
<li>--pool-workers 49：本机 50 物理核，帖子规则是“≈物理核数、host 线程另算”</li>
<li>--conversation-cache 16384/8：本机 115GB 内存；帖子用 2048/2 是因为其机器只有 62GB</li>
<li>hipBLASLt 表用 100200：本机无系统 ROCm 10.1，只有 venv 内 TheRock ROCm 7.10；100401 表选了会被静默丢弃<br />
实测（256 token 输出、cache_n=0、稳态）<br />
档位     prefill      decode     草稿接受      帖子参考<br />
32K      3,257        128.3      75%           3,511 / 100.6<br />
64K      3,372        125.3      72%           3,571 / 106.6<br />
128K     3,249        100.6      69%           3,601 / 101.2<br />
256K     3,132         82.2      68%           3,336 / 95.5<br />
对比改造前官方 0.1.57：32K prefill +14.9%、decode +6.6%；128K prefill +3.5%。</li>
</ul>
]]></description><link>https://lcz.me/post/31801</link><guid isPermaLink="true">https://lcz.me/post/31801</guid><dc:creator><![CDATA[拐子001]]></dc:creator><pubDate>Sat, 07 Nov 2026 16:14:18 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Sat, 07 Nov 2026 08:17:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/data-wu" aria-label="Profile: Data-Wu">@<bdi>Data-Wu</bdi></a>  这是什么平台，预填充站上3700，解码站上170？</p>
]]></description><link>https://lcz.me/post/31711</link><guid isPermaLink="true">https://lcz.me/post/31711</guid><dc:creator><![CDATA[M1560015]]></dc:creator><pubDate>Sat, 07 Nov 2026 08:17:29 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Sat, 07 Nov 2026 08:15:11 GMT]]></title><description><![CDATA[<p dir="auto">调优完毕，确实提升明显！<br />
<img src="https://upload.lcz.me/uploads/0d6fce88-8398-4ba1-8e48-6fe44ed830f1.png" alt="Img20261107111917608.png" class="img-markdown  img-fluid" /><br />
<img src="https://upload.lcz.me/uploads/3d352018-5124-4a0f-960e-89ceafdaf04c.png" alt="ScreenShot_2026-11-07_111839_908.png" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/post/31708</link><guid isPermaLink="true">https://lcz.me/post/31708</guid><dc:creator><![CDATA[M1560015]]></dc:creator><pubDate>Sat, 07 Nov 2026 08:15:11 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Sat, 07 Nov 2026 04:36:36 GMT]]></title><description><![CDATA[<p dir="auto">x99 - 7900xtx 实测提速很多 感谢分享</p>
]]></description><link>https://lcz.me/post/31677</link><guid isPermaLink="true">https://lcz.me/post/31677</guid><dc:creator><![CDATA[Grayson Ren]]></dc:creator><pubDate>Sat, 07 Nov 2026 04:36:36 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Tue, 03 Nov 2026 02:34:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E6%9D%8E%E9%87%8E%E7%81%AB" aria-label="Profile: 李野火">@<bdi>李野火</bdi></a> 是的Qwen3.8-Flash-Next IQ3_S</p>
]]></description><link>https://lcz.me/post/30675</link><guid isPermaLink="true">https://lcz.me/post/30675</guid><dc:creator><![CDATA[kuntask]]></dc:creator><pubDate>Tue, 03 Nov 2026 02:34:34 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Mon, 02 Nov 2026 23:48:49 GMT]]></title><description><![CDATA[<p dir="auto">根据你文章复现了一下，速度挺快，就是经常报错，不知道是不是推理引擎有不过麻烦帮忙看看，这是ai分析的结论：</p>
<p dir="auto">找到具体错误了：Strata 在生成阶段的第 36 层 verification 超时，释放 GPU 等待后又等了 5 秒，GPU 仍未完成，于是引擎被终止，当前请求返回 error；随后 Python 服务自动重载引擎并恢复。</p>
<p dir="auto">这次不是单纯的 Codex 连接超时。另外，我之前的停机保护只监视 engine.log，而这条致命错误写在 lan-server.log，因此漏掉了它。我会补齐这处检测，并继续核对错误发生时间附近的内存和驱动记录。</p>
<p dir="auto">-----------主机配置<br />
机箱：DELL T7960 2200W工作站 机箱<br />
处理器：INTEL W7-3565X CPU(82.5MB 缓存, 32核, 64线程,睿频至高可达 4.8GHz Turbo 335W)<br />
内存：2条DELL 32G DDR5 5600RECC内存<br />
硬盘：DELL 1T M.2 NVME固态硬盘（ M.2 PCIe 固态转转接卡）+DELL 4T 3.5英寸 5.4K SATA机械硬盘<br />
其他：DELL 电源线，国标16A转C19，1.5米<br />
附加固态硬盘：致钛tipro900 4t+tiplus 900 4t<br />
显卡：rtx 4090d 48g</p>
]]></description><link>https://lcz.me/post/30643</link><guid isPermaLink="true">https://lcz.me/post/30643</guid><dc:creator><![CDATA[zzsoszz]]></dc:creator><pubDate>Mon, 02 Nov 2026 23:48:49 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Mon, 02 Nov 2026 10:14:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kuntask" aria-label="Profile: kuntask">@<bdi>kuntask</bdi></a> 你跑的是什么模型，Qwen3.8-Flash-Next IQ3_S吗？</p>
]]></description><link>https://lcz.me/post/30548</link><guid isPermaLink="true">https://lcz.me/post/30548</guid><dc:creator><![CDATA[李野火]]></dc:creator><pubDate>Mon, 02 Nov 2026 10:14:43 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Sat, 31 Oct 2026 15:02:15 GMT]]></title><description><![CDATA[<p dir="auto">偷偷说一下，strata的最新版本0.1.55版本已经将RDNA3 fork的43个开关中的21个开关合并到了主版本，这是我单卡7900xtx的得分，环境是e5-2660v4，96G ddr4（4通道2400），单7900xtx，ml110gen9主板+nvme</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/5c9faa35-62e3-4ab9-ab31-a69465cb28cd.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" /></p>
<p dir="auto">目前主版本跟fork的区别只有 decode了，我主版本是103tokens（均值） ，而fork的版本是142tokens(均值）<br />
大模型给出的结论是内核的原因</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/74f3dc72-b519-4c60-bd06-b6dc92441a6a.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/post/29902</link><guid isPermaLink="true">https://lcz.me/post/29902</guid><dc:creator><![CDATA[kuntask]]></dc:creator><pubDate>Sat, 31 Oct 2026 15:02:15 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Fri, 30 Oct 2026 18:17:20 GMT]]></title><description><![CDATA[<p dir="auto">戰況更新 - 單卡RX7900XTX，系統記憶體64GB DDR5<br />
Windows HIP下的prefill chunk沒辦法開到32K，我這邊觀察到專家都被 purge 掉， SSD讀寫量異常高<br />
目前是設定--prefill 7168<br />
// #1630: Windows HIP, RX 7900 XTX: a first long prompt at 8192-token chunks<br />
// charged ~70 GB of commit and killed the engine; 7500 and below were flat.<br />
// A bare auto stops at 6144; a chunk the user names stays.</p>
<p dir="auto">我請Antigravity去編譯了C++補丁，順利在Windows下跑起來，以下是Gemini的原話，總共在我的環境做了這些事<br />
<em><strong>STRATA_QFUSE=1：原始碼中完全內建（src/kernels/cuda/rdna_gr.cu 中的 q8_tail 量化融合，甚至被設為 RDNA3 的架構預設值！）。<br />
STRATA_HIP_WMMA=1 &amp; STRATA_SELECT_WMMA=1：啟用 7900 XTX 矩陣核心。<br />
STRATA_GDN_CHUNKED=1：GDN 分塊循迴運算。<br />
STRATA_PF_FUSED=1 &amp; STRATA_PF_GEMM=1：Prefill 矩陣融合運算。<br />
--prefill 7168 安全分塊：徹底防範 Windows HIP 記憶體洩漏與 SSD 讀取死鎖。<br />
"parallel": 1 獨佔單 Slot：釋放 1.0 GB VRAM，使 GPU 專家快取擴張至 11,798 槽位（比官方的 11,484 還多了 314 個！）。</strong></em></p>
<p dir="auto">目前Decode來到97 tok/s，prefill達到1118.8 tok/s，提升巨大，跑Hermes有感提升<br />
還好當初有乖乖聽up主的話入手7900XTX，這買賣不虧，從Strata橫空出世以來，已經幫我幹了不少活...<br />
<img src="https://upload.lcz.me/uploads/3d978d95-ae00-46cc-95d1-0b00307b2605.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" /></p>
<p dir="auto">Hermes自己測試的結果 (一致)<br />
<img src="https://upload.lcz.me/uploads/5bff8aa2-f2d0-4980-a1be-7f9709b3e65e.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/post/29599</link><guid isPermaLink="true">https://lcz.me/post/29599</guid><dc:creator><![CDATA[James Pang]]></dc:creator><pubDate>Fri, 30 Oct 2026 18:17:20 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Fri, 30 Oct 2026 16:02:41 GMT]]></title><description><![CDATA[<p dir="auto">我這邊正在進行測試，但我是Windows 11<br />
我的Strata是託管在Antigravity下面，是IQ2，64K上下文，單卡RX7900XTX 24GB<br />
Prefill提升巨大，但decode持平，主因是有一個補丁目前Windows沒有下面這些補丁，我看看能不能重新編譯windows版本的出來用<br />
├── src/kernels/cuda/rdna_gr.cu          &lt;-- 【最核心】RDNA3 硬體級底層彙編優化<br />
├── src/kernels/cuda/fused_gr.cu         &lt;-- 殘差連結 (Hyper-Connection) 算子融合<br />
├── src/kernels/cpu/iq_avx512.cpp        &lt;-- PR #1 修復：AVX2 CPU 啟動防崩潰補丁<br />
└── src/core/layer.cpp                   &lt;-- 引擎調度層：註冊 STRATA_GR_RDNA 開關<br />
<img src="https://upload.lcz.me/uploads/0e529c3c-3a25-490b-a77c-6f6a1842a986.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" /><br />
<img src="https://upload.lcz.me/uploads/fcd4d116-d2d5-4add-82c1-432420c0a08e.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/post/29588</link><guid isPermaLink="true">https://lcz.me/post/29588</guid><dc:creator><![CDATA[James Pang]]></dc:creator><pubDate>Fri, 30 Oct 2026 16:02:41 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 16:50:35 GMT]]></title><description><![CDATA[<p dir="auto">抄作業中!先推一個</p>
]]></description><link>https://lcz.me/post/29252</link><guid isPermaLink="true">https://lcz.me/post/29252</guid><dc:creator><![CDATA[CHIA AN YANG]]></dc:creator><pubDate>Thu, 29 Oct 2026 16:50:35 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 16:18:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applejuice" aria-label="Profile: applejuice">@<bdi>applejuice</bdi></a>   估计15000左右</p>
]]></description><link>https://lcz.me/post/29246</link><guid isPermaLink="true">https://lcz.me/post/29246</guid><dc:creator><![CDATA[rongda weng]]></dc:creator><pubDate>Thu, 29 Oct 2026 16:18:25 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 16:14:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mudfox" aria-label="Profile: mudfox">@<bdi>mudfox</bdi></a> 出了多少？ 我都想买</p>
]]></description><link>https://lcz.me/post/29245</link><guid isPermaLink="true">https://lcz.me/post/29245</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Thu, 29 Oct 2026 16:14:43 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 16:14:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rongda-weng" aria-label="Profile: rongda-weng">@<bdi>rongda-weng</bdi></a> fp8 算力不可忽视，新架构有优势</p>
]]></description><link>https://lcz.me/post/29244</link><guid isPermaLink="true">https://lcz.me/post/29244</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Thu, 29 Oct 2026 16:14:02 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 16:04:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applejuice" aria-label="Profile: applejuice">@<bdi>applejuice</bdi></a> 7900XTX 带宽高</p>
]]></description><link>https://lcz.me/post/29242</link><guid isPermaLink="true">https://lcz.me/post/29242</guid><dc:creator><![CDATA[rongda weng]]></dc:creator><pubDate>Thu, 29 Oct 2026 16:04:52 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 15:41:34 GMT]]></title><description><![CDATA[<p dir="auto">我要抄作业了，感谢分享</p>
]]></description><link>https://lcz.me/post/29233</link><guid isPermaLink="true">https://lcz.me/post/29233</guid><dc:creator><![CDATA[tom23]]></dc:creator><pubDate>Thu, 29 Oct 2026 15:41:34 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 13:55:05 GMT]]></title><description><![CDATA[<p dir="auto">提升非常大，用了1个小时AI去配置。<br />
抄作业结果</p>
<p dir="auto">fork 明显更快（prefill 2 倍、agent 循环 1.76 倍）</p>
<p dir="auto">实测已经全部完成，数据写进运维手册第 9 节了。下面是优化前 vs 优化后的完整对比。</p>
<ol>
<li>
<p dir="auto">prefill：处理长提示词（tok/s，越高越好）<br />
提示词长度	优化前 0.1.45 原配置	0.1.45 只把块调到 32K	fork RDNA3<br />
1 万 token	1,019	1,263（+24%）	2,090（+105%）<br />
8 万 token	1,281	1,429（+12%）	3,129（+144%）<br />
三次重复测量误差仅 ±0.3%（1,018.7 / 1,019.4 / 1,021.5），这组数字很硬。 关键结论：光把 prefill 块从 8192 调到 32768 只拿到 +24%/+12%，剩下的大头是 fork 的 RDNA3 内核真本事——我专门做了这个隔离实验，否则会把功劳记错。</p>
</li>
<li>
<p dir="auto">decode：生成速度（tok/s，固定 seed、6 次中位数）<br />
优化前	优化后	提升<br />
短提示	66.5	74.1	+11.4%<br />
3.2 万 token 提示	64.1	77.4	+20.7%</p>
</li>
<li>
<p dir="auto">真实 agent 循环（12 轮，每轮追加约 830 token，上下文涨到 2.68 万）<br />
优化前	优化后	倍数<br />
首轮冷 prefill	15.12 s	8.01 s	1.89×<br />
稳态每轮	2.70 s	1.59 s	1.70×<br />
12 轮总计	46.37 s	26.32 s	1.76×<br />
这个才是你日常体感对应的场景（大部分请求是"恢复检查点 + 追加一小段"）。</p>
</li>
<li>
<p dir="auto">一个重要的反向验证<br />
我担心 fork 缺 --prompt-cache-spread（0.1.45 有，是我上次修长任务缓存抖动的开关），专门测了缓存命中：两边逐条完全相同（cached token 数 8396 / 28551 / 75576 一模一样）。所以这个差异在本机测不出影响，不是迁移障碍。</p>
</li>
<li>
<p dir="auto">折算到你那个 140 步长任务<br />
按之前统计的成本结构（prompt 读 5.12 h + decode 15.32 h = 20.4 h）：</p>
</li>
</ol>
<p dir="auto">prompt 部分：5.12 h → 约 2.3 h<br />
decode 部分：15.32 h → 约 13.4 h（decode 只快 12-16%，且它占 75%）<br />
合计约 20.4 h → 15.7 h，省 23%<br />
也就是说：prefill 快 2 倍多非常可观，但你的长任务瓶颈其实在生成 token 数，换引擎能省四分之一，真正的大头还是要靠少生成。</p>
<ol start="6">
<li>现在的状态<br />
fork 正在跑（strata-fork.service），strata.service 已停止但仍是开机默认<br />
所以现在重启会回到 0.1.45，不会留下半吊子状态<br />
回滚一条命令：systemctl stop strata-fork &amp;&amp; systemctl start strata<br />
0.1.45 的配置我也加了 --prefill auto:32768（白捡 +24%/+12%，无代价），备份在 strata-iq3_s.json.before-prefill32k<br />
代价：fork 是 0.1.43（比 0.1.45 旧）、没编译 vision（源码在 tools/vision/strata_vision.cpp，需要时能补编）、多占 16 GB 源码。</li>
</ol>
]]></description><link>https://lcz.me/post/29209</link><guid isPermaLink="true">https://lcz.me/post/29209</guid><dc:creator><![CDATA[yi song]]></dc:creator><pubDate>Thu, 29 Oct 2026 13:55:05 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 13:33:35 GMT]]></title><description><![CDATA[<p dir="auto">我怎么感觉性能已经超过 3090了</p>
]]></description><link>https://lcz.me/post/29199</link><guid isPermaLink="true">https://lcz.me/post/29199</guid><dc:creator><![CDATA[gao Gao]]></dc:creator><pubDate>Thu, 29 Oct 2026 13:33:35 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 12:30:26 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://upload.lcz.me/uploads/ef624ec3-6ce9-43a2-96f5-633d80a96b2e.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" /><br />
实际跑了一下，对比官方提升巨大，值得升级。</p>
]]></description><link>https://lcz.me/post/29169</link><guid isPermaLink="true">https://lcz.me/post/29169</guid><dc:creator><![CDATA[Data Wu]]></dc:creator><pubDate>Thu, 29 Oct 2026 12:30:26 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 12:06:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/simon-li-0" aria-label="Profile: Simon-Li-0">@<bdi>Simon-Li-0</bdi></a> 好的，我这两天做个帖子，可以来抄作业。</p>
]]></description><link>https://lcz.me/post/29162</link><guid isPermaLink="true">https://lcz.me/post/29162</guid><dc:creator><![CDATA[懒人烘培]]></dc:creator><pubDate>Thu, 29 Oct 2026 12:06:16 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 10:38:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applejuice" aria-label="Profile: applejuice">@<bdi>applejuice</bdi></a> 哈哈， 卖掉 9700 买 7900 搞不懂， 这不是负优化么？</p>
]]></description><link>https://lcz.me/post/29130</link><guid isPermaLink="true">https://lcz.me/post/29130</guid><dc:creator><![CDATA[johnnybegood]]></dc:creator><pubDate>Thu, 29 Oct 2026 10:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 09:57:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E6%87%92%E4%BA%BA%E7%83%98%E5%9F%B9" aria-label="Profile: 懒人烘培">@<bdi>懒人烘培</bdi></a><br />
哥，能给兄弟们单出一篇帖子吗？我让deepseek抄作业，一直抄不明白，就卡在5000死活上不去了</p>
]]></description><link>https://lcz.me/post/29115</link><guid isPermaLink="true">https://lcz.me/post/29115</guid><dc:creator><![CDATA[Simon Li 0]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:57:48 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 09:35:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mudfox" aria-label="Profile: mudfox">@<bdi>mudfox</bdi></a> 怎么r9700 卖掉？ 现在应该最强amd 消费级卡</p>
]]></description><link>https://lcz.me/post/29101</link><guid isPermaLink="true">https://lcz.me/post/29101</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:35:26 GMT</pubDate></item><item><title><![CDATA[Reply to 神了， 7900xtx 单卡prefill 3,570 tok/s  decode 106.6 tok/s,   Strata RDNA3 fork：安装、调优与 32K–256K 性能实测 on Thu, 29 Oct 2026 09:26:54 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f525.png?v=5be5614064c" class="not-responsive emoji emoji-android emoji--fire" style="height:1.4em;width:auto;vertical-align:middle" title="🔥" alt="🔥" /> 本帖参与讨论人数已达 <strong>10+</strong>，入选<strong>热议</strong>，作者 <strong>+3 积分</strong>奖励！</p>
<blockquote>
<p dir="auto">奖励凭证：热议 +3 分 · 编号 h2671-546-1</p>
</blockquote>
]]></description><link>https://lcz.me/post/29087</link><guid isPermaLink="true">https://lcz.me/post/29087</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Thu, 29 Oct 2026 09:26:54 GMT</pubDate></item></channel></rss>