mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #126] Add minimal TensorArg abstraction for strided RoPE kernels #161
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#161
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/126
Author: @contentis
Created: 8/21/2026
Status: 🔄 Open
Base:
main← Head:tensor-abstraction📝 Commits (8)
0b58908Add minimal TensorArg abstraction for strided RoPE kernels099176aFix and consolidate TensorArg bindings305cc26Fix nanobind compatibility and FP8 dtype mapping29cfe23Extend TensorArg across CUDA operations50d6e6cExpand TensorArg CUDA coverageaf829deComplete CUDA TensorArg launcher migrationd2658bdFix cuBLAS workspace and AWQ validation1f0a06bLimit TensorArg adoption to metadata-aware kernels📊 Changes
12 files changed (+508 additions, -520 deletions)
View changed files
📝
.github/workflows/build-wheels.yml(+4 -4)📝
MANIFEST.in(+2 -0)📝
comfy_kitchen/backends/cuda/CMakeLists.txt(+2 -0)📝
comfy_kitchen/backends/cuda/dlpack_bindings.cpp(+137 -322)📝
comfy_kitchen/backends/cuda/ops/flash_decode.cu(+34 -21)📝
comfy_kitchen/backends/cuda/ops/rms_rope.cu(+125 -142)📝
comfy_kitchen/backends/cuda/sage_attention/quant_qk_int8.cu(+20 -6)📝
comfy_kitchen/backends/cuda/sage_attention/quant_v_int8.cu(+17 -10)📝
comfy_kitchen/backends/cuda/sage_attention/sage_attn_launcher.cu(+70 -13)➕
comfy_kitchen/backends/tensor.h(+43 -0)➕
comfy_kitchen/backends/tensor_bindings.h(+52 -0)📝
pyproject.toml(+2 -2)📄 Description
Introduces pointer-free TensorMeta and pass-by-value TensorArg descriptors. Migrates CUDA and HIP apply-RoPE/RMS-RoPE bindings and launchers away from expanded pointer, shape, stride, and dtype argument lists while preserving strided-view support.
This aims to improve readabilty - if this deisgn is acceptable we can apply it to the other kernels aswell.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.