Open jiangzhaokun opened 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
教程里面是
from LLM import Index_LLM
如果在ipynb下运行,就不需要上面代码了~
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