From ce29976dae0e6fb7865297998af7b6f3449e88b0 Mon Sep 17 00:00:00 2001 From: pansiling Date: Thu, 29 Oct 2026 20:25:58 +0800 Subject: [PATCH 1/8] =?UTF-8?q?chore(diffusers):=20=E7=99=BB=E8=AE=B0?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC=E6=96=B0=E5=A2=9E=E7=9A=84=208=20?= =?UTF-8?q?=E4=B8=AA=E7=94=A8=E4=BE=8B=E4=B8=BA=E4=B8=8D=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples-guards/diffusers/examples_manifest.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples-guards/diffusers/examples_manifest.yaml b/examples-guards/diffusers/examples_manifest.yaml index bdb888f05..238baf25a 100644 --- a/examples-guards/diffusers/examples_manifest.yaml +++ b/examples-guards/diffusers/examples_manifest.yaml @@ -977,6 +977,8 @@ unsupported: - examples/dreambooth/train_dreambooth_lora_flux_kontext.py - examples/dreambooth/train_dreambooth_lora_flux2.py - examples/dreambooth/train_dreambooth_lora_flux2_img2img.py + - examples/dreambooth/train_dreambooth_lora_flux3_klein.py + - examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py - examples/dreambooth/train_dreambooth_lora_ideogram4.py - examples/cosmos/eval_cosmos_predict25_lora.py - examples/cosmos/eval_lora.sh @@ -1053,6 +1055,9 @@ unsupported: # 而 NPU 的 matmul(linear) 未实现前向 AD → NotImplementedError # 回归条件:torch_npu 补 matmul 的前向 AD,或上游提供非 jvp 的蒸馏实现 - examples/research_projects/sana/train_sana_sprint_diffusers.py + # bria fibo-2:RoPE 的 complex64 索引在 NPU 未实现(aclnnIndex 不支持 DT_COMPLEX64) + - examples/dreambooth/train_dreambooth_lora_bria_fibo2.py + - examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py # ===== 代码BUG ========================================================== # 这些用例存在明确的代码缺陷,修复后可恢复: # autoencoderkl:final validation 用 AutoencoderKL.from_pretrained(output_dir) @@ -1095,11 +1100,15 @@ unsupported: - examples/dreambooth/test_dreambooth.py - examples/dreambooth/test_dreambooth_flux.py - examples/dreambooth/test_dreambooth_lora.py + - examples/dreambooth/test_dreambooth_lora_bria_fibo2.py + - examples/dreambooth/test_dreambooth_lora_bria_fibo2_img2img.py - examples/dreambooth/test_dreambooth_lora_edm.py - examples/dreambooth/test_dreambooth_lora_flux.py - examples/dreambooth/test_dreambooth_lora_flux_kontext.py - examples/dreambooth/test_dreambooth_lora_flux2.py - examples/dreambooth/test_dreambooth_lora_flux2_klein.py + - examples/dreambooth/test_dreambooth_lora_flux3_klein.py + - examples/dreambooth/test_dreambooth_lora_flux3_klein_img2img.py - examples/dreambooth/test_dreambooth_lora_hidream.py - examples/dreambooth/test_dreambooth_lora_lumina2.py - examples/dreambooth/test_dreambooth_lora_qwenimage.py From 8653fedc9f35a15b99ae1ca16acc0750ece20650 Mon Sep 17 00:00:00 2001 From: pansiling Date: Fri, 30 Oct 2026 10:27:47 +0800 Subject: [PATCH 2/8] =?UTF-8?q?docs(diffusers):=20=E8=AE=B0=E5=BD=95=20uns?= =?UTF-8?q?upported=20=E6=B8=85=E5=8D=95=E9=87=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples-guards/diffusers/examples_manifest.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples-guards/diffusers/examples_manifest.yaml b/examples-guards/diffusers/examples_manifest.yaml index 238baf25a..fffa2b88f 100644 --- a/examples-guards/diffusers/examples_manifest.yaml +++ b/examples-guards/diffusers/examples_manifest.yaml @@ -887,6 +887,15 @@ supported: - --output_dir ${CI_OUTPUT_DIR} timeout_minutes: 60 +# unsupported 量化(264 条): +# 非用例/工具类(不可看护) 182 (68.9%) +# ├ pytest 测试套件 34 / __init__ 2 / helper 27 +# ├ 转换/数据脚本 5 / 外部服务库模块 5 / community 106 +# └ .sh 入口包装 3 +# 实际脚本/用例 82 (31.1%) +# ├ 可看护(现在/小改/有凭证) 34:GATED 18 / wuerstchen 2 / IP-Adapter 4 / autoencoderkl 1 / CUDA 9 +# ├ 需上游修复 11:旧 LoRA 4 / transformers 5.x 7 +# └ 无法看护 37:Flax 7 / diffusion_policy 1 / OOM 5 / NPU 3 / 外部 1 / OTHER_BACKEND 10 / CUDA 不可修 10 unsupported: # ===== Flax/JAX 系列 ======================================================= # 以下都是训练脚本的 Flax/JAX 版本,跑不通有三层原因: From 61b55a452ac336146805754dc22016c30894c61a Mon Sep 17 00:00:00 2001 From: pansiling Date: Fri, 30 Oct 2026 10:29:29 +0800 Subject: [PATCH 3/8] =?UTF-8?q?docs(diffusers):=20=E4=BF=AE=E6=AD=A3=20uns?= =?UTF-8?q?upported=20=E9=87=8F=E5=8C=96=E7=9A=84=20.sh=20=E8=AE=A1?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples-guards/diffusers/examples_manifest.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples-guards/diffusers/examples_manifest.yaml b/examples-guards/diffusers/examples_manifest.yaml index fffa2b88f..c0e319624 100644 --- a/examples-guards/diffusers/examples_manifest.yaml +++ b/examples-guards/diffusers/examples_manifest.yaml @@ -889,9 +889,8 @@ supported: # unsupported 量化(264 条): # 非用例/工具类(不可看护) 182 (68.9%) -# ├ pytest 测试套件 34 / __init__ 2 / helper 27 -# ├ 转换/数据脚本 5 / 外部服务库模块 5 / community 106 -# └ .sh 入口包装 3 +# ├ 工具组 179(含 .sh 3):pytest 34 / __init__ 2 / helper 27 / 转换数据 5 / 外部库 5 / community 106 +# └ GATED/CUDA 的 .sh 入口包装 3(.sh 合计 6) # 实际脚本/用例 82 (31.1%) # ├ 可看护(现在/小改/有凭证) 34:GATED 18 / wuerstchen 2 / IP-Adapter 4 / autoencoderkl 1 / CUDA 9 # ├ 需上游修复 11:旧 LoRA 4 / transformers 5.x 7 From 7189aabd1129770f68bbd545587b246f89d1591e Mon Sep 17 00:00:00 2001 From: pansiling Date: Fri, 30 Oct 2026 10:34:41 +0800 Subject: [PATCH 4/8] =?UTF-8?q?docs(diffusers):=20=E5=B0=86=20.sh=20?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E5=8C=85=E8=A3=85=E7=A7=BB=E5=85=A5=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples-guards/diffusers/examples_manifest.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples-guards/diffusers/examples_manifest.yaml b/examples-guards/diffusers/examples_manifest.yaml index c0e319624..c69ac0de9 100644 --- a/examples-guards/diffusers/examples_manifest.yaml +++ b/examples-guards/diffusers/examples_manifest.yaml @@ -889,8 +889,7 @@ supported: # unsupported 量化(264 条): # 非用例/工具类(不可看护) 182 (68.9%) -# ├ 工具组 179(含 .sh 3):pytest 34 / __init__ 2 / helper 27 / 转换数据 5 / 外部库 5 / community 106 -# └ GATED/CUDA 的 .sh 入口包装 3(.sh 合计 6) +# └ 工具组 182(含 .sh 6):pytest 34 / __init__ 2 / helper 27 / 转换数据 5 / 外部库 5 / community 106 / 挪入 .sh 3 # 实际脚本/用例 82 (31.1%) # ├ 可看护(现在/小改/有凭证) 34:GATED 18 / wuerstchen 2 / IP-Adapter 4 / autoencoderkl 1 / CUDA 9 # ├ 需上游修复 11:旧 LoRA 4 / transformers 5.x 7 @@ -989,9 +988,7 @@ unsupported: - examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py - examples/dreambooth/train_dreambooth_lora_ideogram4.py - examples/cosmos/eval_cosmos_predict25_lora.py - - examples/cosmos/eval_lora.sh - examples/cosmos/train_cosmos_predict25_lora.py - - examples/cosmos/train_lora.sh # ==== CUDA硬编码类 ======================================================= - examples/cogview4-control/train_control_cogview4.py - examples/community/tiled_upscaling.py @@ -1001,7 +998,6 @@ unsupported: - examples/research_projects/control_lora/control_lora.py - examples/cosmos3/inference_cosmos3.py - examples/profiling/profiling_pipelines.py - - examples/profiling/run_profiling.sh - examples/research_projects/flux_lora_quantization/compute_embeddings.py # GATED_MODEL - examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py # GATED_MODEL - examples/research_projects/realfill/infer.py @@ -1176,6 +1172,9 @@ unsupported: - examples/dreambooth/convert_to_imagefolder.py - examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py - examples/research_projects/sana/train_sana_sprint_diffusers.sh + - examples/cosmos/eval_lora.sh + - examples/cosmos/train_lora.sh + - examples/profiling/run_profiling.sh # 外部服务 / 废弃 shim / 库模块 / HTTP 客户端:不可独立执行 # (retrieve 需 knn.laion.ai;inference 两条是无 __main__ 的废弃 shim; # pipeline_easy 是查 civitai API 的库模块;server-async/test.py 需常驻服务)。 From 4219c18651790861f486ff205815a7d86e958fca Mon Sep 17 00:00:00 2001 From: pansiling Date: Fri, 30 Oct 2026 10:47:55 +0800 Subject: [PATCH 5/8] =?UTF-8?q?docs(diffusers):=20=E6=9B=B4=E6=96=B0=20uns?= =?UTF-8?q?upported=20=E9=87=8F=E5=8C=96=E4=B8=8E=20GATED=20=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E6=B8=85=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../diffusers/examples_manifest.yaml | 45 +++++++++---------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/examples-guards/diffusers/examples_manifest.yaml b/examples-guards/diffusers/examples_manifest.yaml index c69ac0de9..cb4f3a36d 100644 --- a/examples-guards/diffusers/examples_manifest.yaml +++ b/examples-guards/diffusers/examples_manifest.yaml @@ -4,21 +4,16 @@ scan: # .yaml is not scanned: the files under examples/ are deepspeed/accelerate # run configs, not launchable examples. .md/.txt/.json are non-examples. include_extensions: ['.py', '.sh'] - # files-only 模型(examples-guards/README.md)。2026-10-08 起 - # 对齐收口:原 scan.exclude 的 33 条规则全部迁入 - # unsupported 段(上游自测 / helper / pipeline 模块 / community 整目录等, - # 带分组注释与理由),scan 只保留 root + include_extensions 两个键。 - # unsupported 覆盖全部 308 个扫描文件:supported(52) + unsupported(256)。 - -# 新版 diffusers 需求 huggingface-hub>=1.23,huggingface-hub>=1.23 需求 -# transformers>=5.x,任何 transformers<5.x 的用例都无法跑通 + # 合计 316: + # 已支持(可看护) 52 (16.5%) + # 可看护(当前无法支持) 82 (25.9%) + # 不可看护(非用例/工具类) 182 (57.6%) supported: # ${...} 由 setup_example.sh 预下后写入 GITHUB_ENV: # ${SD15_MODEL_PATH} / ${THREE_D_ICON_PATH} <- profile diffusers-sd15 # SDXL 模型直接走 stabilityai/stable-diffusion-xl-base-1.0 在线加载。 - # FLUX.2 Klein 4B LoRA(t2i)。NPU fork(自带 torch_npu 适配 + # set_attention_backend("_native_npu"));模型非 gated,setup 预下 ~15GB。 # 冻结 transformer ~7.2GB,LoRA + bf16 单卡放得下。 @@ -887,13 +882,6 @@ supported: - --output_dir ${CI_OUTPUT_DIR} timeout_minutes: 60 -# unsupported 量化(264 条): -# 非用例/工具类(不可看护) 182 (68.9%) -# └ 工具组 182(含 .sh 6):pytest 34 / __init__ 2 / helper 27 / 转换数据 5 / 外部库 5 / community 106 / 挪入 .sh 3 -# 实际脚本/用例 82 (31.1%) -# ├ 可看护(现在/小改/有凭证) 34:GATED 18 / wuerstchen 2 / IP-Adapter 4 / autoencoderkl 1 / CUDA 9 -# ├ 需上游修复 11:旧 LoRA 4 / transformers 5.x 7 -# └ 无法看护 37:Flax 7 / diffusion_policy 1 / OOM 5 / NPU 3 / 外部 1 / OTHER_BACKEND 10 / CUDA 不可修 10 unsupported: # ===== Flax/JAX 系列 ======================================================= # 以下都是训练脚本的 Flax/JAX 版本,跑不通有三层原因: @@ -966,11 +954,20 @@ unsupported: - examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py # ==== GATED_MODEL ======================================================== # 需接受作者设定的许可条款并使用有效的 Hugging Face Token(HF_TOKEN) - # 进行身份验证才能下载模型 - # FLUX.1-dev FLUX.1-Kontext-dev FLUX.2-dev - # FLUX.2-klein-9B SD3-medium SD3.5-medium - # SD3.5-large ideogram-4-nf4 Cosmos-Predict2.5-2B - # Krea-2-Raw Krea-2-Turbo + # 进行身份验证才能下载模型: + # black-forest-labs/FLUX.1-dev + # black-forest-labs/FLUX.1-Kontext-dev + # black-forest-labs/FLUX.2-dev + # black-forest-labs/FLUX.2-klein-9B + # black-forest-labs/flux-3-image-klein-base + # stabilityai/stable-diffusion-3-medium-diffusers + # stabilityai/stable-diffusion-3.5-medium + # stabilityai/stable-diffusion-3.5-large + # ideogram-ai/ideogram-4-nf4-diffusers + # nvidia/Cosmos-Predict2.5-2B + # krea/Krea-2-Raw + # krea/Krea-2-Turbo + # briaai/Fibo-2.0-dev: 使用该模型的用例 RoPE 的 complex64 索引在 NPU 未实现 - examples/controlnet/train_controlnet_flux.py - examples/controlnet/train_controlnet_sd3.py - examples/flux-control/train_control_flux.py @@ -1060,8 +1057,8 @@ unsupported: # 回归条件:torch_npu 补 matmul 的前向 AD,或上游提供非 jvp 的蒸馏实现 - examples/research_projects/sana/train_sana_sprint_diffusers.py # bria fibo-2:RoPE 的 complex64 索引在 NPU 未实现(aclnnIndex 不支持 DT_COMPLEX64) - - examples/dreambooth/train_dreambooth_lora_bria_fibo2.py - - examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py + - examples/dreambooth/train_dreambooth_lora_bria_fibo2.py # GATED_MODEL + - examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py # GATED_MODEL # ===== 代码BUG ========================================================== # 这些用例存在明确的代码缺陷,修复后可恢复: # autoencoderkl:final validation 用 AutoencoderKL.from_pretrained(output_dir) @@ -1093,7 +1090,7 @@ unsupported: - examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py # ===================================================================== - # ===== 工具类套件 + # ===== 不可看护的用例(工具类套件等) # ===================================================================== # 上游自测与 pytest 基础设施(test_*.py / conftest.py),非可守卫 example。 - examples/advanced_diffusion_training/test_dreambooth_lora_flux_advanced.py From 987f54d7b3e1ad694074a75abd5631a3430ac670 Mon Sep 17 00:00:00 2001 From: pansiling Date: Fri, 30 Oct 2026 10:55:28 +0800 Subject: [PATCH 6/8] =?UTF-8?q?docs(diffusers):=20=E7=A7=BB=E9=99=A4=20bri?= =?UTF-8?q?a=20=E7=9A=84=20GATED=5FMODEL=20=E6=A0=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples-guards/diffusers/examples_manifest.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples-guards/diffusers/examples_manifest.yaml b/examples-guards/diffusers/examples_manifest.yaml index cb4f3a36d..17b879a73 100644 --- a/examples-guards/diffusers/examples_manifest.yaml +++ b/examples-guards/diffusers/examples_manifest.yaml @@ -967,7 +967,6 @@ unsupported: # nvidia/Cosmos-Predict2.5-2B # krea/Krea-2-Raw # krea/Krea-2-Turbo - # briaai/Fibo-2.0-dev: 使用该模型的用例 RoPE 的 complex64 索引在 NPU 未实现 - examples/controlnet/train_controlnet_flux.py - examples/controlnet/train_controlnet_sd3.py - examples/flux-control/train_control_flux.py @@ -1057,8 +1056,8 @@ unsupported: # 回归条件:torch_npu 补 matmul 的前向 AD,或上游提供非 jvp 的蒸馏实现 - examples/research_projects/sana/train_sana_sprint_diffusers.py # bria fibo-2:RoPE 的 complex64 索引在 NPU 未实现(aclnnIndex 不支持 DT_COMPLEX64) - - examples/dreambooth/train_dreambooth_lora_bria_fibo2.py # GATED_MODEL - - examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py # GATED_MODEL + - examples/dreambooth/train_dreambooth_lora_bria_fibo2.py + - examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py # ===== 代码BUG ========================================================== # 这些用例存在明确的代码缺陷,修复后可恢复: # autoencoderkl:final validation 用 AutoencoderKL.from_pretrained(output_dir) From 22256f2878f062b2829ca9be310c82b069ffffdb Mon Sep 17 00:00:00 2001 From: pansiling Date: Fri, 30 Oct 2026 14:04:54 +0800 Subject: [PATCH 7/8] =?UTF-8?q?chore:=20=E8=A7=A6=E5=8F=91=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 508dcdc87c01fce9c01ea6ba83e1654e3b77f21c Mon Sep 17 00:00:00 2001 From: pansiling Date: Fri, 30 Oct 2026 16:05:38 +0800 Subject: [PATCH 8/8] =?UTF-8?q?chore:=20=E8=A7=A6=E5=8F=91=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit