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 model compression error #1043

Merged
merged 2 commits into from
Aug 27, 2021
Merged

Conversation

denghuilu
Copy link
Member

@denghuilu denghuilu commented Aug 27, 2021

During the code review process, I found that due to the initial settings of shared memory within the kernel tabulate_fusion_grad_fifth_order_polynomial, the GPU implementation of model compression would require that the last layer of the embedding net must be less than 128. And there is no error message, which may cause potential risks.

This PR should fix this problem. At the same time, an error message has been added. Now the size of the last network in model compression must be less than 1024.

@denghuilu
Copy link
Member Author

denghuilu commented Aug 27, 2021

@pkulzy plz check the rocm implementation, thanks~

@codecov-commenter
Copy link

codecov-commenter commented Aug 27, 2021

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.10%. Comparing base (5ab5fa1) to head (a3a4cd0).
Report is 1494 commits behind head on devel.

Additional details and impacted files
@@           Coverage Diff           @@
##            devel    #1043   +/-   ##
=======================================
  Coverage   75.10%   75.10%           
=======================================
  Files          87       87           
  Lines        6953     6953           
=======================================
  Hits         5222     5222           
  Misses       1731     1731           

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

Copy link
Member

@amcadmus amcadmus left a comment

Choose a reason for hiding this comment

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

please add the restriction the to know restrictions section of the doc

@denghuilu
Copy link
Member Author

please add the restriction the to know restrictions section of the doc

I'll address it.

@amcadmus amcadmus enabled auto-merge (squash) August 27, 2021 08:44
@amcadmus amcadmus merged commit 37af1d1 into deepmodeling:devel Aug 27, 2021
gzq942560379 pushed a commit to HPC-AI-Team/deepmd-kit that referenced this pull request Sep 2, 2021
* fix model compression error

* add doc for model compression limitation
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.

4 participants