mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #234] [MERGED] Optimize int8 attention for ampere #242
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#242
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/234
Author: @kijai
Created: 10/8/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @comfyanonymous
Base:
main← Head:ampere-attention📝 Commits (2)
1f42d57Optimize attention for amperea4a91c7conversions off the XU pipe, 64-row tile up to 40k keys📊 Changes
9 files changed (+194 additions, -69 deletions)
View changed files
📝
comfy_kitchen/backends/cuda/__init__.py(+34 -16)📝
comfy_kitchen/backends/cuda/sage_attention/attn_utils.cuh(+21 -17)📝
comfy_kitchen/backends/cuda/sage_attention/math.cuh(+14 -0)📝
comfy_kitchen/backends/cuda/sage_attention/mma.cuh(+32 -0)📝
comfy_kitchen/backends/cuda/sage_attention/qk_int_sv_i8_cuda.cuh(+10 -8)📝
comfy_kitchen/backends/cuda/sage_attention/sage_attn_launcher.cu(+37 -14)📝
comfy_kitchen/backends/cuda/sage_attention/sol_attn_token.cu(+3 -2)📝
comfy_kitchen/backends/cuda/sage_attention/sol_layout.cuh(+14 -12)📝
tests/test_sol_attn.py(+29 -0)📄 Description
Benchmarked around ~9% on dense attention and ~5% on sparse attention, end to end with Minimax-H3, on both a 3080 and 3090.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.