lm-sys / lm-sys/FastChat

How can I use Multiple NPUs ?

Open
#3,230 1 comment 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

for example :
`python3 -m fastchat.serve.cli --model-path lmsys/vicuna-7b-v1.5 --num-gpus 2`

maybe this following command need to be supported?
`python3 -m fastchat.serve.cli --model-path lmsys/vicuna-7b-v1.5 --device npu --num-npus 2`
![image](https://github.com/lm-sys/FastChat/assets/163284515/3bd23cfc-02d6-4c2c-84b4-8e30583beefc)

![image](https://github.com/lm-sys/FastChat/assets/163284515/4476c8ba-c4ad-4e3f-bd2b-eb60b690bc57)

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 `python3 -m fastchat.serve.cli` entry point and compare the existing `--num-gpus 2` invocation with the proposed `--device npu --num-npus 2` command. Determine whether multi-NPU serving is supported or needs a feature change; done means the supported command is implemented or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai
Issue type
Feature
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.