-
Notifications
You must be signed in to change notification settings - Fork 32
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
请问可以在cpu上推理吗?大概要多少内存?谢谢 #6
Comments
@wenli135 I was able to do this! |
What changes had you made to the codes? |
You can see my minimal edits here: main...amith-ananthram:Chinese-LLaVA:main |
thanks |
I use your code to run it on cpu, got error: TypeError: init() got an unexpected keyword argument 'attn_implementation', Any suggestion? thanks. |
我绝对是Half表示半精度。然后可能cpu不支持半精度运算。因为我之前在使用BLIP2大模型的时候也是出现了这个问题,具体怎么解决我不太清楚,你可以问一下文心一言或者gpt? |
如果把代码里所有对 cuda()的调用改掉,可以在cpu上推理吗?
The text was updated successfully, but these errors were encountered: