Fix quantization issues

This commit is contained in:
Jaret Burkett
2026-08-28 10:48:34 -06:00
parent 85a6880643
commit 92df289931
7 changed files with 470 additions and 19 deletions

View File

@@ -76,6 +76,12 @@ class WanTransformer3DModel(DiffusersWanTransformer3DModel, OstrisModelMixin):
},
}
# the comfy fp8/scaled_fp8 wan files mix fp16 conv biases with fp32
# tables; wan's forward assumes one uniform dtype, so cast the
# non-quantized tensors to the load dtype (the old holder did this with a
# blanket .to(device, dtype) after load)
aitk_cast_quantized_load = True
@classmethod
def get_transformer_block_names(cls):
return ["blocks"]