WisdomShell / codeshell

A series of code large language models developed by PKU-KCL
http://se.pku.edu.cn/kcl
Other
1.61k stars 119 forks source link

不支持多卡运行问题 #48

Open opsvr opened 10 months ago

opsvr commented 10 months ago

--divice改成auto后,启动服务报错

qubo commented 10 months ago

--device改成auto后,启动web_demo.py服务成功,但是运行任务报错 File "/root/.cache/huggingface/modules/transformers_modules/CodeShell-7B/modeling_codeshell.py", line 401, in forward hidden_states = residual + feed_forward_hidden_states RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1! ^CKeyboard interruption in main thread... closing server. 似乎不支持多卡?

ruixie commented 10 months ago

可以直接指定具体的device,例如:--device cuda:0

whyPeanutbutter commented 9 months ago

可以直接指定具体的device,例如:--device cuda:0

麻烦问下如何指定多张Gpu?

kztyes commented 6 months ago

可以直接指定具体的device,例如:--device cuda:0

不行的,它这个device必须指定多卡,不然就报错