ComfyUI/tests-unit/comfy_quant
chelsealong 67ce9cbf1c Fix crash loading quantized checkpoints with all-NUL comfy_quant markers
Some quantizers mark unquantized layers in a mixed-precision checkpoint
with an all-NUL comfy_quant placeholder tensor instead of omitting the
key. json.loads() misdetects the leading NUL bytes as UTF-32 and raises
UnicodeDecodeError; once that decode is patched around, the resulting
empty {} config still fails with "Unknown quantization format" because
the loader always requires an explicit format for any present marker.
Treat an all-NUL marker as if comfy_quant were absent so the layer loads
as a plain unquantized weight, matching the official MiniMax H3 nvfp4
AWQ text encoder.

Fixes #15400
2026-08-08 00:46:48 +00:00
..
test_mixed_precision.py Fix crash loading quantized checkpoints with all-NUL comfy_quant markers 2026-08-08 00:46:48 +00:00