Repository navigation
fix: default asym_w4a8_int8 group_size to 16 like ComfyUI - #2388
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Thank you for your contribution. |
…art 1) The last step towards upstream master comes in three parts. This first one takes the commits before the Diffusion Graph Language rewrite: - two unused ggml compat functions removed, so the library links against a shared libggml 1.0.0 (leejet#2363); - asym_w4a8_int8 defaults to group size 16, as in ComfyUI (leejet#2388); - batched spatial padding in the Hunyuan causal convolutions (leejet#2374) and fewer CUDA launches in the H3 VAE encoder (leejet#2369); - documentation: Windows ROCm 0xC0000135, Off Grid AI, the server's browser notification (leejet#2356, leejet#2372, leejet#2318). The merge is clean; no fork code changes. Verified with a CPU build: the library, sd-cli and sd-server build, and all nine unit-test programs pass. Claude-Session: https://claude.ai/code/session_01EhZzDBkuuMp1jBf4WtEySC
Fixes #2387
ComfyUI
asym_w4a8_int8exports can leavegroup_sizeout of.comfy_quant(all 200 entries in the MiniMax-H3 W4A8 file do). ComfyUI falls back to 16 in that case (comfy/ops.py:layer_conf.get("group_size", params_conf.get("group_size", 16))), butread_comfy_quant_configreads it as 0, and the packed INT4 check only accepts 16, so those files always fail withinvalid packed INT4 scales/codebook.This reads
group_sizewith a default of 16 forasym_w4a8_int8, same pattern as theconvrot_groupsizedefault of 256 right above. An explicitgroup_sizein the file is still used as before.Verification (local only, nothing added to the repo): I built
safetensors_io.cppagainst ggml-base with a tiny harness callingread_safetensors_fileon synthetic files with oneasym_w4a8_int8module (I8 weight[4, 256], codebook[16], s_channel[4], s_rel F8_E4M3[4, 32]):I don't have the real model / a GPU here, so I didn't run a full generation; the reporter's workaround (adding
"group_size": 16to each entry) is equivalent to what this does at load time.Summary by CodeRabbit