cang-ying/memory/eed/wan22_test_hardware.md

29 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: Wan2.2 I2V 14B 双专家 Q4 GGUF 跑通配置
description: Wan2.2 小猫后空翻在 7900XTX 24G显存/32G内存跑通的关键配置动态内存参数+官方480P档+4x放大
type: project
---
# Wan2.2 I2V 14B 双专家 Q4 GGUF 跑通2026-07-31
## 机器
RX 7900 XTX 24GB VRAM + 32GB RAMROCm 7.2.4ComfyUI 带动态内存参数运行中。
## ✅ 高清版方案1664×960×98帧30步24分18秒出片无OOM——解决"马赛克"问题
1. **ComfyUI 启动参数**(和 LTX 同一套):
`--enable-dynamic-vram --fast-disk --vram-headroom 3 --async-offload --disable-pinned-memory`
2. **提交脚本**`/tmp/wan22_cat_backflip_hd.py`API prompt 格式,官方 Wan 原生节点 + 尾部放大):
- 分辨率用**官方 480P 档 832×480**(非标 768×512 会出网格伪影=马赛克感;官方只有 480P=832×480 和 720P=1280×720 两档)
- 起始图先裁成 16:9 再喂(`cat_start_169.png`1024×1024 正方形直接塞会压扁丢细节)
- 采样参数用**社区验证档steps=30, cfg=3.5, shift=8.0**(上次 shift5/cfg5 偏糊)
- WanVideoDecode 后接 **UpscaleModelLoader(4x-UltraSharp.pth) → ImageUpscaleWithModel → ImageScale(lanczos, 1664×960) → VHS_VideoCombine**
- 其余同旧版high_noise(main_device)+low_noise(offload_device)+T5 bf16(offload_device)+Wan2.1_VAE+瓦片解码(272×272)
3. **出片**`wan22_cat_backflip_hd_00001.mp4`1664×960、98帧6.1秒、7.8MB、h264
## 之前失败/糊的原因7/30-7/31
- 704×704 太大 + 没开动态内存 → 采样中途内存爆(第一次)
- 768×512 非官方档位 + 正方形起始图硬塞 + shift5/cfg5 → 出片"一坨马赛克"(第二次)
- T5-XXL bf16 11.3G 是内存大头,必须 offload_device
**Why:** 爸爸问"不能跑Wan2.2是内存不够还是显存不够"→硬件都够24G显存+32G内存绰绰有余缺的是动态内存配置+官方分辨率档位。
**How to apply:** 跑 Wan2.2 I2V 复用 /tmp/wan22_cat_backflip_hd.py分辨率必须用官方档832×480/1280×720模糊就接 4x-UltraSharp 放大T5 别放 main_device。