lm-sys / FastChat

An open platform for training, serving, and evaluating large language models. Release repo for Vicuna and Chatbot Arena.
Apache License 2.0
36.63k stars 4.52k forks source link

cli.py: error: unrecognized arguments: --model-path /path/to/model/weights #659

Closed akdcelcopr77 closed 1 year ago

akdcelcopr77 commented 1 year ago

as title

when i want to run in gpu, i got the error.

mpetruc commented 1 year ago

replace /path/to/model/weights with actual path to the model weights, for example /mnt/llama

wsfung2008 commented 1 year ago

I got the same error when running !python3 -m fastchat.serve.cli --model-path lmsys/fastchat-t5-3b-v1.0 on kaggle as the readme on https://github.com/lm-sys/FastChat#fastchat-t5 suggests.

usage: cli.py [-h] [--model-name MODEL_NAME] [--num-gpus NUM_GPUS] [--device {cuda,cpu}] [--conv-template CONV_TEMPLATE] [--temperature TEMPERATURE] [--max-new-tokens MAX_NEW_TOKENS] [--debug] cli.py: error: unrecognized arguments: --model-path lmsys/fastchat-t5-3b-v1.0

It doesn't accept --model-path argument. I also tried --model-name and got another error.

The weird thing is when I ran it on sagemaker studio, I didn't have this error.

Before that I installed fschat with pip3 install fschat

merrymercy commented 1 year ago

@wsfung2008 could you try installing from the source or fetching the latest version of fschat?

5ky1s61ue commented 1 year ago

I got the same error when running !python3 -m fastchat.serve.cli --model-path lmsys/fastchat-t5-3b-v1.0 on kaggle as the readme on https://github.com/lm-sys/FastChat#fastchat-t5 suggests.

usage: cli.py [-h] [--model-name MODEL_NAME] [--num-gpus NUM_GPUS] [--device {cuda,cpu}] [--conv-template CONV_TEMPLATE] [--temperature TEMPERATURE] [--max-new-tokens MAX_NEW_TOKENS] [--debug] cli.py: error: unrecognized arguments: --model-path lmsys/fastchat-t5-3b-v1.0

It doesn't accept --model-path argument. I also tried --model-name and got another error.

The weird thing is when I ran it on sagemaker studio, I didn't have this error.

Before that I installed fschat with pip3 install fschat

you can try to upgrade python3&pip to the latest version, it works when i met this issue