mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #56] [CLOSED] eager: dequantize INT8 weights instead of torch._int_mm on AMD RDNA2 #110
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#110
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/56
Author: @0xDELUXA
Created: 6/26/2026
Status: ❌ Closed
Base:
main← Head:eager-int8-rdna-dequant📝 Commits (1)
d8a1cc9eager: dequantize INT8 weights instead of torch._int_mm on AMD RDNA2📊 Changes
1 file changed (+45 additions, -0 deletions)
View changed files
📝
comfy_kitchen/backends/eager/quantization.py(+45 -0)📄 Description
torch._int_mmhas no kernel on RDNA2 (gfx103x) - rocBLAS ships no integer GEMM, hipBLASLt doesn't support the arch, and the HIP backend dropsint8_linearfrom its registry there (it needs WMMA), so the call falls through to eager and raises.On RDNA2 the eager
int8_linearnow dequantizes the weight and runs an ordinary float GEMM. The weight stays stored as INT8, so the VRAM saving is unaffected; only the int8 math speedup is lost, and that never existed on that arch.Every other target is unchanged and keeps
torch._int_mm. A device whose arch can't be read also keeps it, rather than being assumed to be the one arch without INT8 GEMM.COMFY_KITCHEN_INT8_EAGER=int_mm|dequantforces either path; the default isauto(the arch check above), cached per device.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.