Skip to content

Conversation

@tianhaodongbd
Copy link
Contributor

@tianhaodongbd tianhaodongbd commented Nov 26, 2024

PR types

Others

PR changes

Others

Description

npu 动态切片性能差,使用split和concat来绕过使用动态切片

@paddle-bot
Copy link

paddle-bot bot commented Nov 26, 2024

Thanks for your contribution!

logits_chunk_cast_lst,
logits_chunk_cast,
group=model_parallel_group,
if get_env_device() == "npu":
Copy link
Collaborator

Choose a reason for hiding this comment

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

封一个函数?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@codecov
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

Attention: Patch coverage is 1.92308% with 102 lines in your changes missing coverage. Please review.

Project coverage is 53.02%. Comparing base (d68a385) to head (907a44c).
Report is 268 commits behind head on develop.

Files with missing lines Patch % Lines
paddlenlp/transformers/tensor_parallel_utils.py 1.92% 102 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9499      +/-   ##
===========================================
+ Coverage    52.80%   53.02%   +0.21%     
===========================================
  Files          688      701      +13     
  Lines       109331   110693    +1362     
===========================================
+ Hits         57730    58690     +960     
- Misses       51601    52003     +402     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@gongweibao gongweibao left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@wawltor wawltor left a comment

Choose a reason for hiding this comment

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

LGTM

@wawltor wawltor merged commit cfcd079 into PaddlePaddle:develop Dec 6, 2024
9 of 12 checks passed
tianhaodongbd added a commit to tianhaodongbd/PaddleNLP that referenced this pull request Dec 9, 2024
* Adapting npu for FusedHeadAndCrossEntropy

* wrapper npu function
tianhaodongbd added a commit to tianhaodongbd/PaddleNLP that referenced this pull request Dec 9, 2024
* Adapting npu for FusedHeadAndCrossEntropy

* wrapper npu function
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