Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gradio chatbot for openai webserver #2306

Closed
wants to merge 1 commit into from

Conversation

arkohut
Copy link
Contributor

@arkohut arkohut commented Dec 30, 2023

Follow the example of https://github.com/vllm-project/vllm/blob/main/examples/gradio_webserver.py I create a gradio webserver for openai api server.

Right now I find that OpenAI-compatible api server has more features than the default webserver and is much more popular. This script will create a chatbot to test the web server.

Here is a command example:

$ python chat.py -m '01ai/Yi-34B-Chat-4bits' --stop-token-ids 7

Running on local URL:  http://127.0.0.1:8001
Running on public URL: https://747eb488ee1e9155e4.gradio.live

This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)

Here is the screenshot:

截屏2023-12-30 18 00 16

@arkohut arkohut closed this Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant