Open
【11月贡献大赛-缺陷修复】docs(diffusers-ascend-adaptation): 纠正 bf16 与黑图归因,更新 FLUX 显存口径 #7330
【11月贡献大赛-缺陷修复】docs(diffusers-ascend-adaptation): 纠正 bf16 与黑图归因,更新 FLUX 显存口径 #7330
Open
饼酥Add on 4 hours ago
饼酥
饼酥
4 hours ago

skills/adaptation/diffusers-ascend-adaptation/SKILL.md 里有两处与实测相反的建议:

  1. 异常表写「黑图 → bfloat16 不受支持 → 换 float16」;
  2. Fallback Ladder 第 4 步直接建议「用 float16 替代 bfloat16」。

在 Ascend910_9362 + CANN 9.2.1 + diffusers 0.35.1 上实测:FLUX.1-schnell 用 bfloat16 可以正常出图,1024×1024 峰值 36.34 GB;黑图的真实原因是 VAE 精度不足(VAE 用 fp16/bf16 时溢出),把 VAE 保持 fp32、并在 decode 前把 latents cast 到 VAE dtype 即可。同 seed 下 VAE bf16 与 fp32 的 PSNR 为 53.18 dB,无可见差异。

本次修改:

  • 黑图一行改为「VAE 精度不足」并给出 fp32 + latents cast 的处理方式;
  • Fallback 第 4 步改为「transformer 保持 bf16,单独排查 VAE」;
  • FLUX 显存口径 ~15 GB (bf16) 改为 ~32-36 GB (bf16, 1024×1024)(12B 权重本身就超过 24GB);
  • 补一条实测注记,标明硬件与版本,便于复核。
likedislike
Merge blocked
ascend-robotascend-robotCollaborators
4 hours ago Added label: ascend-cla/yes
ascend-robot
ascend-robotCollaborators
4 hours ago Comments:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.


PR Approval Progress

⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)

Module Approval Details

module lgtm status approve status
sig-model-agent ❌ (0/2)(You can also ask: 花新宇, 陈少宏, 顾梦沁, cookieyyds, guohui8023) ❌ (0/1)(You can also ask: 胡晓曼, 陈少宏, 王岩, 林泽毅, 张玉橙)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

gcw_6a3w2yXz, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike