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

when run "python text_generation_hf.py", loading model was Killed #92

Open
Dgreen2017 opened this issue Jul 4, 2023 · 2 comments
Open

Comments

@Dgreen2017
Copy link

ubuntu,显卡4090,显存24G,加载模型:cpm-bee-10b,执行“python text_generation_hf.py”时,程序在加载模型中被kill了,没有其他提示信息,是因为显存不够吗?torch版本:1.13.1+cu117

@gongbaitao
Copy link
Collaborator

模型会先加载到内存上,然后放到GPU,所以您需要确保有至少20G内存

@Dgreen2017
Copy link
Author

Dgreen2017 commented Jul 4, 2023 via email

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