mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #127] [CLOSED] HIP: vectorize rowwise INT8 quantization with 16-byte loads #162
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#162
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/127
Author: @tangzzycc
Created: 8/21/2026
Status: ❌ Closed
Base:
main← Head:exp/hip-rowwise-int8-vector-load-gfx1151📝 Commits (1)
6b38b04Optimize HIP rowwise INT8 quantization with vectorized loads📊 Changes
2 files changed (+85 additions, -2 deletions)
View changed files
📝
comfy_kitchen/backends/hip/ops/quantize_int8.hip(+70 -2)📝
tests/test_hip_wmma.py(+15 -0)📄 Description
Summary
Implements Change 2 proposed in #102:
uint4for FP32, FP16, and BF16 inputs.keep the existing scalar fallback.
The vectorized path uses the portable HIP
uint4type and has no architecture-specific guard, so it also applies to other supported HIP architectures. Performance was measured on gfx1151.Performance
Measured on AMD Radeon 8060S (gfx1151), ROCm 7.2, with aligned BF16 inputs:
Geometric-mean speedup: 1.96x.
For large BF16 shapes, one-read DRAM-equivalent bandwidth is about 214–229 GB/s, consistent with the 256 GB/s bandwidth of this gfx1151 system.
Testing
including aligned and offset-contiguous inputs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.