mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #99] [MERGED] w4a8: stochastic rounding for LoRA merge + fused requant kernel #144
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#144
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/99
Author: @kijai
Created: 8/7/2026
Status: ✅ Merged
Merged: 8/7/2026
Merged by: @comfyanonymous
Base:
main← Head:w4a8-int8-codebook📝 Commits (2)
2116e51w4a8: stochastic rounding for LoRA merge + fused requant kernel51cfd0ew4a8: row-chunk fused requant + fail loud on launch error📊 Changes
5 files changed (+386 additions, -27 deletions)
View changed files
📝
comfy_kitchen/backends/cuda/__init__.py(+74 -0)📝
comfy_kitchen/backends/cuda/dlpack_bindings.cpp(+51 -0)📝
comfy_kitchen/backends/cuda/ops/w4a8_gemm.cu(+176 -0)📝
comfy_kitchen/backends/eager/w4a8_int8.py(+78 -26)📝
comfy_kitchen/tensor/w4a8_int8.py(+7 -1)📄 Description
w4a8: stochastic rounding for LoRA merge + fused requant kernel
ALS + per-channel scale + SR + int4 pack in one launch. Requant
166ms -> 0.6ms/layer; falls back to eager for non-default configs.
and made memory-frugal for the lowvram per-fault path.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.