-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[LLM] Add pipeline and flashmask for Qwen2Moe and Deepseek #9827
base: develop
Are you sure you want to change the base?
[LLM] Add pipeline and flashmask for Qwen2Moe and Deepseek #9827
Conversation
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (33.39%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #9827 +/- ##
===========================================
+ Coverage 51.45% 52.16% +0.70%
===========================================
Files 737 733 -4
Lines 119471 116187 -3284
===========================================
- Hits 61472 60604 -868
+ Misses 57999 55583 -2416 ☔ View full report in Codecov by Sentry. |
Thanks for your contribution! |
assert self.e_score_correction_bias is not None, "e_score_correction_bias is None" | ||
scores = scores.reshape([bsz_seq_len, -1]) + self.e_score_correction_bias.unsqueeze(0) | ||
group_scores = scores.reshape([bsz_seq_len, self.n_group, -1]).topk(2, axis=-1)[0].sum(axis=-1) # [n, n_group] | ||
group_idx = paddle.topk(group_scores, k=topk_group, axis=-1, sorted=False)[1] # [n, top_k_group] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这边sorted=False对gpu不生效, 应该怎么修改呀?
Before submitting
tests
folder. If there are codecov issues, please add tests cases first.PR types
New features
PR changes
Models
Description