yanqiangmiffy / Chinese-LangChain

中文langchain项目|小必应,Q.Talk,强聊,QiangTalk
2.67k stars 323 forks source link

项目能否在mac 的m1或者m2上运行吗? #11

Open gaoshine opened 1 year ago

gaoshine commented 1 year ago

是否支持apple 的M1或M2芯片?

k11hao commented 1 year ago

gpt_service.py self.model = AutoModel.from_pretrained(model_name_or_path, trust_remote_code=True).half() 改为 self.model = AutoModel.from_pretrained(model_name_or_path, trust_remote_code=True).half().to('mps')