-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
【pir save 】Modiy export llama model file in pir mode #8689
【pir save 】Modiy export llama model file in pir mode #8689
Conversation
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8689 +/- ##
========================================
Coverage 55.61% 55.62%
========================================
Files 620 620
Lines 96965 96991 +26
========================================
+ Hits 53930 53949 +19
- Misses 43035 43042 +7 ☔ View full report in Codecov by Sentry. |
paddlenlp/generation/utils.py
Outdated
@@ -1038,6 +1042,7 @@ def greedy_search( | |||
synced_gpus=False, | |||
**model_kwargs | |||
): | |||
pad_token_id = self.set_pad_token_id(pad_token_id, eos_token_id) |
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.
def generate已经 set_pad_token_id过了,这里也就不用再次设置了
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.
done
paddlenlp/generation/utils.py
Outdated
@@ -1143,6 +1148,7 @@ def sample( | |||
synced_gpus=False, | |||
**model_kwargs | |||
): | |||
pad_token_id = self.set_pad_token_id(pad_token_id, eos_token_id) |
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.
同上
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.
done
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.
LGTM
PR types
Others
PR changes
Others
Description
pcard-67164
修改多处代码支持在pir模式下对llama-2-7b模型导出