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

APIError: Invalid response object from API: 'Internal Server Error' (HTTP response code was 500) #3603

Open
Barry1915 opened this issue Oct 28, 2024 · 0 comments

Comments

@Barry1915
Copy link

Barry1915 commented Oct 28, 2024

python -m fastchat.serve.controller
python -m fastchat.serve.vllm_worker --model-path ....../Qwen2___5-7B-Instruct --trust-remote-code --dtype bfloat16
python -m fastchat.serve.openai_api_server --host localhost --port 8000

import openai
openai.api_key = "EMPTY"
openai.api_base = "http://localhost:8000/v1"

model = "Qwen2___5-7B-Instruct"
prompt = "Once upon a time"

create a completion

completion = openai.Completion.create(model=model, prompt=prompt)

# print the completion

print(prompt + completion.choices[0].text)

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

No branches or pull requests

1 participant