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

Bug: Hugging Face TGI not working #33

Open
ptrmayer opened this issue Feb 7, 2024 · 0 comments
Open

Bug: Hugging Face TGI not working #33

ptrmayer opened this issue Feb 7, 2024 · 0 comments

Comments

@ptrmayer
Copy link

ptrmayer commented Feb 7, 2024

When trying to load test LLM deployed using hugging face TGI v1.4, using following commands:

export OPENAI_API_BASE=""
export OPENAI_API_KEY="test"
python3.9 token_benchmark_ray.py \
--model "mistralai/Mistral-7B-Instruct-v0.2" \
--mean-input-tokens 550 \
--stddev-input-tokens 150 \
--mean-output-tokens 150 \
--stddev-output-tokens 10 \
--max-num-completed-requests 100 \
--timeout 600 \
--num-concurrent-requests 5 \
--results-dir "result_outputs" \
--llm-api openai \
--additional-sampling-params '{}'

following error occurs:

(OpenAIChatCompletionsClient pid=82698) Warning Or Error: 422 Client Error: Unprocessable Entity for url: 
(OpenAIChatCompletionsClient pid=82698) 422

I could fix this error by replacing line 79 in openai_chat_completions_client.py with
stem = "data:"

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