fix: default asym_w4a8_int8 group_size to 16 like ComfyUI (#2388)

This commit is contained in:
linzch3 2026-11-22 08:51:19 -05:00 • committed by GitHub
parent a852f494c5
commit 56d95bfa12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -147,6 +147,10 @@ static bool read_comfy_quant_config(std::ifstream& file,
config.convrot = true;
config.group_size = json.value("convrot_groupsize", 256);
}
if (config.format == "asym_w4a8_int8") {
// ComfyUI defaults the W4A8 weight group size to 16 when the key is missing.
config.weight_group_size = json.value("group_size", 16);
}
} catch (const std::exception&) {
set_error(error, "parsing ComfyUI quantization metadata tensor failed: '" + tensor_name + "'");
return false;