Skip to content

Make fused QKV projection the default implementation - #4546

Open
anijain2305 wants to merge 5 commits into
gh/anijain2305/13/basefrom
gh/anijain2305/13/head
Open

Make fused QKV projection the default implementation#4546
anijain2305 wants to merge 5 commits into
gh/anijain2305/13/basefrom
gh/anijain2305/13/head

Conversation

@anijain2305

@anijain2305 anijain2305 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

[ghstack-poisoned]
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 9, 2026
@anijain2305
anijain2305 marked this pull request as draft September 9, 2026 18:04
@anijain2305
anijain2305 marked this pull request as ready for review September 9, 2026 18:06
[ghstack-poisoned]
f"set_qkv_linear_sharding requires QKVLinear.Config or "
f"FusedQKVLinear.Config, got {type(qkv_linear_cfg).__name__}"
)
def set_fused_qkv_linear_sharding(qkv_linear_cfg: FusedQKVLinear.Config) -> None:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't need this function any more



class FusedQKVLinear(BaseQKVLinear):
class FusedQKVLinear(Module):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should call it QKVLinear to be consistent with FeedForward. After all, we don't have "unfused" version any more.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants