mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #95] [MERGED] Add na3d / na2d neighborhood attention #142
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#142
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/95
Author: @kijai
Created: 8/6/2026
Status: ✅ Merged
Merged: 8/7/2026
Merged by: @comfyanonymous
Base:
main← Head:na📝 Commits (6)
39c173cinit natten kernelse27faecFixes7a80118Merge remote-tracking branch 'upstream/main' into nab1fe2e1Fixesbebcfd8shared validation, scalar args, sm80 gate for tritonabdd53dUpdate test_na.py📊 Changes
12 files changed (+1240 additions, -0 deletions)
View changed files
📝
README.md(+2 -0)📝
comfy_kitchen/__init__.py(+69 -0)📝
comfy_kitchen/backends/cuda/CMakeLists.txt(+1 -0)📝
comfy_kitchen/backends/cuda/__init__.py(+68 -0)📝
comfy_kitchen/backends/cuda/dlpack_bindings.cpp(+39 -0)➕
comfy_kitchen/backends/cuda/ops/na3d.cu(+433 -0)📝
comfy_kitchen/backends/eager/__init__.py(+12 -0)➕
comfy_kitchen/backends/eager/na.py(+179 -0)📝
comfy_kitchen/backends/triton/__init__.py(+24 -0)➕
comfy_kitchen/backends/triton/na.py(+155 -0)📝
comfy_kitchen/constraints.py(+35 -0)➕
tests/test_na.py(+223 -0)📄 Description
Adds fused neighborhood attention (NATTEN
na3dsemantics, dilation 1) over(B, T, H, W, num_heads, head_dim)tensors, plus anna2dwrapper for the singleton-T case.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.