lm-sys / lm-sys/FastChat

fastchat.serve.model_worker not loading checkpoint shards and outputs stderr messages

Open
#490 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

Dear FastChat Developers,

I am part of a research group working with integrating Semantic Web-based Knowledge Graphs and LLMs such as Vicuna. We are working on an open-source research project, in order to submit a paper to a Semantic Web conference.

I followed all your guidelines w.r.t. setting up Vicuna weights as delta weights from Llama.

So far, I have been able to run under Windows 11 on a 64GB RAM/4GB GPU machine, the Inference with Command Line Interface section by running: python -m fastchat.serve.cli --model-path ./models/vicuna-13b --device cpu --load-8bit

It runs OK but really slow. I assume with a machine with several GPUs or a powerful single GPU can run the python scripts properly and loads the Checkpoint Shards without any problems.

My interest is in running the restful API and client SDK because I want to submit a large set of prompts and store the answers. When I run the following command:

python -m fastchat.serve.controller this is the screen that appears:
![fastchat1](https://user-images.githubusercontent.com/17690379/232925908-4dc3bd88-182c-4509-9dcc-9cd503428cab.png)

And when I run: python -m fastchat.serve.model_worker --model-name 'vicuna-13b' --model-path ./models/vicuna-13b --device cpu --load-8bit

It doesn't load the checkpoint shards and starts outputting stderr errors. This is the screen where you can notice that on the previous command, it loaded properly the checkpoint shards but here it doesn't. Instead it starts outputting a series of stderr messages.

![fastchat2](https://user-images.githubusercontent.com/17690379/232926153-2b7a858d-a615-4399-ade8-46210440f023.png)

The is an error line coming from fastchat/utils line 86 def write(self, buf). I assume it must be a small error.

Any hints on how to overcome this and execute properly for submitting in batches prompts to the Vicuna model via the client python SDK API?

Any help would be highly regarded and we will include a reference to FastChat in our research paper. Thanks.

Regards, Carlos F. Enguix

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the fastchat.serve.model_worker command using the reported Vicuna path and options, and compare its output with fastchat.serve.cli. Then inspect fastchat/utils.py around line 86 and capture the complete stderr output; done means the model worker loads the checkpoint shards and serves batch prompts through the client API without those messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.