-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[Bugfix] Add MTP for opanpangu_pro_moe model, fix an initialization bug in StaticSinkAttention #32508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[Bugfix] Add MTP for opanpangu_pro_moe model, fix an initialization bug in StaticSinkAttention #32508
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1919,9 +1919,9 @@ def _build_attn_group_metadata( | |
| if self.speculative_config and spec_decode_common_attn_metadata is None: | ||
| if isinstance(self.drafter, EagleProposer): | ||
| if self.drafter.attn_layer_names[0] in kv_cache_group.layer_names: | ||
| spec_decode_common_attn_metadata = cm | ||
| spec_decode_common_attn_metadata = copy(cm) | ||
| else: | ||
| spec_decode_common_attn_metadata = cm | ||
| spec_decode_common_attn_metadata = copy(cm) | ||
yt0428 marked this conversation as resolved.
Show resolved
Hide resolved
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we move this copy into
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately the builder is not responsible for the building of |
||
|
|
||
| for attn_gid in range(len(self.attn_groups[kv_cache_gid])): | ||
| if ubatch_slices is not None: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.