Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
fix(flux): follow the dequant helpers, and give the wiring tests their own file
Alexander Eichhorn3590c8100720
diff --git a/invokeai/app/invocations/flux/flux_denoise.py b/invokeai/app/invocations/flux/flux_denoise.pyindex d230992fe6..120effcf1d 100644--- a/invokeai/app/invocations/flux/flux_denoise.py+++ b/invokeai/app/invocations/flux/flux_denoise.py@@ -61,8 +61,8 @@ from invokeai.backend.model_manager.taxonomy import BaseModelType, FluxVariantTyfrom invokeai.backend.patches.layer_patcher import LayerPatcher, PatchSpecfrom invokeai.backend.patches.lora_conversions.flux_lora_constants import FLUX_LORA_TRANSFORMER_PREFIXfrom invokeai.backend.patches.model_patch_raw import ModelPatchRaw-from invokeai.backend.quantization.int8_convrot import (- peak_int8_dequant_transient_bytes,+from invokeai.backend.quantization.dequantizing_linear import (+ peak_dequant_transient_bytes,requires_sidecar_patching,)from invokeai.backend.rectified_flow.rectified_flow_inpaint_extension import RectifiedFlowInpaintExtension@@ -439,7 +439,7 @@ class FluxDenoiseInvocation(BaseInvocation):# FLUX.1's largest quantized layer needs 252 MiB. It binds only where that floor was# lowered, and it is what keeps the term honest if this node ever grows a real estimate# (the transient is alive alongside the activations, as it is for FLUX.2 and Krea-2).- int8_dequant_bytes = peak_int8_dequant_transient_bytes(transformer_info.model, inference_dtype)+ int8_dequant_bytes = peak_dequant_transient_bytes(transformer_info.model, inference_dtype)# Load the transformer model.(cached_weights, transformer) = exit_stack.enter_context(