diff --git a/modules/processing_diffusers.py b/modules/processing_diffusers.py index e2da25cf5..4617f5f88 100644 --- a/modules/processing_diffusers.py +++ b/modules/processing_diffusers.py @@ -175,7 +175,7 @@ def process_diffusers(p: processing.StableDiffusionProcessing): prompts, negative_prompts, prompts_2, negative_prompts_2 = fix_prompts(prompts, negative_prompts, prompts_2, negative_prompts_2) parser = 'Fixed attention' clip_skip = kwargs.pop("clip_skip", None) - if clip_skip is not None: + if clip_skip is not None and 'XL' in model.__class__.__name__: clip_skip -= 1 if shared.opts.prompt_attention != 'Fixed attention' and 'StableDiffusion' in model.__class__.__name__ and 'Onnx' not in model.__class__.__name__: try: diff --git a/modules/shared.py b/modules/shared.py index ccbe5a382..85aa2c8f3 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -374,12 +374,12 @@ options_templates.update(options_section(('cuda', "Compute Settings"), { "cuda_compile": OptionInfo([] if not cmd_opts.use_openvino else ["Model", "VAE", "Upscaler"], "Compile Model", gr.CheckboxGroup, {"choices": ["Model", "VAE", "Text Encoder", "Upscaler"]}), "cuda_compile_backend": OptionInfo("none" if not cmd_opts.use_openvino else "openvino_fx", "Model compile backend", gr.Radio, {"choices": ['none', 'inductor', 'cudagraphs', 'aot_ts_nvfuser', 'hidet', 'ipex', 'openvino_fx', 'stable-fast', 'deep-cache', 'olive-ai']}), "cuda_compile_mode": OptionInfo("default", "Model compile mode", gr.Radio, {"choices": ['default', 'reduce-overhead', 'max-autotune', 'max-autotune-no-cudagraphs']}), - "cuda_compile_fullgraph": OptionInfo(False, "Model compile fullgraph"), + "cuda_compile_fullgraph": OptionInfo(True, "Model compile fullgraph"), "cuda_compile_precompile": OptionInfo(False, "Model compile precompile"), "cuda_compile_verbose": OptionInfo(False, "Model compile verbose mode"), "cuda_compile_errors": OptionInfo(True, "Model compile suppress errors"), "diffusers_quantization": OptionInfo(False, "Dynamic quantization with TorchAO"), - "deep_cache_interval": OptionInfo(3.0, "DeepCache cache interval", gr.Slider, {"minimum": 1, "maximum": 10, "step": 1}), + "deep_cache_interval": OptionInfo(3, "DeepCache cache interval", gr.Slider, {"minimum": 1, "maximum": 10, "step": 1}), "nncf_compress_weights": OptionInfo([], "Compress Model weights with NNCF", gr.CheckboxGroup, {"choices": ["Model", "VAE", "Text Encoder"], "visible": backend == Backend.DIFFUSERS}), @@ -420,7 +420,7 @@ options_templates.update(options_section(('advanced', "Inference Settings"), { "hypertile_sep": OptionInfo("