Skip to content

Commit

Permalink
Format & Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Sep 19, 2023
1 parent 68f1fac commit db8e271
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ CUDA_VISIBLE_DEVICES=1 python3 -m fastchat.serve.model_worker --model-path lmsys
```bash
python3 -m fastchat.serve.gradio_web_server_multi
```
- The default model worker based on huggingface/transformers has great compatibility but can be slow. If you want high-throughput serving, you can try [vLLM integration](docs/vllm_integration.md).

## API
### OpenAI-Compatible RESTful APIs & SDK
Expand Down
12 changes: 6 additions & 6 deletions fastchat/serve/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,12 @@ def create_controller():
args, controller = create_controller()
if args.ssl:
uvicorn.run(
app,
host=args.host,
port=args.port,
log_level="info",
ssl_keyfile=os.environ["SSL_KEYFILE"],
ssl_certfile=os.environ["SSL_CERTFILE"]
app,
host=args.host,
port=args.port,
log_level="info",
ssl_keyfile=os.environ["SSL_KEYFILE"],
ssl_certfile=os.environ["SSL_CERTFILE"],
)
else:
uvicorn.run(app, host=args.host, port=args.port, log_level="info")

0 comments on commit db8e271

Please sign in to comment.