baml
baml copied to clipboard
[bug] self-hosted vllm couldn't be accessed in the playground
Product
BAML
Describe the bug
I used vllm to serve a Qwen-VL-7B-Instruct like this:
// Learn more about clients at https://docs.boundaryml.com/docs/snippets/clients/overview
client<llm> LocalQwenVL {
provider openai
retry_policy CustomRetry
options {
model "Qwen/Qwen2.5-VL-7B-Instruct"
base_url "http://localhost:8000/v1"
api_key env.QWEN_API_KEY
}
}
retry_policy CustomRetry {
max_retries 3
}
and
nohup docker run --runtime nvidia --gpus '"device=1"' \
-v /mnt/data2/huggingface:/root/.cache/huggingface \
--env "HUGGING_FACE_HUB_TOKEN=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" \
--env "HF_ENDPOINT=https://hf-mirror.com" \
-p 8000:8000 \
--ipc=host \
docker.1ms.run/vllm/vllm-openai:latest \
--model Qwen/Qwen2.5-VL-7B-Instruct \
--api-key qwen2_5_vl_7b > vllm.log 2>&1 &
and my prompt was like this:
function SummarizePrompts(instructions: string) -> string {
client "LocalQwenVL"
prompt #"
You are a professional prompt optimization assistant. Please discuss and summarize the given prompts.
Instructions: {{ instructions }}
Please discuss these prompts and finally summarize them into a concise sentence prompt.
Please output strictly in the following format:
<DISCUSSION>
Discussion of the prompts
</DISCUSSION>
<SUMMARIZED_PROMPT>
Summarized prompt
</SUMMARIZED_PROMPT>
{{ ctx.output_format }}
"#
}
test TestSummarizePrompts {
functions [SummarizePrompts]
args {
instructions "Make the image brighter, enhance colors, improve lighting, and add more contrast"
}
}
however after filled the api key in the playground
I stiil get the following errors
I have tried to export the api-key in the terminal like export QWEN_API_KEY=qwen2_5_vl_7b. But no change.
Also, I tried to set the api-key to dummy and leave the blank in the playground, but I failed.
Reproduction Steps
I use cursor(1.2.4) playground and baml-cli 0.202.1
BAML Version
No response
Language/Framework
None
LLM Provider
None
LLM Model
No response
Operating System
None
Browser
None
Code Editor
None
Hi, sorry for leaving this without a response for so long! We're a lot more responsive on https://boundaryml.com/discord.
Did you ever figure this out?