mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #35] [CLOSED] Feat/svdquant w4a4 kitchen native #92
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-kitchen#92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-kitchen/pull/35
Author: @HK416-TYPED
Created: 4/21/2026
Status: ❌ Closed
Base:
main← Head:feat/svdquant-w4a4-kitchen-native📝 Commits (2)
82fdd71Add SVDQuant W4A4 + AWQ W4A16 eager backends and public API71419edAdd kitchen-native CUDA int4 MMA kernels for SVDQuant W4A4📊 Changes
14 files changed (+2376 additions, -0 deletions)
View changed files
📝
comfy_kitchen/__init__.py(+105 -0)📝
comfy_kitchen/backends/cuda/CMakeLists.txt(+6 -0)📝
comfy_kitchen/backends/cuda/__init__.py(+169 -0)📝
comfy_kitchen/backends/cuda/dlpack_bindings.cpp(+124 -0)➕
comfy_kitchen/backends/cuda/ops/quantize_svdquant_w4a4.cu(+186 -0)➕
comfy_kitchen/backends/cuda/ops/scaled_mm_svdquant_w4a4.cu(+348 -0)➕
comfy_kitchen/backends/cuda/ops/svdquant_utils.cuh(+177 -0)➕
comfy_kitchen/backends/cuda/ops/svdquant_w4a4_PLAN.md(+196 -0)📝
comfy_kitchen/backends/eager/__init__.py(+47 -0)➕
comfy_kitchen/backends/eager/awq.py(+108 -0)➕
comfy_kitchen/backends/eager/svdquant.py(+327 -0)📝
comfy_kitchen/tensor/__init__.py(+3 -0)➕
comfy_kitchen/tensor/svdquant_w4a4.py(+273 -0)➕
tests/test_svdquant_w4a4.py(+307 -0)📄 Description
Add SVDQuant W4A4 int4 quantization support for Qwen-Image-Edit and similar SVD-LoRA checkpoints. Built as a kitchen-native row-major backend .
Targets sm_80+ (Ampere).
Changes
Tests
tests/test_svdquant_w4a4.py — 16 tests: quantizer clamp contract, signed/unsigned MMA dispatch, lora_x separation, cross-shape smoke.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.