MiniMax H3 视频大赛参赛帖:双 R9700 本地管线 1344×768/12s 全质量出片
-
0. 结论
- 双卡 R9700(32G/卡)本地跑通 H3 R2V 全链路:6 张官方参考图 → 1344×768 / 12.25s / 294 帧 / 20 步全质量,单支 76.5 分钟,3D/2D 两版同提示词同 seed。
- 加速构成 = int8 convrot 量化模型(20G 主模型)+ comfy_kitchen HIP 内核;实测三种注意力机制无差异(见 §5),瓶颈在量化 Linear 与模型换装,不在 attention。
- 关键坑一个:H3 的
ref_images(AUTOGROW)在 /prompt API 必须用扁平点号键,常规 list 写法被静默丢弃 → 退化为纯文生视频、参考图完全失效。解法见 §4。
1. 硬件与软件
项 配置 主板/CPU X99-TF / E5-2696 v3(18C36T) 内存 128G DDR4 ECC GPU 2× AMD Radeon R9700 32G(gfx1201) 系统 Ubuntu 26.04.1 / kernel 7.0.0-43 / ROCm 7.2.4 ComfyUI 前端 1.58.5,comfy_kitchen hip 后端 电源 1250W(双卡直连) 2. 模型清单
文件 用途 体积 minimax_h3_ref2va_pruned_int8_convrot.safetensors R2V 主干(DiT) 20G qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors 文本/参考图编码器(VLM) 15.7G minimax_h3_video_vae_int8_convrot.safetensors 视频 VAE — minimax_h3_audio_vae_fp32.safetensors 音频 VAE(原生音轨) — 单卡显存账:TE 15.7G + 主模型 20G = 35.7G > 32G,ComfyUI 自动 offload 换装(
loaded partially, lowvram patches属正常)。3. 工作流(/prompt API 提交,可复现)
LoadImage×6 → MiniMaxH3ReferenceToVideo(ref_image_size=match) ├─ clip = CLIPLoader(qwen3vl_32b nvfp4, type=minimax) ├─ vae = video VAE / audio_vae = audio VAE ├─ width=1344 height=768 length=288 └─ 输出: conditioning + 空白视频 latent RandomNoise(seed=12345) → KSamplerSelect(res_multistep) BasicScheduler(model=主干, simple, steps=20, denoise=1.0) ← 无 LoRA 全质量档 BasicGuider → SamplerCustomAdvanced VAEDecode + VAEDecodeAudio → CreateVideo(24fps) → SaveVideo提示词(3D/2D 两版仅风格行不同):
(Style: 3D CGI animation) ← 2D 版为 (Style: 2D traditional anime) 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.4. 坑与解法(现象/根因/解法)
现象 根因 解法 参考图完全不生效,出片成纯文生视频,无任何报错 AUTOGROW 输入按 dict 消费(源码 (ref_images or {}).values()),/prompt 传 list 被静默丢弃扁平点号键: "ref_images.ref_image_0": ["<LoadImage节点id>", 0](已用官方 execution 测试用例验证该格式)289 帧解码阶段 hipErrorIllegalAddress,随后队列全部任务连环瞬崩ROCm 分配失败直接毒化进程级 GPU 上下文;ComfyUI 模型跨任务常驻缓存,上任务残留 + 下任务换装叠加爆卡 重启 ComfyUI 清上下文;长任务前先重启清缓存;队列串行 ≠ 显存安全 朋友侧工作流在 GPU 上 spawn 独立 llama-server(17.5G),与 H3 模型叠加必炸 提示词节点的 llama-server 绕过 ComfyUI 显存管理器 双卡实例隔离:专用卡不对外,对外卡独立 ComfyUI 进程 穿透访问启动页卡 3 分钟+ object_info 未压缩 2.7MB 过跨洋隧道(13KB/s) nginx 反代 gzip:2.7MB→324KB,206s→9.6s;静态资产加 30d immutable 缓存 5. 实测数据
单卡正式出片(1344×768 / 294 帧 / 20 步 / 无 LoRA / seed 12345 / 6 参考图 match):
版本 journal Total Time 规格 3D CGI 4650.3 s(77.5 min) 1344×768 / 12.25s / 294 帧 / 24fps 2D 手绘 4590.3 s(76.5 min) 同上 同规格提速对照(1344×768 / 294 帧):
配置 耗时 画质 ref2v_turbo_4step LoRA(4 步) 870 s(14.5 min) 细节软,角色可辨 无 LoRA 20 步(参赛档) 4590~4650 s 全质量 注意力机制横评(864×480 / 124 帧 / 4 步 / 同 seed / 单卡独占):
模式 总耗时 PyTorch SDPA(默认) 195.2 s comfy_kitchen int8 attention(--use-ck-attention) 195.1 s SageAttention 3.3.12 210.2 s 三种模式逐帧 PSNR 11~13 dB(轨迹分叉,4 步蒸馏模型对数值扰动敏感),画面均无伪影。结论:量化内核路线下 attention 非瓶颈,默认 SDPA 即可,Sage 负优化。
6. 证据清单
- 完整日志:ComfyUI journal(got prompt → Prompt executed 全程),随时可贴
- 工作流:API JSON(§3 结构 + §4 扁平键格式)可直接复现
- 视频:
- 3D CGI 版:https://youtu.be/7dSj4cW1PaE
- 2D 手绘版:https://youtu.be/cLiOQ2skN5Q
硬件:X99-TF / E5-2696 v3 / 128G ECC / 2× R9700 32G / ROCm 7.2.4。
有同卡(gfx1201)跑 H3 的欢迎交流,重点碰两个问题:AUTOGROW 的 API 格式、294 帧解码的显存尖峰。
-
-
-
-
-
-
-
-
,
风 风满楼 引用了 此主题
