<?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剑心比赛] AMD Ryzen AI Max+ 395 统一内存 124 GiB｜MiniMax H3 一剑双版：剑心 VS 志志雄（3D CGI / 2D 传统动画）｜一条 29 分钟]]></title><description><![CDATA[<p dir="auto">前言</p>
<p dir="auto">一台 AMD Ryzen AI Max+ 395 迷你主机，124 GiB 统一内存，没有独立显存。同一个工作流、同一个 seed、同一批官方参考图，只换提示词首行的风格前缀，跑出 3D CGI 与传统 2D 动画两版 12 秒成片。</p>
<p dir="auto">两条都<strong>没有分段、没有拼帧、没有二次插帧</strong>：294 帧一次生成，4 步蒸馏采样，一条 29 分 35 秒 / 29 分 40 秒。</p>
<ul>
<li>3D CGI 成片：<a href="https://youtu.be/uGTPbueBr4Y" rel="nofollow ugc">https://youtu.be/uGTPbueBr4Y</a></li>
<li>2D 传统动画成片：<a href="https://youtu.be/MD-a8tDzb9Y" rel="nofollow ugc">https://youtu.be/MD-a8tDzb9Y</a></li>
</ul>
<hr />
<h2>硬件 / 软件环境</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td>主机</td>
<td>单机，AMD Ryzen AI Max+ 395 / Radeon 8060S（gfx1151）</td>
</tr>
<tr>
<td>内存</td>
<td>统一内存 124 GiB，GTT 上限 96–103 GiB</td>
</tr>
<tr>
<td>系统</td>
<td>Linux</td>
</tr>
<tr>
<td>推理栈</td>
<td>ROCm 版 PyTorch + ComfyUI 0.38.0，没有 CUDA、没有 CoreML</td>
</tr>
<tr>
<td>输出</td>
<td>h264 + aac 32 kHz 立体声，24 fps</td>
</tr>
</tbody>
</table>
<p dir="auto">整机没有独立显存，53 GiB 的峰值全靠 GTT（系统内存划给 GPU 的窗口）撑着；启动时加 <code>--highvram</code>，让 19.5 GiB 的 DiT 常驻，避免每步来回搬运权重。</p>
<h2>模型档案</h2>
<ul>
<li><code>minimax_h3_fl2va_pruned_int8_convrot.safetensors</code> — 19.5 GiB（Ref2VA 基座，INT8）</li>
<li><code>qwen3vl_32b_minimax_h3_int8_convrot.safetensors</code> — 26 GiB（Qwen3-VL-32B 文本/视觉编码器，INT8）</li>
<li><code>minimax_h3_video_vae_fp16.safetensors</code> + <code>minimax_h3_audio_vae_fp32.safetensors</code> — 视频 / 音频 VAE</li>
<li>4 步蒸馏 LoRA：<code>minimax_h3_fl2v_turbo_4step_v1.0_768p_comfyui_bf16.safetensors</code></li>
</ul>
<p dir="auto">参考图走比赛题目给的 6 张（<code>&lt;Picture 1&gt;</code>–<code>&lt;Picture 6&gt;</code>），先逐张核对哈希，确认没有错位：</p>
<ul>
<li><code>Picture 1–3</code> → 剑心（橙红刺发、左颊十字疤、红色羽织、白色袴）</li>
<li><code>Picture 4–6</code> → 志志雄（绷带缠绕的面部与四肢、紫色长袍、尖刺发髻）</li>
</ul>
<p dir="auto">![参考图对照]<br />
<img src="https://upload.lcz.me/uploads/366d89f9-2f0e-4725-a551-86bcc448b7cb.jpg" alt="ref-contact.jpg" class="img-markdown  img-fluid" /></p>
<h2>关键参数（两条片子除 Style 之外完全一致）</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>3D 版</th>
<th>2D 版</th>
</tr>
</thead>
<tbody>
<tr>
<td>风格前缀</td>
<td><code>(Style: 3D CGI)</code></td>
<td><code>(Style: 2D traditional anime)</code></td>
</tr>
<tr>
<td>模型</td>
<td><code>minimax_h3_fl2va_pruned_int8_convrot</code></td>
<td>同</td>
</tr>
<tr>
<td>文本 / 视觉编码器</td>
<td><code>qwen3vl_32b_minimax_h3_int8_convrot</code></td>
<td>同</td>
</tr>
<tr>
<td>分辨率</td>
<td>1344 × 768</td>
<td>同</td>
</tr>
<tr>
<td>帧数</td>
<td>294（12.25 s @ 24 fps）</td>
<td>同</td>
</tr>
<tr>
<td>采样</td>
<td><code>euler</code> / <code>simple</code>，<strong>4 步</strong>（turbo LoRA）</td>
<td>同</td>
</tr>
<tr>
<td>cfg</td>
<td>1.0</td>
<td>同</td>
</tr>
<tr>
<td>Shift / Audio Shift</td>
<td>12 / 3</td>
<td>同</td>
</tr>
<tr>
<td>seed</td>
<td>42</td>
<td>42</td>
</tr>
<tr>
<td>参考图尺寸</td>
<td><code>ref_image_size=match</code></td>
<td>同</td>
</tr>
<tr>
<td>稀疏注意力</td>
<td>Sol-Attn，<code>tau=1.3</code>，<code>start_percent=0.2</code></td>
<td>同</td>
</tr>
<tr>
<td>注意力后端</td>
<td>CK flash attention（<code>--use-ck-attention</code>）</td>
<td>同</td>
</tr>
<tr>
<td>音频</td>
<td>模型原生音频，aac 32 kHz 立体声</td>
<td>同</td>
</tr>
</tbody>
</table>
<h2>为什么 124 GiB 能一次跑完 294 帧</h2>
<ol>
<li><strong>4 步蒸馏 LoRA</strong>：基座要 50 步，套上 turbo LoRA 后 4 步出片，这是最大单项加速，也是"一条半小时"和"一条三小时"的分界。</li>
<li><strong>Sol-Attn 稀疏注意力</strong>：<code>BlockSparseAttention</code>，<code>selection=sol-attn</code>，<code>tau=1.3</code>，<code>start_percent=0.2</code>，<code>min_tokens=12288</code>，sinks 用 <code>exact_kv_and_rows</code>。124 帧 @1344×768 实测 <strong>575.2 s → 484.3 s（1.19×）</strong>，抽帧逐张比对无画质差异。</li>
<li><strong>CK flash attention</strong>：全程开启，替代默认 SDPA。</li>
<li><strong>文本/视觉编码器固定到 CPU</strong>：gfx1151 上视觉塔的 conv 在 ROCm 会崩（见踩坑 ②），改到 CPU 只编码一次，DiT 采样仍在 GPU，GTT 反而更宽裕。</li>
</ol>
<p dir="auto">补充一句：SageAttention 也试过，<strong>更慢且画质漂移，已弃用</strong>。</p>
<p dir="auto">带 6 张参考图后序列长度从 73k 涨到 <strong>95 607 token</strong>（6 个 <code>ref_img</code> 段 + text / audio / video），4 步采样共 21 分钟出头，单步 283–509 s/it。</p>
<h2>实测耗时</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>版本</th>
<th>Prompt executed</th>
<th>墙钟</th>
<th>4 步采样</th>
<th>编码 + VAE + 其余</th>
<th>峰值 GTT</th>
<th>主机 RSS</th>
</tr>
</thead>
<tbody>
<tr>
<td>3D</td>
<td><code>00:29:35</code></td>
<td>1776.2 s</td>
<td>1268 s（21:08）</td>
<td>约 508 s</td>
<td>53.0 GiB</td>
<td>30.6 GiB</td>
</tr>
<tr>
<td>2D</td>
<td><code>00:29:40</code></td>
<td>1785.8 s</td>
<td>1264 s（21:04）</td>
<td>约 522 s</td>
<td>53.7 GiB</td>
<td>33.8 GiB</td>
</tr>
</tbody>
</table>
<p dir="auto">两条几乎同时长：2D 版多出的 9.6 s 落在编码与 VAE 解码上，采样反而略快 4 s——风格前缀对计算量没有实质影响，只改变模型先验。</p>
<h2>成片校验</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项</th>
<th>3D</th>
<th>2D</th>
</tr>
</thead>
<tbody>
<tr>
<td>分辨率</td>
<td>1344 × 768</td>
<td>1344 × 768</td>
</tr>
<tr>
<td>帧率 / 帧数</td>
<td>24 fps / 294 帧</td>
<td>24 fps / 294 帧</td>
</tr>
<tr>
<td>时长</td>
<td>12.25 s</td>
<td>12.25 s</td>
</tr>
<tr>
<td>视频编码</td>
<td>h264</td>
<td>h264</td>
</tr>
<tr>
<td>音频</td>
<td>aac 32 kHz 立体声，非静音</td>
<td>同</td>
</tr>
<tr>
<td>文件大小</td>
<td>13.9 MB</td>
<td>12.8 MB</td>
</tr>
</tbody>
</table>
<p dir="auto">直接在 1344×768 采样，无缩放、无补帧、无裁切。帧数取 294 是因为 H3 要求 <code>帧数 % 17 == 5</code>，294 是 12 s 档最接近的合法值。</p>
<h2>Prompt（统一英文，只切 Style）</h2>
<p dir="auto">3D 版：</p>
<pre><code class="language-text">(Style: 3D CGI) Masterpiece, high quality, cinematic lighting.
Subject: A fierce battle sequence featuring two characters based on the reference images—a red-clad swordsman (Jianxin) and a purple-robed warrior (Zhizhixiong).
Action: The camera begins with a dynamic low-angle tracking shot. The swordsman in red dashes forward with a long sword, leaving a glowing trail, while the warrior in purple stands firm and executes a sweeping counter-attack with a flaming effect. They clash in the center of the frame, creating a shockwave of energy and sparks. The camera rapidly orbits around them as the fiery battle intensifies, concluding with the red-clad swordsman landing gracefully while the purple warrior points his weapon forward, both facing the camera.
Environment: Dramatic background with embers floating in the air, high contrast lighting.
&lt;Character reference: Jianxin is &lt;Picture 1&gt;, &lt;Picture 2&gt;, &lt;Picture 3&gt;. Zhizhixiong is &lt;Picture 4&gt;, &lt;Picture 5&gt;, &lt;Picture 6&gt;. Keep their faces, hairstyles and costumes exactly as shown.&gt;
</code></pre>
<p dir="auto">2D 版：首行换成 <code>(Style: 2D traditional anime)</code>，其余一字不差。</p>
<p dir="auto"><code>&lt;Picture N&gt;</code> 是 H3 原生的 1-based 引用标签，节点侧 <code>ref_images.ref_image_0..5</code> 按同样顺序绑定。</p>
<h2>工作流</h2>
<p dir="auto">节点链（API 格式 JSON 见附件 <code>workflow-3d.json</code> / <code>workflow-2d.json</code>，两版只差提示词与文件名）：</p>
<pre><code>UNETLoader (h3_fl2va_pruned_int8_convrot)
CLIPLoader (qwen3vl_32b_minimax_h3_int8_convrot)
  ├─ LoraLoaderModelOnly (fl2v_turbo_4step_v1.0_768p, strength 1.0)
  ├─ BlockSparseAttention (Sol-Attn, tau=1.3, start_percent=0.2)
  └─ MiniMaxH3SigmaShift (video 12 / audio 3)
MiniMaxH3ReferenceToVideo (1344×768, length 294, ref_image_size=match)
  └─ KSampler (4 步, euler/simple, cfg 1.0, seed 42)
       ├─ VAEDecode (video) ─┐
       └─ VAEDecodeAudio ────┴─ CreateVideo (24 fps) → SaveVideo
</code></pre>
<p dir="auto">6 个 <code>LoadImage</code> 分别接到 <code>ref_images.ref_image_0</code> … <code>ref_image_5</code>。导入 JSON 即可还原整张节点图。</p>
<h2>画面对照</h2>
<p dir="auto">两版都完成了 prompt 要求的动作：红衣剑客突进、火焰横扫反击、中央交锋、低角度环绕运镜、结尾双方持刃相对。</p>
<ul>
<li>3D 版：材质光滑、光影立体，接近三维渲染质感；火星与火焰柱构成包围式构图，轮廓光明显。</li>
<li>2D 版：线条清晰、色块分明，典型赛璐璐手绘调性；剑刃交错与橙黄光带形成对角线构图，红发剑士与缠脸紫袍对手的对决更"动画化"。</li>
</ul>
<p dir="auto">2D 版压力更大——平面化最容易把脸型和服装简化掉，实测十字疤、绷带和紫袍都在，但环境火焰的层次比 3D 版单薄，这是风格化本身的代价。</p>
<h2>两个值得记录的坑（都很隐蔽）</h2>
<p dir="auto"><strong>① autogrow 子输入必须用点号 key，否则参考图静默失效。</strong></p>
<p dir="auto"><code>MiniMaxH3ReferenceToVideo.ref_images</code> 是 autogrow 输入，API 格式里子输入 key 必须是 <code>ref_images.ref_image_0</code> 这种点号形式。一开始写成嵌套对象 <code>{"ref_images": {"ref_image_0": ...}}</code>，执行器直接丢弃、<code>ref_images=None</code>，<strong>不报错也不告警</strong>，出片是"通用仙侠"形象。对照组实验里"有参考图"和"完全没有参考图"两版视频<strong>逐位相同</strong>（meanabsdiff = 0.000），才确认参考图从未生效。</p>
<p dir="auto"><strong>② gfx1151 上视觉编码器 conv 必崩，把编码器放 CPU 解决。</strong></p>
<p dir="auto">接线修好后，Qwen3VL 视觉塔的 patch-embed <code>conv</code> 在 ROCm 上稳定崩溃：先是 <code>tpp.c:86 (__pthread_tpp_change_priority)</code> glibc 断言 abort，限制 <code>OMP_NUM_THREADS</code> 后变成 segfault，栈顶固定在 <code>comfy/text_encoders/qwen3vl.py preprocess_embed</code> → <code>qwen35.py:472</code>。与图片张数无关（1 张也崩）。最终把文本/视觉编码器固定在 CPU（<code>text_encoder_device()</code> 加环境变量开关，<code>H3_TE_CPU=1</code>），只编码一次，DiT 采样仍在 GPU，问题消失。</p>
<h2>复现</h2>
<p dir="auto">同环境（gfx1151 + ROCm PyTorch + ComfyUI 0.38.0 + 上述四个权重）用同一 prompt、同一 seed、同一工作流重跑即可复现：seed 42，4 步，294 帧。</p>
<p dir="auto">需要留意的三点：</p>
<ul>
<li>内存下限是刚需：权重 19.5 + 26 GiB，加 95 607 token 的 4 步采样，峰值 GTT 53 GiB。</li>
<li>4 步 turbo LoRA 是 768p 档训练的，再往上堆分辨率采样时间会非线性上升（1280×768 单步 395–577 s），交互可用的上限就是 832×480–1344×768。</li>
<li>音频是模型原生输出，不要额外混音；<code>CreateVideo</code> 里 24 fps 与 294 帧要对齐，否则时长会漂。</li>
</ul>
<h2>附件</h2>
<ul>
<li>
<p dir="auto"><code>workflow-3d.json</code> / <code>workflow-2d.json</code>：完整 API 工作流<a href="https://upload.lcz.me/uploads/62d1314f-2f08-4544-ace2-6f9825c95070.json" rel="nofollow ugc">workflow-3d.json</a><br />
<a href="https://upload.lcz.me/uploads/9ab02f36-abd6-4ed2-8f6c-dc82a3878291.json" rel="nofollow ugc">workflow-2d.json</a></p>
</li>
<li>
<p dir="auto"><code>log-3d.png</code> / <code>log-2d.png</code>：完整运行日志截图（含 4 步进度条与 <code>Prompt executed</code> Total Time）<br />
<img src="https://upload.lcz.me/uploads/5b6a03ea-feef-4920-af24-8264fb69b78a.png" alt="log-3d.png" class="img-markdown  img-fluid" /><br />
<img src="https://upload.lcz.me/uploads/271f038d-b5d6-4320-b8d3-20b12c6692cd.png" alt="log-2d.png" class="img-markdown  img-fluid" /></p>
</li>
<li>
<p dir="auto"><code>frames-3d.jpg</code> / <code>frames-2d.jpg</code>：关键帧（0 s / 6.7 s / 10 s）<br />
<img src="https://upload.lcz.me/uploads/e8c0100e-84fc-4fcb-9893-0d8b45923520.jpg" alt="frames-3d.jpg" class="img-markdown  img-fluid" /><br />
<img src="https://upload.lcz.me/uploads/76b387af-6597-46c8-b67e-50fe47cba5b7.jpg" alt="frames-2d.jpg" class="img-markdown  img-fluid" /></p>
</li>
</ul>
<blockquote>
<p dir="auto">参考图版权归原作者，本贴仅用于比赛展示。</p>
</blockquote>
]]></description><link>https://lcz.me/topic/3169</link><generator>RSS for Node</generator><lastBuildDate>Thu, 19 Nov 2026 00:16:38 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/3169.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Nov 2026 03:23:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [H3剑心比赛] AMD Ryzen AI Max+ 395 统一内存 124 GiB｜MiniMax H3 一剑双版：剑心 VS 志志雄（3D CGI / 2D 传统动画）｜一条 29 分钟 on Wed, 18 Nov 2026 09:42:42 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 分 · 编号 e3169-5324-1</p>
</blockquote>
]]></description><link>https://lcz.me/post/34376</link><guid isPermaLink="true">https://lcz.me/post/34376</guid><dc:creator><![CDATA[Xiaote]]></dc:creator><pubDate>Wed, 18 Nov 2026 09:42:42 GMT</pubDate></item><item><title><![CDATA[Reply to [H3剑心比赛] AMD Ryzen AI Max+ 395 统一内存 124 GiB｜MiniMax H3 一剑双版：剑心 VS 志志雄（3D CGI / 2D 传统动画）｜一条 29 分钟 on Wed, 18 Nov 2026 09:43:00 GMT]]></title><description><![CDATA[<p dir="auto">过审，动作画面太慢了。本来不予加优秀，但是画面非常好，破格一次。<br />
20积分比赛结束后统一结算。</p>
]]></description><link>https://lcz.me/post/34375</link><guid isPermaLink="true">https://lcz.me/post/34375</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Wed, 18 Nov 2026 09:43:00 GMT</pubDate></item></channel></rss>