<?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[移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！]]></title><description><![CDATA[<h2>如题，R9700单卡用Strata跑qfn起来以后速度不是太理想，而且不能并发，在实战当中几乎不可用，主要的锅在孱弱的llamacpp底层，所以决定移植strata的逻辑到vllm并利用paiton的内核来追逐速度极限，目标单流3000/90，C4能到3500/160。</h2>
<p dir="auto">正在进行中，weekend project。。。</p>
<h2>本轮：vLLM 跑通了 —— 我们的分层 MoE 已经在 vLLM 里出 token</h2>
<p dir="auto">这是整个改造的<strong>第一个端到端里程碑</strong>：</p>
<pre><code>=== start test vllm (2 layers, tiered MoE) ===
models_http=200 after ~205s

=== completion ===
{"id":"cmpl-9c8471aec695241b","object":"text_completion", ...
 "choices":[{"index":0,"text":"!!!!!","finish_reason":"length" ...
 "usage":{"prompt_tokens":5,"total_tokens":10,...}}
</code></pre>
<p dir="auto">含义拆开说：</p>
<ul>
<li><strong>vLLM 0.29 正常启动</strong>，<code>/v1/models</code> 返回 200；</li>
<li>模型是<strong>真实主干 bf16 + 我们替换的 TieredBlock</strong>（gate/shared_expert + 3-bit 分层专家），不是替身；</li>
<li>OpenAI 兼容接口完整走通，返回合法 JSON、usage、finish_reason；</li>
<li>输出 <code>"!!!!!"</code> 是<strong>预期</strong>的：PLE 层目前是零表占位、专家路径也没做 fp8 激活量化，所以数值不对，但数据链路已经全通。</li>
</ul>
<h3>本轮修掉的 4 个问题</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>#</th>
<th>问题</th>
<th>处理</th>
</tr>
</thead>
<tbody>
<tr>
<td>13</td>
<td>profiling 600 s 不结束</td>
<td>专家执行改为<strong>按专家分桶</strong>：同一个 batch 里路由到同一专家的 token 合并成一次内核调用；每层张量一次性载入内存缓存</td>
</tr>
<tr>
<td>14</td>
<td>输入没有旋转</td>
<td>forward 里加 block-diag H128（FWHT-128）</td>
</tr>
<tr>
<td>15</td>
<td>加载器找不到 PLE 参数</td>
<td>给 Stub 注册 6 个参数壳</td>
</tr>
<tr>
<td>16</td>
<td><code>IndexError: index 1 ... block_table_tensor[:, 1]</code>（Radiance 的 lazy GDN 要求 ≥2 个 block）</td>
<td><code>RADIANCE_GDN_LAZY=0</code></td>
</tr>
</tbody>
</table>
<p dir="auto">启动耗时约 205 s（含 vLLM 初始化、权重加载 8.9 s、profiling、warm-up），比原生慢，因为我们的专家路径还是逐专家 Python 循环。</p>
<h3>下一步（从"跑通"到"跑对"）</h3>
<ol>
<li><strong>接真 PLE</strong>：把零表换成 4-bit 表（26 GB，128 片 × <code>[2.5M, 80]</code> + 行 scale），按 <code>ngram_context</code> gather；</li>
<li><strong>换 48 层全模型</strong>：主干 9.3 GiB + 专家按需读，显存里放主干 + 热专家；</li>
<li><strong>数值验收</strong>：<code>contract-probe</code> 的 2,356 个位置逐位对齐 logits——过了才算"改造正确"；</li>
<li><strong>再谈性能</strong>：把逐专家循环换成批量内核、加热集/冷取数，然后压 4 路并发。</li>
</ol>
<h3>现状</h3>
<ul>
<li>8080 每次测试后恢复（当前 200）；</li>
<li>测试模型目录 <code>/data/paiton-test2</code> 2.8 GB，启动一次 3.5 分钟；</li>
<li>关键结论：<strong>vLLM 的调度、KV、API 全部保留，只替换了 MoE 和 PLE 两个模块</strong>，改造面符合最初设计。</li>
</ul>
<p dir="auto">目标保持 active。</p>
]]></description><link>https://lcz.me/topic/2728</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 11:54:27 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/2728.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Oct 2026 22:32:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sun, 01 Nov 2026 12:11:38 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><br />
哦，高人！提醒的到位，我又回顾看了一下发现他们的思路类似，但是实现方式差太多了，rediance的调度策略不如Strata优秀。我翻了一下以前本机的测试记录，rediance单流的时候整体比strata要慢个55%左右，而且这个玩意儿完全没有用到vllm的并发能力。并发以后速度比单流的速度还慢，就没法用。<br />
但是你这个提醒太好了，他有些地方还是可以借用的，我抽空再研究一下，刚换工作了，暂时没时间搞。</p>
]]></description><link>https://lcz.me/post/30297</link><guid isPermaLink="true">https://lcz.me/post/30297</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sun, 01 Nov 2026 12:11:38 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sun, 01 Nov 2026 11:19:28 GMT]]></title><description><![CDATA[<p dir="auto">其实radiance 就是vllm版的strata</p>
]]></description><link>https://lcz.me/post/30272</link><guid isPermaLink="true">https://lcz.me/post/30272</guid><dc:creator><![CDATA[applejuice]]></dc:creator><pubDate>Sun, 01 Nov 2026 11:19:28 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sun, 01 Nov 2026 10:23:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%E5%BC%A0%E5%85%89%E7%92%9E" aria-label="Profile: 张光璞">@<bdi>张光璞</bdi></a><br />
感谢支持，目前没攻下来。</p>
]]></description><link>https://lcz.me/post/30253</link><guid isPermaLink="true">https://lcz.me/post/30253</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sun, 01 Nov 2026 10:23:04 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sun, 01 Nov 2026 10:26:27 GMT]]></title><description><![CDATA[<p dir="auto">阶段性总结，这个跨推理框架迁移整体上来讲还是非常有难度的事情，哪怕只是给vllm做一个插件来改变框架的行为。我想最根本性的难点在于：</p>
<p dir="auto">①不同框架对于各种算子和量化格式的兼容性差别太大，paiton这个框架的W3A4模型居然只是给unsloth的nvfp4格式套了个壳，类似于是一个微调过的模型。Flash next，因为这个采用了新的框架模型权重本身是可以通过套同样壳子的方式逆向出来的，但是这个外挂的第二分片也就是ple模块对精度要求比较高，到4bit就崩了。阻止了模型整体进一步的量化。<br />
②另外的话就是虽然有些底层的算子在不同平台之间可以迁移，但是他们的那个运算的框架适配起来也是非常难的，因为涉及到调度，而到这一层几乎是皮秒必争，而不是毫秒。这个开发难度就真的是大仙级别的人才能搞了，独立让AI还是不太行。<br />
③开发方法的问题，Deepseek VS flash虽然是标称一兆上下文，但是实际的情况是过了500k以后，模型就有一点顾头不不顾尾了（而且有一次居然又开始重测之前测试出来一条死路），尤其在这种比较有难度的任务里面。指令遵循和有些设定条件就开始忘了。后来想了一个办法，是开了两个对话，一个作为指挥官来搭建框架和测试清单，然后用另外一个对话来具体执行，这样的话，不污染主对话的缓存池也就是脑子🧠。这个方法换了以后，明显测试的效率和靠谱程度有了肉眼可见的提升。</p>
<p dir="auto">不过，虽然是如此Deepseek V41 flash现在的能力貌似还是不足以做这种设计底层框架的，但便宜是真的便宜啊，几乎是连续跑了40个小时，中间偶有间断，才花了45人民币。哪怕只是算子级别的迁移也不行，但是调度这些算子做测试，然后优化他们还是可以的。这个大概也是解释了为什么GitHub上做这种项目的联合开发者里面基本都是claude。下周换新工作了，会比较忙，目前需要搁置一下，周末再看看有没有时间精力来搞。</p>
]]></description><link>https://lcz.me/post/30250</link><guid isPermaLink="true">https://lcz.me/post/30250</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sun, 01 Nov 2026 10:26:27 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sun, 01 Nov 2026 10:06:05 GMT]]></title><description><![CDATA[<h2>一，Strata R9700单卡移植到vLLM跑Qwen3.8-Flash-Next这个周末项目目前宣告失败，但是还是探了很多不通的途径出来，如下：</h2>
<h2>二、尝试过的路径与结果</h2>
<h3>路径 1：官方 Paiton 原生栈（3-bit / 4-bit 镜像）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th>TG (tok/s)</th>
<th>PP</th>
<th>4 路 agg</th>
</tr>
</thead>
<tbody>
<tr>
<td>3 层全驻留</td>
<td>174.28</td>
<td>6485</td>
<td>74.78</td>
</tr>
<tr>
<td>6 层全驻留</td>
<td>163.51</td>
<td>5128</td>
<td>67.48</td>
</tr>
<tr>
<td><strong>24 层全驻留</strong></td>
<td><strong>243.32</strong></td>
<td>1465</td>
<td>65.08</td>
</tr>
<tr>
<td>全 48 + tier 20</td>
<td>5.78</td>
<td>156</td>
<td>3.37</td>
</tr>
<tr>
<td>全 48 + tier 20 + eager</td>
<td>5.34</td>
<td>156</td>
<td>3.49</td>
</tr>
<tr>
<td>Strata IQ3_XXS 参考</td>
<td>74</td>
<td>2069</td>
<td>—</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>结论</strong>：24 层 243 是显存容量下的真实上限（3.3 倍 Strata）；全 48 被 96.4 GB 权重卡死。</p>
<h3>路径 2：旧自定义 tiered 栈（<code>tiered_qwen4.py</code>）</h3>
<ul>
<li>CPU-all：2.04 tok/s；native 热混合：1.70 tok/s。</li>
<li><strong>结论</strong>：Python 模型跑不动，放弃。</li>
</ul>
<h3>路径 3：vLLM走GGUF插件路线（Strata IQ3_XXS 71G）</h3>
<ul>
<li>插件 HIP 移植成功（<code>_C_gguf.so</code> 编译通过，type 42 别名、block size 8）；</li>
<li>解析出 Strata 的 GSQ-RCO 是<strong>混合量化</strong>：<code>ffn_gate/up</code> 是 IQ2_XS/IQ3_S/IQ4_XS，<code>ffn_down</code> 是 type 42（2.25 bpw、72 字节块、640 行 = 2.5 块）；</li>
<li><strong>结论</strong>：640 行 2.5 块的布局需要自定义 dequant 内核，标准插件吃不下，<strong>未跑通</strong>。</li>
</ul>
<h3>路径 4：CPU 冷（Strata 的“分层计算”）</h3>
<ul>
<li>3 层验证：CPU 冷 <strong>37.54</strong> vs 纯 tier <strong>90.34</strong>，慢 2.4 倍；</li>
<li>全 48 从未跑完（挂载、设备、图捕获、<code>/tmp</code> 满等一连串配置错误）。</li>
<li><strong>结论</strong>：16 核 Xeon 上 CPU 算 3-bit 专家（138 µs/专家）<strong>不如 PCIe 搬权重</strong>，方向被证伪。</li>
</ul>
<h3>路径 5：PLE 2-bit（方向错误，已纠正）</h3>
<ul>
<li>转换成功：51.2 GB → <strong>14.1 GB</strong>；3 层 q2 <strong>23.21</strong>（比 e4m3 慢）；</li>
<li>第一次 PPL 142.6（漏乘 <code>row_scale</code>），修正后未复测；</li>
<li><strong>结论</strong>：PLE 不是“模型权重”，不该压 2-bit；已停止并清理。</li>
</ul>
<h3>路径 6：专家 2-bit（纠错上步，真正的“2-bit 全驻留”）</h3>
<ul>
<li>3-bit dequant 布局用 <code>bench_expert.c</code> 验证：<code>LEVEL=[-8,-5,-3,-1,1,3,5,8]</code>、e4m3 scale/64、32 码/3 uint32；</li>
<li>4 档 2-bit 的 <strong>cos(3bit,2bit)=0.598</strong>（偏低）；</li>
<li>3 层 2-bit 容器生成（3.1 GB，NFS）；容量账 31.7+48.9+8=88.6 &lt; 104，<strong>全驻留可行</strong>；</li>
<li><code>_Q2Experts</code> 的 Python forward 连续 4 次失败（缺 <code>load_fnq</code>、设备不匹配、shared-expert 混设备），PPL 3222 跑的是旧路径。</li>
<li><strong>结论</strong>：存储层打通，<strong>质量未验证</strong>，核心结论空缺。</li>
</ul>
<h2>三、目标达成情况</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th>目标</th>
<th>实际</th>
</tr>
</thead>
<tbody>
<tr>
<td>TG</td>
<td>≥90</td>
<td>24 层 243、3 层 174、6 层 163 达标；全 48 5.34 <strong>未达</strong></td>
</tr>
<tr>
<td>PP</td>
<td>≥3000</td>
<td>3 层 6485、6 层 5128 达标；24 层 1465、全 48 156 <strong>未达</strong></td>
</tr>
<tr>
<td>4 路 agg</td>
<td>≥240</td>
<td>最好 74.78，<strong>未达</strong></td>
</tr>
<tr>
<td>不慢于 Strata 74</td>
<td>—</td>
<td>24 层/3 层/6 层达标；全 48 <strong>未达</strong></td>
</tr>
</tbody>
</table>
<h2>四、还有希望的方向（按性价比排序）</h2>
<ol>
<li>
<p dir="auto"><strong>修 <code>_Q2Experts</code> 到纯 GPU 路径</strong>（只剩这一步就能拿到真实 2-bit PPL）：</p>
<ul>
<li><code>xr</code>、<code>g</code>、<code>dn</code> 全部放 GPU，去掉 <code>.cpu()</code>；</li>
<li>和 shared-expert 的设备边界统一；</li>
<li>预计 1-2 轮内能跑出数字，然后才知道 4 档 0.598 的 cos 到底崩不崩。</li>
</ul>
</li>
<li>
<p dir="auto"><strong>8 档 2-bit（每 32 元素一 scale）</strong>：cos 可到 0.8+，体积仍远小于 3-bit（约 40 GB），是质量与容量的折中。</p>
</li>
<li>
<p dir="auto"><strong>GGUF IQ3_XXS 的自定义 dequant</strong>：640 行 2.5 块 + 混合类型，工作量大但能直接复用 Strata 的 71G 权重，理论 74 tok/s。</p>
</li>
<li>
<p dir="auto"><strong>接受 3-bit 现状收尾</strong>：24 层 243 作为“半模型上限”，全 48 5.34 作为“104GB 硬件的真实天花板”。</p>
</li>
</ol>
]]></description><link>https://lcz.me/post/30246</link><guid isPermaLink="true">https://lcz.me/post/30246</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sun, 01 Nov 2026 10:06:05 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sun, 01 Nov 2026 10:00:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bunsei" aria-label="Profile: Bunsei">@<bdi>Bunsei</bdi></a><br />
哦，感谢感谢，但是应该是用不上了。我下周末有空了再试试，平时工作也没时间。<br />
这周末这周末是探索性质到跑跑，探出来的全是死路。</p>
]]></description><link>https://lcz.me/post/30242</link><guid isPermaLink="true">https://lcz.me/post/30242</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sun, 01 Nov 2026 10:00:04 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sun, 01 Nov 2026 09:51:25 GMT]]></title><description><![CDATA[<p dir="auto">你要是不嫌弃AI的话，我GPT还有点周限额，可以支援你一下。</p>
]]></description><link>https://lcz.me/post/30233</link><guid isPermaLink="true">https://lcz.me/post/30233</guid><dc:creator><![CDATA[Bunsei]]></dc:creator><pubDate>Sun, 01 Nov 2026 09:51:25 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sun, 01 Nov 2026 04:41:51 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a href="/user/fcme">@fcme</a> <a href="/post/29990">说</a>:</p>
<p dir="auto">这太tm有挑战了</p>
</blockquote>
<p dir="auto"><a href="https://github.com/Dyluhn/R9V" rel="nofollow ugc">https://github.com/Dyluhn/R9V</a></p>
<p dir="auto">記得這是最早用vllm+r9700+qfn的方案，參考看看。</p>
]]></description><link>https://lcz.me/post/30157</link><guid isPermaLink="true">https://lcz.me/post/30157</guid><dc:creator><![CDATA[paul hou]]></dc:creator><pubDate>Sun, 01 Nov 2026 04:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sun, 01 Nov 2026 03:06:35 GMT]]></title><description><![CDATA[<p dir="auto">坐等老哥与大肥鱼攻克难关</p>
]]></description><link>https://lcz.me/post/30064</link><guid isPermaLink="true">https://lcz.me/post/30064</guid><dc:creator><![CDATA[张光璞]]></dc:creator><pubDate>Sun, 01 Nov 2026 03:06:35 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 21:44:35 GMT]]></title><description><![CDATA[<p dir="auto">这太tm有挑战了<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f614.png?v=5be5614064c" class="not-responsive emoji emoji-android emoji--pensive" style="height:1.4em;width:auto;vertical-align:middle" title="😔" alt="😔" /></p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/2a7fc328-2935-411b-83fd-8e08ebb09a4d.jpg" alt="Screenshot_20261101_074434_com_android_chrome_ChromeTabbedActivity.jpg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/post/29990</link><guid isPermaLink="true">https://lcz.me/post/29990</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sat, 31 Oct 2026 21:44:35 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 12:30:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/enigma" aria-label="Profile: Enigma">@<bdi>Enigma</bdi></a><br />
还是很有挑战的，目前还不能说乐观。当然如果能造福更多的a卡用户，那也是相当不错的的。</p>
]]></description><link>https://lcz.me/post/29855</link><guid isPermaLink="true">https://lcz.me/post/29855</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sat, 31 Oct 2026 12:30:04 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 12:11:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcme" aria-label="Profile: fcme">@<bdi>fcme</bdi></a> 很好抓紧出作业和数据，多点截图，我剽窃一个视频。</p>
]]></description><link>https://lcz.me/post/29840</link><guid isPermaLink="true">https://lcz.me/post/29840</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sat, 31 Oct 2026 12:11:18 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 12:02:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcme" aria-label="Profile: fcme">@<bdi>fcme</bdi></a> deepseek4.1 1017版本编程能力升级了一大截，以前搞不定的事，现也许可以搞定了。</p>
]]></description><link>https://lcz.me/post/29838</link><guid isPermaLink="true">https://lcz.me/post/29838</guid><dc:creator><![CDATA[xiongjie gao]]></dc:creator><pubDate>Sat, 31 Oct 2026 12:02:18 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 11:55:07 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcme" aria-label="Profile: fcme">@<bdi>fcme</bdi></a> <a href="/post/29830">说</a>:</p>
<h2>我的天呐！哈哈哈<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f601.png?v=5be5614064c" class="not-responsive emoji emoji-android emoji--grin" style="height:1.4em;width:auto;vertical-align:middle" title="😁" alt="😁" /></h2>
</blockquote>
<p dir="auto"><img src="https://upload.lcz.me/uploads/1b9a626c-b413-468a-a1e8-b050601574bf.jpg" alt="Screenshot_20261031_213317_com_android_chrome_ChromeTabbedActivity.jpg" class="img-markdown  img-fluid" /></p>
<p dir="auto">太厉害了。人才辈出啊，等你打通后，坛里大神再移植到7900XTX，造福我们79族</p>
]]></description><link>https://lcz.me/post/29834</link><guid isPermaLink="true">https://lcz.me/post/29834</guid><dc:creator><![CDATA[Enigma]]></dc:creator><pubDate>Sat, 31 Oct 2026 11:55:07 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 11:51:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xiongjie-gao" aria-label="Profile: xiongjie-gao">@<bdi>xiongjie-gao</bdi></a><br />
本来搞得我都没有信心了，好好梳理了一遍思路以后居然有新发现，还是要有耐心啊</p>
]]></description><link>https://lcz.me/post/29832</link><guid isPermaLink="true">https://lcz.me/post/29832</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sat, 31 Oct 2026 11:51:33 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 11:36:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcme" aria-label="Profile: fcme">@<bdi>fcme</bdi></a> 炼丹大成<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=5be5614064c" class="not-responsive emoji emoji-android emoji--+1" style="height:1.4em;width:auto;vertical-align:middle" title=":+1:" alt="👍" /></p>
]]></description><link>https://lcz.me/post/29831</link><guid isPermaLink="true">https://lcz.me/post/29831</guid><dc:creator><![CDATA[xiongjie gao]]></dc:creator><pubDate>Sat, 31 Oct 2026 11:36:59 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 11:34:31 GMT]]></title><description><![CDATA[<h2>我的天呐！哈哈哈<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f601.png?v=5be5614064c" class="not-responsive emoji emoji-android emoji--grin" style="height:1.4em;width:auto;vertical-align:middle" title="😁" alt="😁" /></h2>
<p dir="auto"><img src="https://upload.lcz.me/uploads/1b9a626c-b413-468a-a1e8-b050601574bf.jpg" alt="Screenshot_20261031_213317_com_android_chrome_ChromeTabbedActivity.jpg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/post/29830</link><guid isPermaLink="true">https://lcz.me/post/29830</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sat, 31 Oct 2026 11:34:31 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 11:33:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a><br />
嗯，确实。我先自己啃啃吧，争取还是能搞定了，造福部分amd玩家。</p>
]]></description><link>https://lcz.me/post/29829</link><guid isPermaLink="true">https://lcz.me/post/29829</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sat, 31 Oct 2026 11:33:57 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 08:28:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcme" aria-label="Profile: fcme">@<bdi>fcme</bdi></a> 你有AI，你本身也懂AI，一定能搞好。建议你把项目代码通过Git管理，推不动的时候换Agent，Codex+DSH+Hermes就行。你想想，你做好了，你就开个频道，就讲着一个项目，我给你推推。做不好，你就当业余锻炼了，提升自己的眼界。如果你有困难，发出来，论坛大神搞不好也能帮你。</p>
]]></description><link>https://lcz.me/post/29775</link><guid isPermaLink="true">https://lcz.me/post/29775</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sat, 31 Oct 2026 08:28:11 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 08:23:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a><br />
感谢，这个要是做成了意义还是挺大的，所以说我先好好搞搞，哪怕做不成也算是给后来的大神们探个路了。</p>
]]></description><link>https://lcz.me/post/29769</link><guid isPermaLink="true">https://lcz.me/post/29769</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sat, 31 Oct 2026 08:23:04 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 08:15:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcme" aria-label="Profile: fcme">@<bdi>fcme</bdi></a> 我抽空给你的几个项目做个专页，你继续开源，我在视频里找时间给你系统介绍下，这个项目就挺好。</p>
]]></description><link>https://lcz.me/post/29765</link><guid isPermaLink="true">https://lcz.me/post/29765</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sat, 31 Oct 2026 08:15:46 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 08:13:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-chen" aria-label="Profile: David-Chen">@<bdi>David-Chen</bdi></a><br />
对，越做坑越大。虽然流程是跑通了，但是现在我另外评估了一下，好像也就做了25~30%的样子。</p>
]]></description><link>https://lcz.me/post/29764</link><guid isPermaLink="true">https://lcz.me/post/29764</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sat, 31 Oct 2026 08:13:04 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 08:12:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/perter" aria-label="Profile: perter">@<bdi>perter</bdi></a><br />
挑战还是相当大的。越做发现坑越大</p>
]]></description><link>https://lcz.me/post/29762</link><guid isPermaLink="true">https://lcz.me/post/29762</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sat, 31 Oct 2026 08:12:14 GMT</pubDate></item><item><title><![CDATA[Reply to 移植Strata技术路线到vLLM以适配R9700并让Flash Next真正带并发可用！ on Sat, 31 Oct 2026 07:37:45 GMT]]></title><description><![CDATA[<h2>本轮：锁页 staging 生效，MoE 快了 7 倍，4 路聚合翻倍</h2>
<h3>1. 先做离线拆解，找到了真正的大头</h3>
<p dir="auto">离线基准（15 个活跃专家，稳态）：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>阶段</th>
<th>页内存（原路径）</th>
<th>锁页 staging（新路径）</th>
</tr>
</thead>
<tbody>
<tr>
<td>CPU gather</td>
<td>5.4 ms</td>
<td><strong>1.07 ms</strong>（<code>index_select</code> 直接写入锁页缓冲）</td>
</tr>
<tr>
<td>H2D 拷贝</td>
<td>4.4 ms（实为 4 GB/s）</td>
<td><strong>1.46 ms</strong>（≈13 GB/s，async）</td>
</tr>
<tr>
<td>Triton 内核</td>
<td>0.8 ms</td>
<td>0.8 ms</td>
</tr>
<tr>
<td><strong>合计</strong></td>
<td><strong>约 17 ms</strong></td>
<td><strong>约 3.3 ms</strong></td>
</tr>
</tbody>
</table>
<p dir="auto">根因：<strong>页内存的 H2D 只有 4 GB/s</strong>（理论 13.8），且 CPU gather 每次都在 314 MB 的大张量上随机取行、cache 不友好。</p>
<h3>2. 模型内实测（单卡、无热集、util 0.60）</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>指标</th>
<th>改前</th>
<th>改后</th>
<th>提升</th>
</tr>
</thead>
<tbody>
<tr>
<td>MoE 每 block</td>
<td>42-47 ms</td>
<td><strong>5.8-6.3 ms</strong></td>
<td><strong>7 倍</strong></td>
</tr>
<tr>
<td>单流 8 token</td>
<td>11.3 s</td>
<td><strong>8.4 s</strong></td>
<td>1.35 倍</td>
</tr>
<tr>
<td>4 路 32 token</td>
<td>31.8 s</td>
<td><strong>15.5 s</strong></td>
<td>2.05 倍</td>
</tr>
<tr>
<td>4 路聚合</td>
<td>1.01 tok/s</td>
<td><strong>2.06 tok/s</strong></td>
<td>2 倍</td>
</tr>
<tr>
<td>单流</td>
<td>0.71 tok/s</td>
<td><strong>0.95 tok/s</strong></td>
<td>—</td>
</tr>
</tbody>
</table>
<p dir="auto">四路输出全部正确（Paris）。</p>
<h3>3. 现在的瓶颈已经换人了</h3>
<pre><code>单 token 拆解：MoE ≈ 288 ms（48 层 × 6 ms），总耗时 ≈ 1,050 ms
→ 非 MoE 部分约 760 ms（注意力 / HC 混合 / 框架开销）
</code></pre>
<p dir="auto">也就是说：<strong>MoE 不再是主要矛盾</strong>，下一步要看那 760 ms 花在哪。最可疑的是：</p>
<ol>
<li>我们测试容器里禁用了 Paiton 平台插件（<code>VLLM_DISABLE_PAITON_PLATFORM=1</code>），GDN 线性注意力的优化内核全部没生效；</li>
<li>HC 混合（10240 维的多流状态）在 eager 模式下没有融合。</li>
</ol>
<h3>4. 下一轮</h3>
<ol>
<li>用 CUDA event 把"非 MoE 部分"按模块拆开（block 整体 vs MoE 占比，再逐段插桩）；</li>
<li>如果确认是 GDN 注意力，就尝试在保留我们 MoE 补丁的前提下，把 Paiton 的 GDN 优化内核重新打开（这是纯配置/加载顺序问题）。</li>
</ol>
<h3>状态</h3>
<pre><code>paiton-8080 正在自启（约 5 分钟就绪）
strata-8080 已停、已禁自启
vLLM 改造：MoE 6 ms/层、4 路 2.06 tok/s（历史最好）
</code></pre>
]]></description><link>https://lcz.me/post/29754</link><guid isPermaLink="true">https://lcz.me/post/29754</guid><dc:creator><![CDATA[fcme]]></dc:creator><pubDate>Sat, 31 Oct 2026 07:37:45 GMT</pubDate></item></channel></rss>