| title | Batch VAE decode 规则 | ||||
|---|---|---|---|---|---|
| created | 2026-10-06 | ||||
| updated | 2026-10-06 | ||||
| type | rule | ||||
| tags |
|
||||
| sources |
|
- 触发:修改 AutoencoderKL/Flux2 的 batch parallel decode、split/merge 或 VAE factory routing。
- 强制:配置通过 CONF-4g 的 WORLD 拓扑门禁后,只沿 batch 轴分配完整图像的连续 chunk。每个 active rank 调用 native decoder,按原 index gather 并 broadcast 完整 batch;保留本地 Diffusers slicing/tiling。B1、degree≤1 或 distributed 未初始化时走 native decode;unsupported VAE class 在初始化拒绝。
- 禁止:在 callback 中调用已包装的
self.decode造成递归;把独立请求拼成 batch;将 batch mode 禁用空间分布式执行误写为禁用本地 tiling;让 idle rank 解码伪造图像或改变输出顺序。 - 验收:KL/Flux2 覆盖 B1、uneven batch、idle rank、degree1、未初始化以及 tiling/slicing on/off;所有 rank 输出与 native reference 对齐,dtype、return_dict/tuple、图像顺序和 factory 支持边界不变。^[PR #8162]