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

模型加载是不是太慢了 #23

Open
MagiciSource opened this issue May 11, 2023 · 3 comments
Open

模型加载是不是太慢了 #23

MagiciSource opened this issue May 11, 2023 · 3 comments

Comments

@MagiciSource
Copy link

相比于FastAsr,模型加载时间长10多倍,有什么方法可以加速么

@SWHL
Copy link
Member

SWHL commented May 11, 2023

这个可以参考这里:ONNX runtime takes much time and memory to load model #3802
加载慢,还是比较能接受的

@MagiciSource
Copy link
Author

这个可以参考这里:ONNX runtime takes much time and memory to load model #3802 加载慢,还是比较能接受的

我尝试了下,加载优化过的模型可以减少一点加载时间,还有设置ORT_PARALLEL可以减少差不多一半的加载时间,但是好像会让推理时间长一点点。另外有没有什么方式可以减小模型的大小?

@SWHL
Copy link
Member

SWHL commented May 12, 2023

模型大小,可以尝试用onnxruntime中自带的量化方法
参考经验:之前测过,量化之后,推理速度变慢了

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

2 participants