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

Fix the memory overflow bug of the tune_cublaslt_gemm operator #9076

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

Hanyonggong
Copy link
Contributor

@Hanyonggong Hanyonggong commented Sep 4, 2024

PR types

Bug fixes

PR changes

Others

Description

使用cudaMalloc/cudaFree代替paddle::Tensor,用以解决传入M过大会out of memory问题。由于将把显存交给paddle去管理,而paddle的显存管理策略会导致长时间运行之后(反反复复申请又释放),最终导致oom。

Copy link

paddle-bot bot commented Sep 4, 2024

Thanks for your contribution!

@Hanyonggong Hanyonggong changed the title 修复tune_cublaslt_gemm算子M过大会内存溢出问题 Fix the memory overflow issue of the tune_cublaslt_gemm operator Sep 4, 2024
@Hanyonggong Hanyonggong changed the title Fix the memory overflow issue of the tune_cublaslt_gemm operator Fix the memory overflow bug of the tune_cublaslt_gemm operator Sep 4, 2024
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.50%. Comparing base (9939f84) to head (4245557).
Report is 219 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9076      +/-   ##
===========================================
+ Coverage    53.44%   53.50%   +0.05%     
===========================================
  Files          652      652              
  Lines       105187   105187              
===========================================
+ Hits         56214    56277      +63     
+ Misses       48973    48910      -63     

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

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

@DesmonDay DesmonDay merged commit fbbc0a2 into PaddlePaddle:develop Sep 4, 2024
11 of 12 checks passed
ckl117 pushed a commit to ckl117/PaddleNLP that referenced this pull request Sep 9, 2024
Mangodadada pushed a commit to Mangodadada/PaddleNLP that referenced this pull request Sep 10, 2024
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