datawhalechina / self-llm

《开源大模型食用指南》基于Linux环境快速部署开源大模型,更适合中国宝宝的部署教程
Apache License 2.0
6.08k stars 748 forks source link

index-1.9b-chat 接入langchain报错 #177

Open jiangzhaokun opened 2 weeks ago

jiangzhaokun commented 2 weeks ago

TypeError Traceback (most recent call last) /Users/jiangzhaokun/Desktop/index/run.ipynb Cell 2 line 2 1 from LLM_index import Index_LLM ----> 2 llm= Index_LLM (mode_name_or_path= "/Users/jzk/Documents/cache/index-1.9b-chat") 3 print(llm('你是谁?'))

TypeError: Can't instantiate abstract class Index_LLM with abstract method _llm_type

AXYZdong commented 2 weeks ago

教程里面是

from LLM import Index_LLM

如果在ipynb下运行,就不需要上面代码了~