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

在启用 cuBLAS 之后,等权重数据加载到显存后,最好能释放内存里的权重数据 #275

Open
dogvane opened this issue Mar 10, 2024 · 1 comment

Comments

@dogvane
Copy link

dogvane commented Mar 10, 2024

看了以下代码,是 Pipeline 类里的 std::unique_ptr mapped_file; 设置到成员变量后,会一直持有模型权重文件。
在CPU模式下,这样做没啥问题,但用gpu做后台运行的,还是很希望能把这部分资源给释放了。

@li-plus
Copy link
Owner

li-plus commented Mar 12, 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

No branches or pull requests

2 participants