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 bug of single precision model compression #1110

Merged
merged 1 commit into from
Sep 7, 2021

Conversation

denghuilu
Copy link
Member

The model compression with float precision has problems in reading model parameters and parameter checking. This PR should be able to fix these problems. Now single-precision model compression can be used normally.

@denghuilu denghuilu requested review from amcadmus and njzjz and removed request for amcadmus September 6, 2021 15:01
@codecov-commenter
Copy link

codecov-commenter commented Sep 6, 2021

Codecov Report

Merging #1110 (f04bd46) into devel (8727956) will decrease coverage by 0.01%.
The diff coverage is 58.82%.

Impacted file tree graph

@@            Coverage Diff             @@
##            devel    #1110      +/-   ##
==========================================
- Coverage   75.62%   75.61%   -0.02%     
==========================================
  Files          88       88              
  Lines        7012     7016       +4     
==========================================
+ Hits         5303     5305       +2     
- Misses       1709     1711       +2     
Impacted Files Coverage Δ
deepmd/utils/graph.py 74.11% <50.00%> (ø)
deepmd/utils/tabulate.py 83.14% <50.00%> (-0.77%) ⬇️
deepmd/entrypoints/compress.py 79.59% <100.00%> (ø)
deepmd/entrypoints/train.py 87.42% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8727956...f04bd46. Read the comment docs.

@njzjz
Copy link
Member

njzjz commented Sep 6, 2021

Does current unit tests also work for single precision?

@denghuilu
Copy link
Member Author

Does current unit tests also work for single precision?

The current UT does not include specific single-precision tests. I'm thinking about adding the relative UT...

@amcadmus amcadmus merged commit 904ec11 into deepmodeling:devel Sep 7, 2021
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