Skip to content
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 Inference] support llama3.1 #8929

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

yuanlehome
Copy link
Collaborator

@yuanlehome yuanlehome commented Aug 14, 2024

PR types

New features

PR changes

Others

Description

support llama3.1 --block_attn 支持多卡推理

Copy link

paddle-bot bot commented Aug 14, 2024

Thanks for your contribution!

Copy link

codecov bot commented Aug 14, 2024

Codecov Report

Attention: Patch coverage is 0% with 27 lines in your changes missing coverage. Please review.

Project coverage is 55.11%. Comparing base (0cc8554) to head (3a1103a).
Report is 231 commits behind head on develop.

Files with missing lines Patch % Lines
...dlenlp/experimental/transformers/llama/modeling.py 0.00% 26 Missing ⚠️
...enlp/experimental/transformers/generation_utils.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8929      +/-   ##
===========================================
+ Coverage    55.05%   55.11%   +0.06%     
===========================================
  Files          635      635              
  Lines        99410    99548     +138     
===========================================
+ Hits         54729    54870     +141     
+ Misses       44681    44678       -3     

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

self.vocab_size,
self.hidden_size,
)
self.embed_tokens = nn.Embedding(self.vocab_size, self.hidden_size)
Copy link
Contributor

Choose a reason for hiding this comment

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

why?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

多卡推理遇到两个问题,1. block_attn为false时动转静会报错,2. block_attn为true时运行会报错

@DesmonDay
Copy link
Contributor

建议后续针对 Embedding TP切分的推理报错进行修复,而不是直接改成不切分。 @yuanlehome

Copy link
Contributor

@DesmonDay DesmonDay left a comment

Choose a reason for hiding this comment

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

LGTM

@yuanlehome
Copy link
Collaborator Author

建议后续针对 Embedding TP切分的推理报错进行修复,而不是直接改成不切分。 @yuanlehome

收到,已记todo

@wawltor wawltor merged commit 3fff378 into PaddlePaddle:develop Aug 14, 2024
9 of 12 checks passed
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