FastChat icon indicating copy to clipboard operation
FastChat copied to clipboard

module 'fastchat' has no attribute 'load_model'

Open Sorio6 opened this issue 2 years ago • 2 comments

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

Sorio6 avatar Jun 07 '23 06:06 Sorio6

you should use

import fastchat

ericzhou571 avatar Jun 08 '23 06:06 ericzhou571

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

Sorio6 avatar Jun 09 '23 16:06 Sorio6