FastChat
FastChat copied to clipboard
module 'fastchat' has no attribute 'load_model'
Hello
I tried to install fastchat with this command pip3 install fschat
But I didn't succeed because when I execute my python script
#!/usr/bin/python3.10
import fschat
model = fschat.load_model("lmsys/fastchat-t5-3b-v1.0")
response = model.generate("Hello there!")
print(response)
I tried to execute it in a venv. when I run my script, it still doesn't work.
Normally with this command I should know if the library is installed and ... yes. So I do not understand.
pip list |grep fschat
fschat 0.2.11
Thank you in advance
you should use
import fastchat
Thank you for your help. But now I have a new error :
Traceback (most recent call last):
File "/home/sorio/Documents/AZER/chatF.py", line 5, in <module>
model = fastchat.load_model("lmsys/fastchat-t5-3b-v1.0")
AttributeError: module 'fastchat' has no attribute 'load_model'
After a few searches I didn't find how to load the models.
Thank you in advance