-
Notifications
You must be signed in to change notification settings - Fork 8
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
模型预测阶段内存占用 #2
Comments
@nutalk 请问你的机器配置是什么呢? |
训练模型是32g内存的机器,部署成接口的机器只有4G内存。 |
@nutalk infer 时可以把 config 里的 train_file 设为 None 应该就不会加载训练数据:https://github.com/SeanLee97/clfzoo/blob/master/clfzoo/dataloader.py#L39 |
设置成None确实小了很多。谢谢。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你好,在模型预测阶段,能不能减少内存占用?一般的服务器就算不训练,只预测也不够用啊。
The text was updated successfully, but these errors were encountered: