mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #58] [CLOSED] Fix INT8 quantization Triton kernel for HIP/ROCm #112
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#112
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/58
Author: @jnolck
Created: 6/27/2026
Status: ❌ Closed
Base:
main← Head:fix-triton-hip-int8-rounding📝 Commits (5)
fe31d4bFix INT8 quantization Triton kernel for HIP/ROCm2a700f3fix: triton hip int8 roundingc86c859Use round-half-to-even to exactly match libdevice.rint behaviorf9161aaFix negative half-integer rounding with sign-safe parity check7ded4d8Brain blank, thought this was going to be a five minute thing, fixed that last snafu📊 Changes
1 file changed (+19 additions, -2 deletions)
View changed files
📝
comfy_kitchen/backends/triton/quantization.py(+19 -2)📄 Description
Replace libdevice.rint() with manual sign-aware rounding since Triton 3.6.0 HIP backend lacks rint, math.round, and int clamp. All 33 INT8 tests pass on gfx1100 (RDNA 3 / RX 7900 XT).
A lot of them were failing before and I was getting seg faults when trying to run workflows and started comfy with --enable-triton-backend.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.