CogCoM icon indicating copy to clipboard operation
CogCoM copied to clipboard

web_demo doesn't work

Open DanielProkhorov opened this issue 1 year ago • 2 comments

I tried to run the gradio demo as follows:

python web_demo.py --from_pretrained cogcom-base-17b --local_tokenizer lmsys/vicuna-7b-v1.5 --bf16

resulting in this error:

drawn_imgs = gr.Gallery(
                 ^^^^^^^^^^^

TypeError: Gallery.__init__() got an unexpected keyword argument 'width'

DanielProkhorov avatar Feb 15 '24 16:02 DanielProkhorov

I tried to run the gradio demo as follows:

python web_demo.py --from_pretrained cogcom-base-17b --local_tokenizer lmsys/vicuna-7b-v1.5 --bf16

resulting in this error:

drawn_imgs = gr.Gallery(
                 ^^^^^^^^^^^

TypeError: Gallery.__init__() got an unexpected keyword argument 'width'

Hi, for a smooth training and inference, we need to keep a proper version of the pydantic package, and which will influence the versions of gradio, and spacy. I have updated the requirements.txt including these versions, and we will relax this constraints soon.

qijimrc avatar Feb 17 '24 19:02 qijimrc

hi,我尝试在4090上运行web demo,出现cuda out of memory,如何采用多卡来进行web demo的部署? @qijimrc

terryII avatar Jun 17 '24 00:06 terryII