Skip to content

Conversation

@keejkrej
Copy link

@keejkrej keejkrej commented Jan 6, 2026

The comfy_kitchen apply_rope function requires xq and xk to have identical shapes, but Lumina uses Grouped Query Attention where query and key tensors can have different head counts. This adds a shape check to use apply_rope1 separately when shapes differ, maintaining compatibility with both standard attention and GQA.

🤖 Generated with Claude Code

The comfy_kitchen apply_rope function requires xq and xk to have identical shapes, but Lumina uses Grouped Query Attention where query and key tensors can have different head counts. This adds a shape check to use apply_rope1 separately when shapes differ, maintaining compatibility with both standard attention and GQA.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@keejkrej
Copy link
Author

keejkrej commented Jan 6, 2026

Related to #11678

@Kosinkadink
Copy link
Member

This should be fixed with the updates to comfy-kitchen!

@Kosinkadink Kosinkadink closed this Jan 7, 2026
@keejkrej
Copy link
Author

keejkrej commented Jan 7, 2026

Implemented in Comfy-Org/comfy-kitchen@876670c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants