MOSS icon indicating copy to clipboard operation
MOSS copied to clipboard

使用特斯拉显卡运行报错

Open huyushao521 opened this issue 2 years ago • 4 comments

File "c:\users)AdministratorlDesktop)MoSS)mosscli-demo.py", line 73, in main inputs.input_ids.cuda(),

huyushao521 avatar Apr 24 '23 02:04 huyushao521

具体是什么错误?cuda 是什么版本的?

alin995 avatar Apr 24 '23 07:04 alin995

我用两张Tesla P40,报错: RuntimeError: "LayerNormKernelImpl" not implemented for 'Half' 我知道我的P40不支持半精度。 有没有其他的方法,让模型跑起来。

akdcelcopr77 avatar Apr 24 '23 13:04 akdcelcopr77

修改dtype moss_inference.py line:112 model = load_checkpoint_and_dispatch( raw_model, raw_model_dir, device_map="auto" if not device_map else device_map, no_split_module_classes=["MossBlock"], dtype=torch.float16 )

alin995 avatar Apr 25 '23 03:04 alin995

我用两张Tesla P40,报错: RuntimeError: "LayerNormKernelImpl" not implemented for 'Half' 我知道我的P40不支持半精度。 有没有其他的方法,让模型跑起来。

我2块p40上跑FP16,正常的。

shisan avatar May 05 '23 02:05 shisan