<?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 剑心比赛】双 R9700 32G ×2 ｜Radiance 官方引擎 ref2va｜6 图 · 1344×768 · 12 秒｜7 分 20 秒一条]]></title><description><![CDATA[<p dir="auto">vid1 - <a href="https://youtu.be/9zF3ayP1MJY" rel="nofollow ugc">https://youtu.be/9zF3ayP1MJY</a><br />
vid2 - <a href="https://youtu.be/b7vIjrAzYU8" rel="nofollow ugc">https://youtu.be/b7vIjrAzYU8</a></p>
<p dir="auto">一、硬件配置</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目</th>
<th>配置</th>
</tr>
</thead>
<tbody>
<tr>
<td>GPU</td>
<td>AMD Radeon AI PRO R9700 32 GB ×2（gfx1201，RDNA4）</td>
</tr>
<tr>
<td>双卡互联</td>
<td>PCIe Gen3 x16（主板 X99-AD3，Root Port 00:02.0 / 00:03.0），内核级 P2P 已打通</td>
</tr>
<tr>
<td>CPU</td>
<td>Intel Xeon E5-2686 v4</td>
</tr>
<tr>
<td>内存</td>
<td>121 GB</td>
</tr>
<tr>
<td>操作系统</td>
<td>Ubuntu 26.04 LTS</td>
</tr>
<tr>
<td>内核</td>
<td>7.0.14-r9700-p2p（自编译，加入 8086:6f00 P2PDMA 白名单）</td>
</tr>
<tr>
<td>ROCm</td>
<td>7.1.52801（FHS 布局）</td>
</tr>
<tr>
<td>生成引擎</td>
<td>Radiance <strong>1.15.0</strong>（官方 Codeberg 源码自编译；kernel 库 <code>libavx@0.1.0 + libr4d@0.5.0</code>）</td>
</tr>
<tr>
<td>模型容器</td>
<td><code>minimax-h3-fp8-ref2va.rad</code> 66.1 GB：<strong>MiniMax 官方 H3 Base 权重</strong>（<code>MiniMaxAI/MiniMax-H3</code>，作者发布的 CFG-distilled 版本）→ 仅做 fp8 量化 + <code>--reuse</code> 补入 VAE encoder 与 vision tower；不是 FastH3 的 8 步蒸馏版，也未挂任何 LoRA</td>
</tr>
<tr>
<td>推理方式</td>
<td>官方 HTTP 服务 <code>POST /v1/videos</code>，<code>task=ref2va</code>，6 张参考图走 multipart</td>
</tr>
<tr>
<td>功耗上限</td>
<td>250 W / 卡</td>
</tr>
</tbody>
</table>
<h2>二、工作流</h2>
<p dir="auto">客户端（curl / ComfyUI 官方节点 <code>ComfyUI-Radiance-MiniMax</code> 均可）向本地服务提交一个 multipart 请求：</p>
<pre><code>model=minimax-h3  task=ref2va
ref_image_1..6 = 剑心 3 张 + 志志雄 3 张（原图，未预处理）
prompt = 主帖统一提示词（&lt;file 传整段内容）
size=1344x768  seconds=12.25  num_inference_steps=8
sampler=res_multistep  shift=12  audio_shift=5  seed=20261113
</code></pre>
<ul>
<li>服务端一次完成：参考图编码（原生 VAE encoder + vision tower）→ 8 步采样 → 视频解码 + 音频生成 → h264/aac 封装</li>
<li>模型口径：用的是 <strong>MiniMax 官方发布的 H3 Base 权重</strong>（含 <code>ref.blk.*</code> 参考分支，支持 ref2va），只做了 fp8 量化，<br />
没有换蒸馏模型、没有裁层、没有挂 turbo LoRA。官方权重本身是 <strong>CFG-distilled</strong>（模型卡原文：<em>"The released checkpoints are<br />
CFG-distilled Omni Transformer model weights"</em>）——CFG 蒸馏省掉的是无分类器引导的<strong>双路前向</strong>（每步一次前向而不是两次），<br />
<strong>不改变采样步数</strong>；8 步是本片选的采样档位（与对照的 ComfyUI 路径同为 8 步），不是模型限制。</li>
<li>fp8 只影响精度与显存带宽，不改变收敛所需步数；本片速度来自 fp8 权重 + 双卡 P2P/内核实现 + 请求内联编码，<br />
不是靠少算步数或换小模型。</li>
<li>提示词：主帖统一提示词<strong>逐字照抄</strong>，仅首行风格字段二选一
<ul>
<li>3D：<code>(Style: 3D CGI animation)</code></li>
<li>2D：<code>(Style: 2D traditional anime)</code></li>
<li>其余 Subject / Action / Environment 三行两版<strong>逐字节相同，未改一字</strong></li>
</ul>
</li>
<li>共用参数：<code>seed=20261113</code>、1344×768、H3 时序对齐 <strong>294 帧生成 → 导出前 288 帧</strong>、24 fps = <strong>精确 12.00 秒</strong></li>
<li>无缩放、无补帧、无空间裁切；本片未挂 LoRA（官方原生 8 步），无两段式精修</li>
</ul>
<h2>三、加速手段</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>#</th>
<th>手段</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>TP2 真张量并行</td>
<td><code>--tp 2</code>：单进程双卡，权重按 rank 切分，每步一次 all-reduce；不是两卡各跑一半再拼</td>
</tr>
<tr>
<td>2</td>
<td>内核级 PCIe P2P</td>
<td><code>--p2p on</code>：libr4d 的 all-reduce 直写对端显存（无 peer 时退 host-memory mailbox）；自编译内核打开 Broadwell-EP（8086:6f00）P2PDMA，补丁 RCCL 实测 AllReduce <strong>9.60 GB/s</strong>（系统库走 SHM 只有 5.06 GB/s）</td>
</tr>
<tr>
<td>3</td>
<td>无损 TP wire</td>
<td><code>--tp-wire exact</code>（默认）：<code>wht6</code> 在 128 KiB 以上是<strong>有损</strong>压缩，为保证画质不用</td>
</tr>
<tr>
<td>4</td>
<td>fp8 容器 + 分层放置</td>
<td>fp8 DiT；<code>--vision-tower-placement ram</code>（encoder towers 19.63 GiB/rank 钉在 host，经 P2P 就地读）、<code>--host-pool-mib 20480</code>、<code>--gpu-headroom-mib 256</code></td>
</tr>
<tr>
<td>5</td>
<td>host kernel 库 <code>libavx</code></td>
<td><strong>关键坑</strong>：容器里 4 个 k=1 <code>conv3d_ndhwc</code> 与 f32 <code>snake</code> 没有设备核，只编引擎不编 <code>libavx</code> 时会落到 libref（CPU 参考实现），请求永远不前进（<code>top</code> 见 ~3500% CPU）；补 <code>ninja libavx</code> 后由 host 核接管，正常加速</td>
</tr>
<tr>
<td>6</td>
<td>容器补转 <code>--reuse</code></td>
<td>旧 base 容器缺 encoder；用 <code>rad-convert --reuse</code> 只补转 encoder 两半（+1.1 GB），不必重下 355 GB 上游权重</td>
</tr>
</tbody>
</table>
<h2>四、执行时间（正式成片，1344×768 / 294 帧生成 → 288 帧导出）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>版本</th>
<th style="text-align:right">步数</th>
<th>采样</th>
<th style="text-align:right">全流程</th>
<th>导出</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>2D（参赛）</strong></td>
<td style="text-align:right">8</td>
<td>56.83 s/步，397.1 s</td>
<td style="text-align:right"><strong>440.4 s（7 分 20 秒）</strong></td>
<td>288 帧 / 12.000 s</td>
</tr>
<tr>
<td><strong>3D（参赛）</strong></td>
<td style="text-align:right">8</td>
<td>57.45 s/步，401.7 s</td>
<td style="text-align:right"><strong>445.0 s（7 分 25 秒）</strong></td>
<td>288 帧 / 12.000 s</td>
</tr>
</tbody>
</table>
<p dir="auto">全流程从任务提交到 MP4 封装完成，涵盖模型载入、6 图编码、采样、解码与封装；参考图无任何预处理步骤。</p>
<p dir="auto"><strong>同机横评</strong>（同一台机器、同 6 张参考图、同 seed、同 1344×768 / 294 帧 / 8 步；三行是<strong>不同画质设置</strong>，速度仅作参考）</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>路线</th>
<th>8 步是否带 LoRA</th>
<th>参考图编码</th>
<th>全流程</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Radiance 官方 1.15.0（本片）</strong></td>
<td>否（原生 8 步）</td>
<td>请求内联编码（计入 queue and prompt 15.7 s）</td>
<td><strong>440.4 s / 445.0 s</strong></td>
</tr>
<tr>
<td>ComfyUI TP2（int8 ConvRot + CK attn）</td>
<td>是（turbo 8-step LoRA）</td>
<td>独立预编码 + LoRA 加载</td>
<td>680.5 s / 691.2 s</td>
</tr>
<tr>
<td>Radiance fork（Bunsei h3-fullref）</td>
<td>是（turbo 8-step LoRA）</td>
<td>独立 <code>prepare</code> 预编码</td>
<td>758.7 s</td>
</tr>
</tbody>
</table>
<p dir="auto">补充说明：</p>
<ul>
<li>本片是<strong>官方原生 8 步、不挂 LoRA</strong>；ComfyUI 与 fork 两行是"8 步 + turbo LoRA"的配置。两者画质档位不同，<br />
速度差（约 1.5×）只说明本方案在同分辨率下更快，<strong>不能等同于同画质下的加速比</strong>。</li>
<li>"无 prepare" 指参考图编码在同一个请求里完成，没有单独的离线预编码阶段；不等于不做编码。</li>
<li>如需同画质对比，可给官方服务加 <code>--lora-dir</code> 挂同一个 turbo LoRA 后重测（未包含在本片数据内）。</li>
</ul>
<h2>五、完整执行日志</h2>
<p dir="auto">服务启动（关键行）：</p>
<pre><code>I device: the 2 cards reach each other's memory directly (peer to peer)
I host-only ops: conv3d_ndhwc, snake resolved a host kernel and no device one, so the planner
  places those ops' arithmetic on the host and its weights in the container's mapping. Not a hole.
I   --kernels   libavx@0.1.0,libr4d@0.5.0,libref@0.1.0      [auto]
I   --p2p       peer to peer                                [command line]
I load: 1522 weight(s), 55.08 GiB of planes, rearranged for their kernels by 16 worker(s)
I memory: pinned by this process 83.37 GiB
I server: listening on http://127.0.0.1:8199 (36 threads, up to 72)
</code></pre>
<p dir="auto">3D（8 步）：</p>
<pre><code>I video ...: 1344x768, 294 frames (12.25 s), 3551 prompt tokens, 8 steps, 6 reference parts, seed=20261113
I video ...: step 2/7, 57.42 s/step, eta 287 s
I video ...: step 7/7, 57.45 s/step, eta 0 s
I video ...: completed, 16.5 MB (libx264), 445.0 s: queue and prompt 15.6 s, steps 401.7 s, decode 27.7 s
</code></pre>
<p dir="auto">2D（8 步）：</p>
<pre><code>I video ...: 1344x768, 294 frames (12.25 s), 3551 prompt tokens, 8 steps, 6 reference parts, seed=20261113
I video ...: step 2/7, 56.62 s/step, eta 283 s
I video ...: step 7/7, 56.83 s/step, eta 0 s
I video ...: completed, 16.1 MB (libx264), 440.4 s: queue and prompt 15.7 s, steps 397.1 s, decode 27.6 s
</code></pre>
<h2>六、成片规格验证</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>版本</th>
<th>视频</th>
<th>音频</th>
<th>时长</th>
<th>体积</th>
</tr>
</thead>
<tbody>
<tr>
<td>OFFICIAL_3D_8step_1344x768</td>
<td>h264 1344×768 · 24 fps · <strong>288 帧</strong></td>
<td>aac 32 kHz 立体声</td>
<td><strong>12.000 秒</strong></td>
<td>16.3 MB</td>
</tr>
<tr>
<td>OFFICIAL_2D_8step_1344x768</td>
<td>h264 1344×768 · 24 fps · <strong>288 帧</strong></td>
<td>aac 32 kHz 立体声</td>
<td><strong>12.000 秒</strong></td>
<td>15.9 MB</td>
</tr>
</tbody>
</table>
<p dir="auto">音轨检测（ffmpeg volumedetect）与画面检测：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>检查</th>
<th>3D</th>
<th>2D</th>
</tr>
</thead>
<tbody>
<tr>
<td>mean / max 音量</td>
<td>−20.4 dB / −1.6 dB</td>
<td>−18.7 dB / −1.3 dB</td>
</tr>
<tr>
<td>全黑帧（blackdetect, d=0.04, pix_th=0.10）</td>
<td>0</td>
<td>0</td>
</tr>
</tbody>
</table>
<p dir="auto">音效（刀剑交击、火焰呼啸、能量震波）由 H3 音频分支自行生成，<strong>未喂任何参考音频</strong>。</p>
<h2>七、规格口径说明</h2>
<ul>
<li>两条片都是<strong>原生 1344×768 直出</strong>，没有低分辨率生成再超分</li>
<li>时长按 <strong>288 帧 × 24 fps = 精确 12.00 秒</strong>；H3 的 17k+5 时序网格要求生成 294 帧（12.25 秒），<br />
导出时<strong>无损截取前 288 帧</strong>（<code>ffmpeg -c copy -frames:v 288</code>），无补帧、无插值</li>
<li>音频同步截到 12.000 s（<code>atrim=0:12</code>，AAC 192k 重编码），容器时长精确 12.000 s</li>
<li>全部采样步都跑在 1344×768，无上采或裁切环节</li>
<li>双卡是<strong>真张量并行</strong>，权重按 rank 切分；<code>--tp-wire exact</code> 下 rank 间 transmission 无损，<br />
输出与单卡路径的差异仅来自浮点求和的结合顺序</li>
</ul>
<h2>八、复现与附件</h2>
<p dir="auto">个自定义的模型提供方（Custom Provider）或直接在本地模型卡```bash</p>
<h1>1) host kernel 库（缺了它参考图编码会落 CPU 参考实现）</h1>
<p dir="auto">cd radiance &amp;&amp; ninja libavx</p>
<h1>2) 起服务</h1>
<p dir="auto">systemd-run --user --scope -q -p MemoryMax=112G -- env ROCR_VISIBLE_DEVICES=0,1 <br />
OMP_NUM_THREADS=4 OMP_WAIT_POLICY=passive <br />
build/bin/radiance --model minimax-h3-fp8-ref2va.rad --radiance-home build/radiance_home <br />
--tp 2 --tp-wire exact --p2p on --vision-tower-placement ram <br />
--host 127.0.0.1 --port 8199 --gpu-headroom-mib 256 --host-pool-mib 20480</p>
<h1>3) 提交（6 图 ref2va）</h1>
<p dir="auto">curl -X POST <a href="http://127.0.0.1:8199/v1/videos" rel="nofollow ugc">http://127.0.0.1:8199/v1/videos</a> <br />
-F model=minimax-h3 -F task=ref2va -F "prompt=&lt;prompt.txt" <br />
-F size=1344x768 -F seconds=12.25 -F num_inference_steps=8 <br />
-F sampler=res_multistep -F shift=12 -F audio_shift=5 -F seed=20261113 <br />
-F "ref_image_1=@refs/ref1.png" ... -F "ref_image_6=@refs/ref6.png"</p>
<pre><code>
- 参考图：`refs/ref1..6.png`（剑心 3 张 + 志志雄 3 张，由原始 jpeg 转出，无水印处理）
- 抽帧对照：`frames-2d.png` / `frames-3d.png`
- 成片：`OFFICIAL_2D_8step_1344x768.mp4` / `OFFICIAL_3D_8step_1344x768.mp4`


[request-8step-ref2va.json](https://upload.lcz.me/uploads/2289b6d6-6af8-4169-bb6b-b5c53352e37c.json)</code></pre>
]]></description><link>https://lcz.me/topic/3087</link><generator>RSS for Node</generator><lastBuildDate>Thu, 19 Nov 2026 00:16:32 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/3087.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Nov 2026 07:51:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 【H3 剑心比赛】双 R9700 32G ×2 ｜Radiance 官方引擎 ref2va｜6 图 · 1344×768 · 12 秒｜7 分 20 秒一条 on Sun, 15 Nov 2026 15:28:09 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=3c59dda5525" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:1.4em;width:auto;vertical-align:middle" title="✅" alt="✅" /> 版主审定：本帖设为<strong>优秀</strong>，作者 <strong>+3 积分</strong>奖励，继续加油！</p>
<blockquote>
<p dir="auto">奖励凭证：优秀 +3 分 · 编号 e3087-2042-1</p>
</blockquote>
]]></description><link>https://lcz.me/post/33563</link><guid isPermaLink="true">https://lcz.me/post/33563</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Sun, 15 Nov 2026 15:28:09 GMT</pubDate></item><item><title><![CDATA[Reply to 【H3 剑心比赛】双 R9700 32G ×2 ｜Radiance 官方引擎 ref2va｜6 图 · 1344×768 · 12 秒｜7 分 20 秒一条 on Sun, 15 Nov 2026 15:28:04 GMT]]></title><description><![CDATA[<p dir="auto">通过初审，20积分比赛结束后统一结算。</p>
]]></description><link>https://lcz.me/post/33562</link><guid isPermaLink="true">https://lcz.me/post/33562</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Sun, 15 Nov 2026 15:28:04 GMT</pubDate></item></channel></rss>