mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #88] [MERGED] Add swiglu input_act and partial-rotary rot_dim for rms_rope #134
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#134
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/88
Author: @kijai
Created: 7/31/2026
Status: ✅ Merged
Merged: 7/31/2026
Merged by: @comfyanonymous
Base:
main← Head:kernel_dev📝 Commits (3)
967c098Add swiglu input_act and partial-rotary rot_dim for rms_rope22b3afaFixes8ce7286ruff fix📊 Changes
13 files changed (+492 additions, -64 deletions)
View changed files
📝
comfy_kitchen/__init__.py(+12 -5)📝
comfy_kitchen/_rope_utils.py(+37 -3)📝
comfy_kitchen/backends/_activations.py(+16 -3)📝
comfy_kitchen/backends/cuda/__init__.py(+34 -14)📝
comfy_kitchen/backends/cuda/dlpack_bindings.cpp(+20 -7)➕
comfy_kitchen/backends/cuda/input_act_codes.h(+15 -0)📝
comfy_kitchen/backends/cuda/ops/int8_linear.cu(+54 -17)📝
comfy_kitchen/backends/cuda/ops/rms_rope.cu(+40 -7)📝
comfy_kitchen/backends/eager/rope.py(+20 -8)📝
comfy_kitchen/backends/hip/__init__.py(+15 -0)📝
comfy_kitchen/backends/triton/rms_rope.py(+11 -0)📝
tests/test_int8_input_act.py(+97 -0)📝
tests/test_rms_rope.py(+121 -0)📄 Description
Two additions for packed single-stream DiTs, plus build fixes:
int8_linear input_act gains "swiglu": the quantizer reads a [gate | up] row
(2*K wide) and absorbs silu(gate) * up on the way in, so the MLP intermediate
never round-trips through HBM.
rms_rope_split_half(_) gains rot_dim: partial rotary that rotates only a
head-dim prefix (pairs (i, i + rot_dim/2)) while the RMS norm spans the full
head dim. In-place now also accepts q/k slices of a fused QKV projection
(interleaved views were rejected by the conservative overlap check).
And building on Windows surfaced two MSVC 14.42 C3495 errors (constexpr locals captured into nested
dispatch lambdas) that broke the CUDA build, should be behavior-neutral fix.
Tests:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.