Modify
int8_unet_loader.py
as below.
diff --git a/int8_unet_loader.py b/int8_unet_loader.py
index 5fee67a..f5529fd 100644
--- a/int8_unet_loader.py
+++ b/int8_unet_loader.py
@@ -21,7 +21,7 @@ class UNetLoaderINTW8A8:
"required": {
"unet_name": (folder_paths.get_filename_list("diffusion_models"),),
"weight_dtype": (["default", "fp8_e4m3fn", "fp16", "bf16"],),
- "model_type": (["flux2", "z-image", "chroma", "wan", "ltx2", "qwen"],),
+ "model_type": (["flux2", "z-image", "chroma", "wan", "ltx2", "qwen", "prequantized"],),
}
}
@@ -77,6 +77,8 @@ class UNetLoaderINTW8A8:
'audio_scale_shift_table', 'av_ca_a2v_gate_adaln_single', 'av_ca_audio_scale_shift_adaln_single', 'av_ca_v2a_gate_adaln_single',
'av_ca_video_scale_shift_adaln_single', 'caption_projection', 'patchify_proj', 'proj_out', 'scale_shift_table',
]
+ elif model_type == "prequantized":
+ Int8TensorwiseOps.excluded_names = ["."]
#print(f"Applying model-specific exclusions to Int8TensorwiseOps: {Int8TensorwiseOps.excluded_names}")
# Load model directly - Int8TensorwiseOps handles int8 weights natively