ComfyUI/tests-unit/comfy_quant
chelsealong 6fc556d841 Infer quant format from weight dtype when comfy_quant omits it
The all-NUL-marker fix only covered layers with no comfy_quant config.
Layers with valid, non-empty comfy_quant JSON that carry a weight_scale
but no "format" key (e.g. a q_proj-style layer in the MiniMax H3 nvfp4
AWQ checkpoint) still hit "Unknown quantization format for layer ...".
Fall back to inferring the format from the on-disk weight dtype
(int8 -> int8_tensorwise, float8_e4m3fn -> float8_e4m3fn, uint8 ->
nvfp4) in both the shared _load_quantized_module path and the
mixed-precision Embedding's own inline handling, matching the
workaround documented in the issue.
2026-08-08 00:53:55 +00:00
..
test_mixed_precision.py Infer quant format from weight dtype when comfy_quant omits it 2026-08-08 00:53:55 +00:00