GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — feat: packed int4 convrot model loading and dispatch by noctrex · Pull Request #2010 · leejet/stable-diffusion.cpp Conversation
Contributor
SummaryAdds direct loading and execution of ComfyUI packed int4 convrot checkpoints ( Loader/graph side:
GGML dependencyThe kernels live in the GGML submodule. The ggml-side changes are submitted as leejet/ggml#10 ("ggml : add packed int4 convrot mul_mat for CPU, CUDA, HIP and Vulkan"), which includes the HIP quantize-gate fix this PR's pin depends on. This PR therefore bumps the Backend notes (disclosure)
VerificationAll runs on RX 7900 XTX (gfx1100), Windows, ROCm 10 / Vulkan, 1024x1024, 8 steps, seed 42:
Linked context
Checklist
LLM Disclosure: Yes, used GLM-5.3-Flash
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews: auto_review: drafts: true
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
758299c to
68eae3d
Compare
|
Hi, does this PR also cover loading the MOSS-Image Qwen3.5-9B W4A8 GPTQ ConvRot text encoder through Model repository: Text encoder: Environment
Observed failureThe current release fails metadata validation when loading this encoder. For example: The physical input dimension appears to be half the expected logical dimension, consistent with packed 4-bit weights not being interpreted by the current loading path. Replacing this encoder with I have not tested this PR branch yet. Could you confirm whether its packed W4A8 support also applies to this Qwen3.5-9B text encoder, including execution on HIP/ROCm? Thank you! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
- loader: packed-w4 convrot tensor recognition; packed payloads stream to the backend unconverted (no load-time reblock, no sidecar cache) - safetensors IO, tensor storage, block builder support for the packed-w4 payloads - activation quantize gated on unit scale for w4 inputs - ggml: pointer to the squashed w4 convrot kernel commit (6a7f9c31, includes group-size-64 quantize support as h64-PR overlap)
68eae3d to
2f4b8cf
Compare
|
@BBQ2077 Yes, this change is for these to be able to loaded. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing as superseded - and thank you @leejet for landing native packed INT4 support via #2276. sd.cpp now loads ComfyUI convrot_w4a4 and asym_w4a8_int8 checkpoints directly, mixed checkpoints included, with the ggml-side work ported into the backend extension API and the performance follow-ups in #2278 and #2280. Seeing the loader work handled natively upstream is the best possible resolution for this PR. For context on why this was draft-only: its submodule gitlink pointed at fork-only ggml commits that were unreachable from leejet/ggml, so merging it would have broken recursive clones for everyone else. The un-draft trigger we were waiting on (maintainer landing the ggml-side w4 content) resolved differently and more elegantly - the whole convrot stack moved out of the submodule into src/core/{cpu,cuda,vulkan} behind the ggml-ext registry - which makes this loader patch obsolete. Thanks again for all the work you put into the int8/int4 stack. It is a genuinely great foundation. (Comment drafted with LLM assistance, reviewed by noctrex.) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.