mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
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#268
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/265
Author: @0xDELUXA
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @comfyanonymous
Base:
main← Head:amd/hip-group-norm-stats📝 Commits (1)
2a66efaHIP port of #260: group norm stats override and row stride📊 Changes
4 files changed (+236 additions, -66 deletions)
View changed files
📝
comfy_kitchen/backends/hip/__init__.py(+60 -10)📝
comfy_kitchen/backends/hip/dlpack_bindings.cpp(+86 -20)📝
comfy_kitchen/backends/hip/ops/group_norm_pad3d.hip(+86 -32)📝
tests/test_hip_wmma.py(+4 -4)📄 Description
The HIP GroupNorm kernels now take caller-supplied per-frame
statsfrom a newgroup_norm_stats3d, so row strips of a frame normalize with that frame's statistics, and both ops read row-interleaved views in place through a row stride. Previously HIP sent everystats=call to eager, which also failedtest_strips_with_stats_equal_whole_frameon HIP. The stats block size is now the largest multiple of C/8 that fits, so any multiple of 8 channels up to 2048 is served, as on CUDA. The binding checks a stridedxagainst the span its own strides cover, not its element count.test_hip_wmma.pyfollows the new binding signature, and its declined-channels case moves from C=96 (now served) to C=2056.Measured on gfx1200 with the Flux2 VAE through https://github.com/Comfy-Org/ComfyUI/pull/17196 with its ROCm gate lifted for fp16: decode at 1024^2 goes from 836 ms on main to 412 ms (stock path 497 ms), peak VRAM 1.10 GiB vs 5.85 GiB stock.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.