mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #85] [MERGED] Refactor RoPE kernels and add in-place variants #131
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#131
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/85
Author: @contentis
Created: 7/27/2026
Status: ✅ Merged
Merged: 7/27/2026
Merged by: @comfyanonymous
Base:
main← Head:rope_refactor📝 Commits (4)
4e70824Refactor RoPE kernels and add in-place variantsb1f515eremove eager fallbackb8ce472address code rabbit issues0bf232efull validation📊 Changes
16 files changed (+1647 additions, -1395 deletions)
View changed files
📝
comfy_kitchen/__init__.py(+79 -1)➕
comfy_kitchen/_rope_utils.py(+77 -0)📝
comfy_kitchen/backends/cuda/CMakeLists.txt(+0 -1)📝
comfy_kitchen/backends/cuda/__init__.py(+196 -136)📝
comfy_kitchen/backends/cuda/dlpack_bindings.cpp(+83 -77)➖
comfy_kitchen/backends/cuda/ops/apply_rope.cu(+0 -407)📝
comfy_kitchen/backends/cuda/ops/rms_rope.cu(+274 -491)➕
comfy_kitchen/backends/cuda/ops/rope_device.cuh(+99 -0)📝
comfy_kitchen/backends/eager/__init__.py(+27 -0)📝
comfy_kitchen/backends/eager/rope.py(+199 -8)📝
comfy_kitchen/backends/triton/__init__.py(+41 -3)📝
comfy_kitchen/backends/triton/rms_rope.py(+79 -26)📝
comfy_kitchen/backends/triton/rope.py(+77 -43)📝
comfy_kitchen/constraints.py(+8 -4)📝
tests/test_rms_rope.py(+165 -108)📝
tests/test_rope.py(+243 -90)📄 Description
This should also address: https://github.com/Comfy-Org/comfy-kitchen/pull/77
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.