From 688e217815def8e13781257e09c84592a47b80cd Mon Sep 17 00:00:00 2001 From: CalamitousFelicitousness Date: Thu, 7 May 2026 22:22:05 +0100 Subject: [PATCH] feat(processing): warn when distilled pipeline ignores cfg_scale --- modules/processing_args.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/processing_args.py b/modules/processing_args.py index 4e9ecaa3a..ed7150f4b 100644 --- a/modules/processing_args.py +++ b/modules/processing_args.py @@ -253,6 +253,9 @@ def set_pipeline_args(p, model, prompts:list, negative_prompts:list, prompts_2:l args['guidance_scale'] = p.cfg_scale if 'img_guidance_scale' in possible and hasattr(p, 'image_cfg_scale') and p.image_cfg_scale is not None and p.image_cfg_scale > 0: args['img_guidance_scale'] = p.image_cfg_scale + if getattr(getattr(model, 'config', None), 'is_distilled', False) and args.get('guidance_scale', 0) > 1 and not getattr(p, 'distilled_warned', False): + log.warning(f'Pipeline: cls={model.__class__.__name__} distilled=True cfg_scale={args["guidance_scale"]} ignored, forced to 1') + p.distilled_warned = True if 'generator' in possible: generator = get_generator(p) args['generator'] = generator