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

Using vLLM-hosted models #724

Open
ArturDev42 opened this issue Jan 7, 2025 · 2 comments
Open

Using vLLM-hosted models #724

ArturDev42 opened this issue Jan 7, 2025 · 2 comments
Assignees

Comments

@ArturDev42
Copy link

Is your feature request related to a problem? Please describe.
I would like to create agent workflows with models hosted by vLLM. I also need to use function calling.

Describe the solution you'd like
On Swarm Models I read that OpenAI, HuggingFace and Anthropic are supported. I am not sure about vLLM?

Describe alternatives you've considered
Previously, I was using OpenAI Swarm, but it did not seem to support vLLM-hosted models.

Additional context
Basic usage of vLLM is as follows: Start a server with

vllm serve meta-llama/Llama-3.1-8B-Instruct \  
    --enable-auto-tool-choice \  
    --tool-call-parser llama3_json \  
    --chat-template /home/.../repos/vllm/examples/tool_chat_template_llama3.1_json.jinja \  
    --max_model_len 36192

And then use the model client with openai.OpenAI(base_url="http://localhost:8000/v1", api_key="dummy").

Thanks for your help!

Copy link

github-actions bot commented Jan 7, 2025

Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap.

@chethanuk
Copy link

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

3 participants