mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-26 23:29:53 +00:00
fix: default asym_w4a8_int8 group_size to 16 like ComfyUI (#2388)
This commit is contained in:
parent
a852f494c5
commit
56d95bfa12
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue