mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #37] [MERGED] Add support for int8 quantization backend #94
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#94
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/37
Author: @silveroxides
Created: 5/7/2026
Status: ✅ Merged
Merged: 6/25/2026
Merged by: @comfyanonymous
Base:
main← Head:feature/int8-tensorwise📝 Commits (10+)
954a4aaAdd support for int8 tensorwise quantization with backend and layouts60a3b2fAdd functioning cuBLASLt backend for int8 that passes tests.750cbd6Add per-channel weight scaling support to TensorWiseINT8Layout via new per_channel flag. Adds dedicated triton per-row dequant kernel and fixes scale broadcasting in eager and CUDA backends.1499ea4Merge branch 'merge/upstream-int8-tensorwise' into feature/int8-tensorwise5952e29Merge pull request #5 from silveroxides/feature/int8-tensorwisedb14686Merge pull request #6 from silveroxides/merge/upstream-int8-tensorwise05166efMerge branch 'merge/upstream-int8-tensorwise' into feature/int8-tensorwise11a4aa4Merge pull request #7 from silveroxides/feature/int8-tensorwise519a902Merge pull request #8 from silveroxides/merge/upstream-int8-tensorwiseadbd529Add tests to cover int8 implementation📊 Changes
21 files changed (+2739 additions, -5 deletions)
View changed files
📝
comfy_kitchen/__init__.py(+119 -0)📝
comfy_kitchen/backends/cuda/CMakeLists.txt(+1 -0)📝
comfy_kitchen/backends/cuda/__init__.py(+120 -0)📝
comfy_kitchen/backends/cuda/dlpack_bindings.cpp(+59 -0)➕
comfy_kitchen/backends/cuda/ops/cublas_gemm_int8.cu(+208 -0)📝
comfy_kitchen/backends/eager/__init__.py(+48 -0)📝
comfy_kitchen/backends/eager/quantization.py(+253 -0)📝
comfy_kitchen/backends/triton/__init__.py(+32 -0)📝
comfy_kitchen/backends/triton/quantization.py(+330 -0)📝
comfy_kitchen/constraints.py(+2 -2)📝
comfy_kitchen/tensor/__init__.py(+3 -0)➕
comfy_kitchen/tensor/int8.py(+359 -0)➕
samples/int8_model_patcher.py(+305 -0)➕
test_cutlass.cu(+36 -0)📝
tests/test_backends.py(+17 -0)📝
tests/test_constraints.py(+43 -0)📝
tests/test_dlpack.py(+122 -0)➕
tests/test_int8.py(+408 -0)📝
tests/test_integration.py(+9 -3)📝
tests/test_qdq.py(+185 -0)...and 1 more files
📄 Description
This PR adds support for int8 quantized models with full backend support and with optimized matmul kernels using triton.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.