Skip to content

ascend: align attention mask to 32bytes #7

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

Merged
merged 2 commits into from
Aug 19, 2024
Merged

ascend: align attention mask to 32bytes #7

merged 2 commits into from
Aug 19, 2024

Conversation

JackWeiw
Copy link

img_v3_02dt_c1ca3d12-9512-43af-a6b8-8173cf60c8ag
CANN建议attention mask对齐到32字节以保证性能。
img_v3_02dt_f10cdb5f-93de-4812-b4a9-1bba6d4f187g
如上脚本运行,如果attention mask没有对齐到32bytes则会报错,对齐到32bytes则通过
img_v3_02dt_c2df01aa-6d6f-4792-af53-11fef343ba8g
img_v3_02dt_c825b87c-3463-4171-b3d6-74416c46719g

@JackWeiw
Copy link
Author

@yao-fengchen

@jinminxi104 jinminxi104 merged commit f47f080 into DeepLink-org:infer_ext Aug 19, 2024
pdx1989 added a commit that referenced this pull request Aug 23, 2024
Optimize cogvlm performance.

Patch cogvlm language part.

Remove some redundant code.

Remove some changes.

Remove some variables.

feat: change infer_ext ops function param order (#2)

feat: support ascend qwen2 and qwen2_moe (#6)

* feat: support ascend qwen2 and qwen2_moe

* fix: fix ascend mixtral

ascend: align attention mask to 32bytes (#7)

fix attn args (#9)

fix: expand shape of attn_mask (#10)

Fix list.
yao-fengchen added a commit that referenced this pull request Sep 2, 2024
* support ascend using infer_ext

* fix(ascend): make infer_ext using TND format q,k,v in paged_token_attention

* support ascend using infer_ext

* feat: support ascend moe_gating_topk_softmax

* feat: change infer_ext ops function param order (#2)

* ascend: align attention mask to 32bytes (#7)

* fix attn args (#9)

* fix: expand shape of attn_mask (#10)

* feat: udpate infer_ext ops interface (#13)

* rename infer_ext to dlinfer

* format code

* Support internlm 2.5 (#14)

* refactor ascend pagedattention

* fix ascend apply_rotary_pos_emb

* fix import dlinfer (#16)

* fix: fix rms_norm params (#18)

* fix sync on ascend

---------

Co-authored-by: chenchiyu <[email protected]>
Co-authored-by: CyCle1024 <[email protected]>
Co-authored-by: Wei Tao <[email protected]>
Co-authored-by: jinminxi104 <[email protected]>
Co-authored-by: pdx1989 <[email protected]>
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.

3 participants