Skip to content

Commit 74eb218

Browse files
committed
add doc
1 parent 5ac9372 commit 74eb218

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

fastchat/serve/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Chatbot Arena
2+
3+
Currently, Chatbot Arena is powered by FastChat. Here is how you can launch an instance of Chatbot Arena locally.
4+
5+
Create a file `api_endpoint.json` and record the the api endpoints of the models you want to serve, for example:
6+
```
7+
{
8+
"gpt-4o-2024-05-13": {
9+
"model_name": "gpt-4o-2024-05-13",
10+
"api_base": "https://api.openai.com/v1",
11+
"api_type": "openai",
12+
"api_key": [Insert API Key],
13+
"anony_only": false
14+
}
15+
}
16+
```
17+
18+
If you want to serve your own model using local gpus, following the instructions in [Section: Serving with Web GUI](../../README.md).
19+
20+
To launch a gradio web server, run `gradio_web_server_multi.py`.
21+
```
22+
python gradio_web_server_multi.py --port 8080 --share --register-api-endpoint-file api_endpoint.json
23+
```

0 commit comments

Comments
 (0)