<?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[【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3]]></title><description><![CDATA[<p dir="auto">上传视频转码影响比较大，直接放个原视频文件。<br />
链接：<a href="https://pan.quark.cn/s/46f34db17069?pwd=APvt" rel="nofollow ugc">https://pan.quark.cn/s/46f34db17069?pwd=APvt</a><br />
提取码：APvt</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/8f175379-6072-4dd4-bcea-a702fdde185e.jpg" alt="TP2_九宫格_2M.jpg" class="img-markdown  img-fluid" /></p>
<blockquote>
<p dir="auto">前一篇写的是 RDNA4 + RDNA3 跨代（R9700 + 7900XTX），这篇换到 N 卡上：<strong>RTX 5880 Ada 48G + RTX PRO 5000 Blackwell 48G</strong>，同样跨代、同样 TP=2、同样跑 H3。</p>
<p dir="auto">结论先放这：<strong>技术层面跑通了，兄弟们有兴趣的可以自行评估优化。</strong></p>
<p dir="auto">两代不同架构（sm_120 + sm_89）、没有 P2P、通信走 SHM 中继的 N 卡上，H3 的 TP=2 跑起来了——判据全过、片子正常、96G 显存可用（标称 96G，扣掉驱动/上下文后每卡实际可用约 47.3G，合计约 94.6G）。</p>
<p dir="auto">之所以把数据和坑全摊开，是觉得这类探索最贵的不是结论，是别人踩过的坑。<strong>砖先扔出来，玉在各位手上。</strong></p>
</blockquote>
<hr />
<h2>一、一句话结论</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>维度</th>
<th>结论</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>跨代能不能 TP</strong></td>
<td><strong>能。</strong> 比 AMD 那边省事：没有 kpack、没有 RNG 差异、P2P 走 SHM 也够用</td>
</tr>
<tr>
<td><strong>技术判据</strong></td>
<td>全过：heads=28 / state_dict 切 308 张量 / LoRA 切 208×4 / 两卡 88% 同步 / 双份 mp4 正常</td>
</tr>
<tr>
<td>速度（待优化）</td>
<td>采样段 <strong>1.78×</strong>，端到端 <strong>300.7 s</strong>（对 5880 单卡快 37%，对 PRO5000 单卡快 20%）——加速还没吃满</td>
</tr>
<tr>
<td>画质（待优化）</td>
<td>与 5880 单卡 PSNR 18.1 dB；但同 seed 两张单卡互比也只有 22 dB，跨架构 kernel 差异是硬底</td>
</tr>
<tr>
<td><strong>最大价值</strong></td>
<td><strong>96G 显存</strong>（每卡实占 30G，净余约 17G/卡），362 帧/1088p 这类单卡贴顶的档位才有回旋</td>
</tr>
</tbody>
</table>
<hr />
<h2>二、平台与目标：为什么是显存，不是速度</h2>
<pre><code>CPU/MB : TR PRO 9985WX + WRX90 WS EVO
GPU0   : NVIDIA RTX PRO 5000 Blackwell 48G  (0000:d1:00.0, sm_120, PCIe 5.0 x16)  ← rank0
GPU1   : NVIDIA RTX 5880 Ada Generation 48G (0000:f1:00.0, sm_89,  PCIe 4.0 x16)  ← rank1
驱动   : 595.99.02 + nvidia-open
软件   : ComfyUI 0.39.0 / torch 2.13.0+cu130 / comfy_kitchen 0.2.37
</code></pre>
<p dir="auto">单卡跑 1344×768 / 294 帧 / 6 步，5880 峰值显存 <strong>44,738 MiB</strong>——48G 卡贴着顶跑，解码阶段一帧都多不出来。</p>
<p dir="auto">这就是做 TP2 的真实动机：<strong>为了把 48G 的墙往后推。</strong></p>
<p dir="auto">TP2 之后每卡只吃 <strong>约 30 GB</strong>（采样期）。「96G」是标称口径，实际有损耗，账是这样：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>数值</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>nvidia-smi</code> 标称总量</td>
<td>PRO5000 48,935 MiB / 5880 49,140 MiB</td>
</tr>
<tr>
<td>扣驱动 + CUDA 上下文</td>
<td>约 0.5~0.6 GiB/卡</td>
</tr>
<tr>
<td>扣桌面/Edge（5880 带显示器，<code>display_active=Enabled</code>）</td>
<td>约 0.1~1 GiB</td>
</tr>
<tr>
<td><strong>实际单卡可用</strong>（<code>torch.cuda.mem_get_info</code>）</td>
<td><strong>47.27 / 47.37 GiB</strong></td>
</tr>
<tr>
<td>TP2 采样期每卡占用</td>
<td><strong>29.9 ~ 30.4 GiB</strong></td>
</tr>
<tr>
<td><strong>每卡净余量</strong></td>
<td><strong>约 17 GiB（两卡合计约 34 GiB）</strong></td>
</tr>
</tbody>
</table>
<p dir="auto">对照单卡：5880 跑同一档峰值 <strong>44,738 MiB</strong>，跟 48G 只差 1~2G，解码阶段一帧都多不出来。</p>
<p dir="auto">一句话：<strong>标称 96G，实际可用约 94.6G（每卡损耗约 0.55 GiB，1.2%），TP2 之后每卡余 17G、合计约 34G 的回旋空间。</strong></p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>单卡做不了/很勉强</th>
<th>双卡（每卡留 ~17G）之后</th>
</tr>
</thead>
<tbody>
<tr>
<td>362 帧 / 1088p 贴顶，VAE 解码直接 OOM</td>
<td>每卡还有 15~18G 余量，能常驻权重</td>
</tr>
<tr>
<td>权重和解码抢显存，只能 <code>--disable-smart-memory</code> 反复重载</td>
<td>可以开常驻档，省每镜 74 s 重载</td>
</tr>
<tr>
<td>多 LoRA + 大分辨率二选一</td>
<td>都能挂</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>这才是这篇帖子的重点：TP2 在 N 卡上的意义是把显存从 48G 变成 96G（实际约 94.6G），每卡余量从 1~2G 抬到 17G——速度是附带的。</strong></p>
<hr />
<h2>三、跨代到底差在哪：把前一篇那四个坑逐条对一遍</h2>
<p dir="auto">前一篇 AMD 版的坑，在 N 卡上大部分根本不成立，原因在驱动/编译器层面：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>前一篇的坑（AMD）</th>
<th>N 卡实测</th>
<th>原因</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>坑 1</strong>：torch 的 kernel 在 <code>.kpack</code> 里，每个 arch 一份，缺 gfx1201 就 <code>hipErrorInvalidImage</code></td>
<td><strong>不存在</strong></td>
<td>CUDA wheel 是 FATBIN，一份 <code>libtorch_cuda.so</code> 同时带 sm_86 和 sm_120：<code>get_arch_list = [sm_75, sm_80, sm_86, sm_90, sm_100, sm_120]</code>。5880 的 sm_89 直接跑 sm_86 cubin，PRO5000 的 sm_120 原生</td>
</tr>
<tr>
<td><strong>坑 2</strong>：<code>ROCR_VISIBLE_DEVICES</code> 用多个 UUID 会变 0 卡</td>
<td><strong>不存在</strong></td>
<td><code>CUDA_VISIBLE_DEVICES=GPU-xxx,GPU-yyy</code> 两卡都可见，<code>torchrun --nproc_per_node=2</code> 正常</td>
</tr>
<tr>
<td><strong>坑 3</strong>：跨架构 RCCL 裸 P2P 衰减</td>
<td><strong>不适用</strong></td>
<td>这两张卡 <code>nvidia-smi topo -p2p</code> 直接返回 <strong>NS</strong>（Not supported），NCCL 明确打印 <code>P2P is disabled between connected GPUs</code>，走 SHM 中继</td>
</tr>
<tr>
<td><strong>坑 4</strong>：两端 int8 必须都 native，否则每步分叉</td>
<td><strong>比 native 还好</strong></td>
<td>同一权重同一输入，convrot <code>int8_linear</code> 在 sm_120 与 sm_89 上输出 <strong>逐位相同</strong>（max diff = 0.000000）</td>
</tr>
<tr>
<td>GPU RNG 序列跨代不一致</td>
<td><strong>不存在</strong></td>
<td>同 seed 两卡 <code>torch.randn</code> 逐位相同</td>
</tr>
</tbody>
</table>
<h3>那 P2P 到底多少？</h3>
<p dir="auto">虽然 NS，但 SHM 中继的效率不差：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>测试</th>
<th>64 MiB</th>
<th>256 MiB</th>
<th>1 GiB</th>
</tr>
</thead>
<tbody>
<tr>
<td>裸跨卡 copy</td>
<td>23.54 GB/s</td>
<td>23.75 GB/s</td>
<td><strong>23.82 GB/s</strong></td>
</tr>
<tr>
<td>NCCL send（点对点）</td>
<td>19.65 GB/s</td>
<td>19.92 GB/s</td>
<td>—</td>
</tr>
<tr>
<td>NCCL all_reduce（busbw）</td>
<td>16.67 GB/s</td>
<td><strong>17.82 GB/s</strong></td>
<td>—</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>N 卡这对没有真 P2P，但 host bounce 跑出了 23.8 GB/s——只比 AMD 同代真 P2P 慢 8%。</strong></p>
<p dir="auto">瓶颈在 5880 那张 Gen4 x16（PRO5000 是 Gen5）。双向不叠加（23.93 vs 单向 23.82），说明是一条共享的 host/PCIe 路径。</p>
<p dir="auto">对 H3 TP2 够用：通信以 all_reduce 为主（每层 2 次），17.82 GB/s 比 AMD 那套的 12.93 还宽。</p>
<hr />
<h2>四、实现：从 ROCm 版移植过来，改了三处</h2>
<p dir="auto">底层那套（切分、all_reduce 位置、LoRA 切分）是从 AMD 版 <code>tp2-comfy</code> 直接搬的，改的是这三点：</p>
<h3>1. 锁卡：<code>ROCR_VISIBLE_DEVICES</code> → <code>CUDA_VISIBLE_DEVICES</code></h3>
<pre><code>TP_RANK=1 CUDA_VISIBLE_DEVICES=GPU-bcdd23a5-... python tp_boot.py --port 8193 --output-directory output/5880
sleep 3
TP_RANK=0 CUDA_VISIBLE_DEVICES=GPU-af064ab6-... python tp_boot.py --port 8192 --output-directory output/pro5000
</code></pre>
<p dir="auto"><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/26a0.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--warning" style="height:1.4em;width:auto;vertical-align:middle" title="⚠" alt="⚠" /> 注意：<strong>CUDA 的序号和 <code>nvidia-smi</code> 的 index 是反的</strong>（本机 CUDA0=5880、CUDA1=PRO5000，nvidia-smi 0=PRO5000、1=5880）。一律用 UUID 锁卡，别用序号。</p>
<h3>2. 权重预切：直接复用 <code>slice_state_dict</code></h3>
<p dir="auto">模型 <code>Minimax-h3_Singularity_ref2va_v2_int8.safetensors</code>（34 GB）的 <code>comfy_quant</code> 是：</p>
<pre><code>{"format": "int8_tensorwise", "convrot": true, "convrot_groupsize": 256}
</code></pre>
<p dir="auto">和 AMD 侧同一个格式，所以按后缀切 <code>qkv_proj</code> / <code>out_proj</code> / <code>fc1</code> / <code>fc2</code> 的 <code>weight</code> + <code>weight_scale</code>，在模型构造前切完（避免"先装全量再切"多一份 10G 副本）。一次切 <strong>308 个张量</strong>。</p>
<h3>3. LoRA：<code>comfy.lora.load_lora</code> 钩子，按 TP 半宽切 delta</h3>
<p dir="auto">工作流挂了 4 个 LoRA（pika H3 flex / Combat V2 0.9 / FightFlow 0.9 / MotionRepair 0.7），每个都切 <strong>208 个张量</strong>。不切的话日志会报 <code>shape '[10752, 5376]' is invalid for input of size 115605504</code>，节点照跑、片子照出。</p>
<hr />
<h2>五、实测</h2>
<p dir="auto">配置：1344×768 / 294 帧 / 6 步 lcm / 同 seed / 同提示词（浪客剑心打斗最终版）。</p>
<h3>速度</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>配置</th>
<th>总耗时</th>
<th>采样段</th>
<th>每步</th>
</tr>
</thead>
<tbody>
<tr>
<td>5880 单卡</td>
<td>479 s</td>
<td>~372 s</td>
<td>~62 s/步</td>
</tr>
<tr>
<td>PRO5000 单卡</td>
<td>374 s</td>
<td>~288 s</td>
<td>~48 s/步</td>
</tr>
<tr>
<td><strong>TP2（5880 + PRO5000）</strong></td>
<td><strong>300.7 s</strong></td>
<td><strong>208 s</strong></td>
<td><strong>34.8 s/步</strong></td>
</tr>
</tbody>
</table>
<ul>
<li>采样段 <strong>1.78×</strong>；</li>
<li>端到端只快 20%（对 PRO5000）、37%（对 5880）——因为 34 G 权重加载和 VAE 解码不并行，把加速摊薄了；</li>
<li>5880 是慢卡，rank1 每层在 all_reduce 处等它，所以 rank1 比 rank0 晚 22 s 完成。</li>
</ul>
<h3>两卡同步性（每秒采一次）</h3>
<pre><code>有负载 25 s：两卡同时 &gt;90% = 22 s（88%）
不同步只有 3 s：换采样步的瞬间、以及某一卡在 all_reduce 屏障处等对端
</code></pre>
<p dir="auto">所以 GPU 监控里看到"一卡锯齿、一卡满格"是正常的——<strong>TP2 的同步是每层一个屏障，不是全程锁死</strong>，快卡在屏障处空转就是锯齿的来源。真正的异常是一卡 100%、另一卡 2~3% 且日志不涨。</p>
<h3>画质</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>对比</th>
<th>PSNR</th>
</tr>
</thead>
<tbody>
<tr>
<td>5880 单卡 vs PRO5000 单卡（同 seed 同提示词）</td>
<td><strong>21.98 dB</strong></td>
</tr>
<tr>
<td>TP2 vs 5880 单卡</td>
<td>18.11 dB</td>
</tr>
<tr>
<td>TP2 vs PRO5000 单卡</td>
<td>16.74 dB</td>
</tr>
<tr>
<td>TP2 两卡互比</td>
<td>48.06 dB</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>关键在第二行</strong>：同一份工作流，只换一张卡，两张单卡之间就只有 22 dB——这已经是 H3 + int8 + 6 步 lcm 的"跨架构噪声下限"。</p>
<p dir="auto">TP2 的 18.1 dB 比它再低 3~4 dB，这 3~4 dB 才是 TP 切分本身的代价；剩下的 22 dB 不是 TP 引入的，<strong>换卡就有</strong>。</p>
<hr />
<h2>六、踩到的四个坑</h2>
<h3>坑 1（最硬）：<code>token_refiner</code> 是行并行，但前向没做 all_reduce</h3>
<p dir="auto"><strong>症状</strong>：片子能出，但两卡看到的东西不一样——文本条件从第一层就分叉。</p>
<p dir="auto"><strong>判据</strong>：在第一层前打印 packed 序列前 256 行（文本区）的指纹：</p>
<pre><code>rank0: sum=-36986.761719 absmean=1.597751856
rank1: sum=-48612.359375 absmean=1.599393249   ← 差 31%
</code></pre>
<p dir="auto"><strong>根因</strong>：<code>token_refiner</code> 的 <code>RefinerBlock</code> 里 <code>attn.out_proj</code> / <code>mlp.fc2</code> 也是按 K 轴切半的行并行，但移植时只给主 <code>blocks</code> 插了 all_reduce，refiner 的 2 层漏了。</p>
<p dir="auto"><strong>修法</strong>（关键就这一小段）：</p>
<pre><code>def fwd(self, x, transformer_options={}):
    a = self.attn(self.norm1(x), transformer_options=transformer_options)
    dist.all_reduce(a)                    # 行并行 partial sum
    if a.dtype != x.dtype:
        a = a.to(x.dtype)
    x2 = a.add_(x)
    m = self.mlp(self.norm2(x2))
    dist.all_reduce(m)
    if m.dtype != x2.dtype:
        m = m.to(x2.dtype)
    return m.add_(x2)
</code></pre>
<p dir="auto">修完两卡指纹：<code>-55220.625</code> vs <code>-55215.898</code>，差 <strong>0.008%</strong>（bf16 舍入噪声），PSNR 从 18.0 → 21.4（对旧基线）。</p>
<p dir="auto"><strong>这个坑值得单拎出来：TP 里任何"切了权重但没插归约"的层，都是静默错误——跑得完、有画面、但两卡算的是两个不同的东西。</strong></p>
<h3>坑 2：CUDA 上的"共享激活 scale"实测零收益</h3>
<p dir="auto">AMD 那篇里，行并行两半各自量化会产生每层约 0.88% 误差，共享 scale 能压到 0.284%。我也在 CUDA 上做了一版：</p>
<ul>
<li>旋转激活 → per-row amax 跨卡 <code>all_reduce(MAX)</code> → 用同一个 scale 量化 → <code>cuBLASLt</code> int8 GEMM → 手动反量化；</li>
<li>实测能跑通、无回退。</li>
</ul>
<p dir="auto"><strong>结果：开/关两版，对单卡基线的 PSNR 是 17.89 vs 18.11——开着反而低 0.22 dB，还慢 5%（314.9 s vs 300.7 s）。</strong></p>
<p dir="auto">原因两条：</p>
<ol>
<li>Hadamard 旋转后激活分布很均匀，两卡各看一半 K 算出的 amax 本来就差得很少，共享没多少可省的；</li>
<li>手写路径（eager 旋转 + bf16 除法/round + cuBLASLt GEMM）和 ck 的 fused convrot kernel 数值路径不同，额外误差把收益吃回去了。</li>
</ol>
<p dir="auto"><strong>这一条留在这里请社区指正</strong>：如果谁能在 kernel 层面把共享 scale 做进 fused 路径，说不定真能把那 3~4 dB 收回来。</p>
<h3>坑 3：fused 的 <code>input_act="swiglu"</code></h3>
<p dir="auto"><code>fc2</code> 的输入激活是融合在量化 kernel 里的（<code>input_act="swiglu"</code>）。第一版共享 scale 只匹配 <code>input_act is None</code> 的层，结果一次都没命中——日志上一切正常，只是什么都没发生。</p>
<p dir="auto">修法是先 eager 做 swiglu 再进共享路径，但那样又丢了融合的收益，回到坑 2。</p>
<h3>坑 4：显存——别自己分配大临时张量</h3>
<p dir="auto">第一版共享 scale 实现一次性把 <code>[m, k]</code> 转 float 做除法，在 m=97496 时是 1.4 GB 的临时张量，直接撞 ComfyUI 的 <code>--reserve-vram</code> 预留，报 <code>Allocation on device 0 would exceed allowed memory</code>，然后静默回退到 fused——<strong>看起来"跑通了"，其实一行共享 scale 都没生效</strong>。</p>
<p dir="auto">修法：按行分块（4096 行一块）+ bf16 运算 + 复用旋转结果。</p>
<hr />
<h2>七、结论：技术跑通了，效率交给社区</h2>
<h3>先定性：我们验证了什么</h3>
<p dir="auto">这不是一次调优，是一次<strong>可行性验证</strong>。验证清单：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>假设</th>
<th>结果</th>
</tr>
</thead>
<tbody>
<tr>
<td>N 卡跨代（Ada + Blackwell）能做 TP=2</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> 成立</td>
</tr>
<tr>
<td>CUDA 上不存在 AMD 那边的 kpack / 多 UUID / 跨架构 RCCL 三坑</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> 成立</td>
</tr>
<tr>
<td>跨架构 convrot int8 数值可对齐</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> <strong>逐位相同</strong>，比预期还好</td>
</tr>
<tr>
<td>AMD 那套 TP 实现能移植到 CUDA</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> core 直接复用，改锁卡 + LoRA/refiner 钩子</td>
</tr>
<tr>
<td>96G 组合可用</td>
<td><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> 标称 96G、实际约 94.6G，每卡实占 30G、余 17G</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>这五条里任何一条不成立，这条路就走不通。现在五条全过。</strong></p>
<h3>技术层面：跑通了</h3>
<p dir="auto">两代不同架构（sm_120 + sm_89）、没有 P2P、通信走 SHM 中继的 N 卡上，H3 的 TP2 跑起来了：</p>
<ul>
<li>权重按 TP 半宽预切，308 个张量，两卡各 17G；</li>
<li>4 个 LoRA 全部按半宽切分，208×4 个张量，效果可验证（不是"跑得完但 LoRA 为零"那种）；</li>
<li>refiner 的 2 层行并行补上 all_reduce 后，两卡文本条件差 0.008%（bf16 舍入噪声）；</li>
<li>采样期两卡 88% 时间同时 &gt;90%，锁步正常；</li>
<li>1344×768 / 294 帧 / 6 步，300.7 s 出片，两卡各存一份 mp4。</li>
</ul>
<p dir="auto"><strong>从"能不能"的角度，这件事到此为止是成立的。</strong></p>
<h3>效率层面：还没优化到位，这是留给社区的第一道题</h3>
<ul>
<li>采样段 1.78×，但端到端只快 20%——34G 权重加载和 VAE 解码不并行，把加速摊薄了；</li>
<li>画质 18.1 dB 回不到单卡，而这 3~4 dB 不是我抠不抠量化能解决的（共享 scale 实测零收益，见坑 2）；</li>
<li>独占两张卡换 20%，现阶段性价比不成立——但这是工程取舍问题，不是可行性问题。</li>
</ul>
<p dir="auto">这三条应该都是<strong>可以优化的</strong>。</p>
<h3>最大的价值：显存</h3>
<p dir="auto">96G 显存（实际可用约 94.6G），每卡实占 30G，<strong>净余 17G/卡、两卡合计约 34G</strong>。362 帧 / 1088p、更长单镜、权重常驻、多 LoRA 同时挂——这些单卡做不了或很勉强的档位，现在有回旋。</p>
<p dir="auto"><strong>速度是附带的，显存扩容才是这次真正的收获。</strong></p>
<h3>下一步值得试的（抛砖引玉）</h3>
<ol>
<li><strong>同架构双卡</strong>：两张 5880 或两张 PRO5000，跨卡 kernel 差异会从 22 dB 掉下来，PSNR 应该能进 25 dB。</li>
<li><strong>共享 scale 进 kernel</strong>：不在 Python 层手写，改 fused convrot 的量化 kernel，接受一个外部 scale 输入。</li>
<li><strong>362 帧 / 1088p 档位</strong>：这是 TP2 唯一能证明自己不可替代的场景（单卡根本装不下）。</li>
<li><strong>VAE 解码跨卡分片</strong>：现在两卡各解一次全片，等于白算一遍；P2P 是 NS 走 SHM，23.8 GB/s 值得试。</li>
<li><strong>长片 &gt;362 帧</strong>：两卡合计约 34G 余量，应该能撑更长的单镜。</li>
</ol>
<h3>复现代码及说明</h3>
<p dir="auto"><a href="https://upload.lcz.me/uploads/6bd49634-6e75-4e43-b284-519eb11da199.md" rel="nofollow ugc">README.md</a> <a href="https://upload.lcz.me/uploads/d5bdb426-4569-4351-988c-ca5dabb0c564.py" rel="nofollow ugc">core.py</a> <a href="https://upload.lcz.me/uploads/6025928e-01bd-4848-99a0-dbf3cd095005.md" rel="nofollow ugc">README.md</a> <a href="https://upload.lcz.me/uploads/240eb7a7-783a-483e-9acf-d8e060ff433f.sh" rel="nofollow ugc">start_tp2_nv.sh</a> <a href="https://upload.lcz.me/uploads/d2d36562-bb22-4085-b734-339be88ad138.py" rel="nofollow ugc">submit_tp.py</a> <a href="https://upload.lcz.me/uploads/7e397070-575f-4362-b58c-733126209423.py" rel="nofollow ugc">tp_boot.py</a> <a href="https://upload.lcz.me/uploads/21aef823-2866-4713-9368-7658a0658863.py" rel="nofollow ugc">tp_linear.py</a> <a href="https://upload.lcz.me/uploads/c2624606-4ca4-48d3-9e67-d63e9ba237ce.py" rel="nofollow ugc">tp_prof.py</a></p>
]]></description><link>https://lcz.me/topic/3232</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 03:54:11 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/3232.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Nov 2026 11:49:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Sun, 22 Nov 2026 06:10:47 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> 你就吹，当了皇帝就懈怠了。赶紧憋个大招。</p>
]]></description><link>https://lcz.me/post/35174</link><guid isPermaLink="true">https://lcz.me/post/35174</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sun, 22 Nov 2026 06:10:47 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Sun, 22 Nov 2026 06:07:08 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> 我本来就想做9700跟7900的异构。<br />
老哥直接给实现了，我摁头记笔记就好</p>
]]></description><link>https://lcz.me/post/35171</link><guid isPermaLink="true">https://lcz.me/post/35171</guid><dc:creator><![CDATA[xiongjie gao]]></dc:creator><pubDate>Sun, 22 Nov 2026 06:07:08 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Sun, 22 Nov 2026 05:57:35 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> 那就全搬过来<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f627.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--anguished" style="height:1.4em;width:auto;vertical-align:middle" title=":anguished:" alt="😧" /></p>
]]></description><link>https://lcz.me/post/35169</link><guid isPermaLink="true">https://lcz.me/post/35169</guid><dc:creator><![CDATA[fcys]]></dc:creator><pubDate>Sun, 22 Nov 2026 05:57:35 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Sun, 22 Nov 2026 05:45:15 GMT]]></title><description><![CDATA[<p dir="auto">放github啊，擦</p>
]]></description><link>https://lcz.me/post/35167</link><guid isPermaLink="true">https://lcz.me/post/35167</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sun, 22 Nov 2026 05:45:15 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Sun, 22 Nov 2026 05:27:03 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> 源代码，指南，闭坑，实测数据我都扔仓库了。咱们这里我也持续更新。</p>
<p dir="auto">项目比较大，让AI自己管理仓库了，省心一些，其实还是我太懒了<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f627.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--anguished" style="height:1.4em;width:auto;vertical-align:middle" title=":anguished:" alt="😧" /></p>
]]></description><link>https://lcz.me/post/35162</link><guid isPermaLink="true">https://lcz.me/post/35162</guid><dc:creator><![CDATA[fcys]]></dc:creator><pubDate>Sun, 22 Nov 2026 05:27:03 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Sun, 22 Nov 2026 05:20:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcys" aria-label="Profile: fcys">@<bdi>fcys</bdi></a> 你发一些简单的帖子，就是告诉大家，瓶颈在哪里，让买硬件的人有个数。</p>
]]></description><link>https://lcz.me/post/35159</link><guid isPermaLink="true">https://lcz.me/post/35159</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sun, 22 Nov 2026 05:20:56 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Sun, 22 Nov 2026 05:20:11 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> 我现在在跑跨品牌多卡LLM优化，等我把能跑通的都跑通了再想办法优化</p>
<p dir="auto"><a href="https://lcz.me/topic/3250">https://lcz.me/topic/3250</a><br />
用这个方案实现的，我自己写了个跨品牌的CCL，还需要大家一起优化</p>
<p dir="auto">这个绝对是超级大招</p>
]]></description><link>https://lcz.me/post/35157</link><guid isPermaLink="true">https://lcz.me/post/35157</guid><dc:creator><![CDATA[fcys]]></dc:creator><pubDate>Sun, 22 Nov 2026 05:20:11 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Sun, 22 Nov 2026 05:18:22 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> 我弟你大招呢？</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/62ed7e95-2c6e-4d9a-bcf7-8762737c9eba.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://lcz.me/post/35156</link><guid isPermaLink="true">https://lcz.me/post/35156</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sun, 22 Nov 2026 05:18:22 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Sun, 22 Nov 2026 05:17:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcys" aria-label="Profile: fcys">@<bdi>fcys</bdi></a> 关于显存容量的问题，16G的卡，你发个帖子分析下，或者这样吧，我不是有4060TI和5070Ti吗，你给评估下异构跑ComfyUI的方案，主要是显存瓶颈，比如哪些节点放到哪张卡，Latent和VAE如何切割，参数设置，动态权重加载等等，关注下入门卡。我电脑还有一台没装，装好后可以多尝试。A卡N卡工作流协同等。技术上你们这些大神往前推，我剽视频。<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f602.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--joy" style="height:1.4em;width:auto;vertical-align:middle" title="😂" alt="😂" /></p>
]]></description><link>https://lcz.me/post/35155</link><guid isPermaLink="true">https://lcz.me/post/35155</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sun, 22 Nov 2026 05:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Sun, 22 Nov 2026 02:10:38 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> 已经支持不等分切分了。LLM 异构TP不划算，已经实现PD分离</p>
]]></description><link>https://lcz.me/post/35138</link><guid isPermaLink="true">https://lcz.me/post/35138</guid><dc:creator><![CDATA[fcys]]></dc:creator><pubDate>Sun, 22 Nov 2026 02:10:38 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Sat, 21 Nov 2026 01:08:38 GMT]]></title><description><![CDATA[<p dir="auto">给优化下效率，弄个比如什么5070Ti双卡TP H3，5080 4090跨卡异构，其实参考你这个配置已经基本都可以跑了，就是等你继续优化。我今天装电脑，装完抄抄作业，<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f602.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--joy" style="height:1.4em;width:auto;vertical-align:middle" title="😂" alt="😂" /></p>
]]></description><link>https://lcz.me/post/34964</link><guid isPermaLink="true">https://lcz.me/post/34964</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sat, 21 Nov 2026 01:08:38 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Sat, 21 Nov 2026 00:13:35 GMT]]></title><description><![CDATA[<p dir="auto">刚好手上有，我在研究A卡和N卡TP，实际上已经跑通了，但是还有不少问题，慢慢调整中</p>
]]></description><link>https://lcz.me/post/34959</link><guid isPermaLink="true">https://lcz.me/post/34959</guid><dc:creator><![CDATA[fcys]]></dc:creator><pubDate>Sat, 21 Nov 2026 00:13:35 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Fri, 20 Nov 2026 22:40:37 GMT]]></title><description><![CDATA[<p dir="auto">难以置信，卡都被我哥玩遍了。</p>
]]></description><link>https://lcz.me/post/34956</link><guid isPermaLink="true">https://lcz.me/post/34956</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Fri, 20 Nov 2026 22:40:37 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Fri, 20 Nov 2026 22:40:19 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2b50.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--star" style="height:1.4em;width:auto;vertical-align:middle" title="⭐" alt="⭐" /> 版主审定：本帖设为<strong>精华</strong>，作者 <strong>+6 积分</strong>奖励，希望再接再厉！</p>
<blockquote>
<p dir="auto">奖励凭证：精华 +6 分 · 编号 f3232-1915-1</p>
</blockquote>
]]></description><link>https://lcz.me/post/34955</link><guid isPermaLink="true">https://lcz.me/post/34955</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Fri, 20 Nov 2026 22:40:19 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Fri, 20 Nov 2026 15:39:58 GMT]]></title><description><![CDATA[<p dir="auto">厉害了，估计你手上还有卡~</p>
]]></description><link>https://lcz.me/post/34927</link><guid isPermaLink="true">https://lcz.me/post/34927</guid><dc:creator><![CDATA[懒人烘培]]></dc:creator><pubDate>Fri, 20 Nov 2026 15:39:58 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Fri, 20 Nov 2026 14:44:34 GMT]]></title><description><![CDATA[<p dir="auto">以你手上的A卡资产可以把所有可能性排列组合走一遍<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f919.png?v=2bf455356c3" class="not-responsive emoji emoji-android emoji--call_me_hand" style="height:1.4em;width:auto;vertical-align:middle" title=":call_me_hand:" alt="🤙" /></p>
]]></description><link>https://lcz.me/post/34923</link><guid isPermaLink="true">https://lcz.me/post/34923</guid><dc:creator><![CDATA[xiongjie gao]]></dc:creator><pubDate>Fri, 20 Nov 2026 14:44:34 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Fri, 20 Nov 2026 14:36:27 GMT]]></title><description><![CDATA[<p dir="auto">我去老哥你咋啥卡都有，羡慕了。</p>
]]></description><link>https://lcz.me/post/34922</link><guid isPermaLink="true">https://lcz.me/post/34922</guid><dc:creator><![CDATA[Bunsei]]></dc:creator><pubDate>Fri, 20 Nov 2026 14:36:27 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 番外 · 分享贴nv篇】Ada + Blackwell 跨代异构双卡 TP=2 跑 MiniMax H3 on Fri, 20 Nov 2026 12:55:58 GMT]]></title><description><![CDATA[<p dir="auto">赞赞，我才知道comfyui也可以跑双卡，找时间研究研究</p>
]]></description><link>https://lcz.me/post/34907</link><guid isPermaLink="true">https://lcz.me/post/34907</guid><dc:creator><![CDATA[donal2026]]></dc:creator><pubDate>Fri, 20 Nov 2026 12:55:58 GMT</pubDate></item></channel></rss>