mPLUG-Owl icon indicating copy to clipboard operation
mPLUG-Owl copied to clipboard

ValueError: Your setup doesn't support bf16/gpu. You need torch>=1.10, using Ampere GPU with cuda>=11.0

Open YuchenLiu98 opened this issue 1 year ago • 4 comments

ValueError: Your setup doesn't support bf16/gpu. You need torch>=1.10, using Ampere GPU with cuda>=11.0 How to solve this problem? When I set bf16 flag to Flase. Another issue happens "RuntimeError: "erfinv_vml_cpu" not implemented for 'Half'". Thanks.

YuchenLiu98 avatar Jun 14 '23 08:06 YuchenLiu98

You can initalize the model on cpu with float32. After the initialization, convert the model into half then put it on GPU.

MAGAer13 avatar Jun 14 '23 08:06 MAGAer13

Set bf16 to Flase and set low_cpu_mem_usage=True may work.

ljwdust avatar Jun 27 '23 02:06 ljwdust

@YuchenLiu98 Hi, Liu. Sorry to bother you. I've met the same error as yours. After initializing the model on cpu with float32 and convert the model into half then put it on GPU, a GPU out of memory ERROR occurred. So have you solved this problem? Please let me know, thanks!

wang9danzuishuai avatar Jul 12 '23 04:07 wang9danzuishuai

@MAGAer13, I set bf16 to False and low_cpu_mem_usage to True but still getting the error which says ""erfinv_vml_cpu" not implemented for 'Half'". Can you please help?

shaswati1 avatar Dec 03 '23 04:12 shaswati1