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

量化问题 #14

Open
lxn96 opened this issue Aug 19, 2020 · 4 comments
Open

量化问题 #14

lxn96 opened this issue Aug 19, 2020 · 4 comments

Comments

@lxn96
Copy link

lxn96 commented Aug 19, 2020

你好,量化前后为什么保存的模型大小都是180MB,量化并没有减小模型的大小?

@HaloTrouvaille
Copy link
Owner

您好,我采用的是模拟量化,即模拟出量化效果,所以模型大小并没有减少。

@lxn96
Copy link
Author

lxn96 commented Aug 19, 2020

那实际量化应该怎么做呢

@HaloTrouvaille
Copy link
Owner

您可以利用模拟量化 部署时跑一次前向传播,提取出量化后的参数用于部署

@TDIT-haha
Copy link

那就是说保存量化后的参数模型,而不是整个模型是么?

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

No branches or pull requests

3 participants