Elffuss BraidHub

kikocis/continue public

37eef76c38ed · 2.8 KiBRawPermalink
1---
2title: "vLLM"
3---
4
5vLLM is an open-source library for fast LLM inference which typically is used to serve multiple users at the same time. It can also be used to run a large model on multiple GPU:s (e.g. when it doesn´t fit in a single GPU). Run their OpenAI-compatible server using `vllm serve`. See their [server documentation](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html) and the [engine arguments documentation](https://docs.vllm.ai/en/latest/usage/engine_args.html).
6
7```shell
8vllm serve meta-llama/Meta-Llama-3.1-8B-Instruct
9```
10
11## Chat model
12
13We recommend configuring **Llama3.1 8B** as your chat model.
14
15<Tabs>
16 <Tab title="YAML">
17 ```yaml title="config.yaml"
18 models:
19 - name: Llama3.1 8B Instruct
20 provider: vllm
21 model: meta-llama/Meta-Llama-3.1-8B-Instruct
22 apiBase: http://<vllm chat endpoint>/v1
23 ```
24 </Tab>
25 <Tab title="JSON">
26 ```json title="config.json"
27 {
28 "models": [
29 {
30 "title": "Llama3.1 8B Instruct",
31 "provider": "vllm",
32 "model": "meta-llama/Meta-Llama-3.1-8B-Instruct",
33 "apiBase": "http://<vllm chat endpoint>/v1"
34 }
35 ]
36 }
37 ```
38 </Tab>
39</Tabs>
40
41## Autocomplete model
42
43We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
44
45<Tabs>
46 <Tab title="YAML">
47 ```yaml title="config.yaml"
48 models:
49 - name: Qwen2.5-Coder 1.5B
50 provider: vllm
51 model: Qwen/Qwen2.5-Coder-1.5B
52 apiBase: http://<vllm autocomplete endpoint>/v1
53 roles:
54 - autocomplete
55 ```
56 </Tab>
57 <Tab title="JSON">
58 ```json title="config.json"
59 {
60 "tabAutocompleteModel": {
61 "title": "Qwen2.5-Coder 1.5B",
62 "provider": "vllm",
63 "model": "Qwen/Qwen2.5-Coder-1.5B",
64 "apiBase": "http://<vllm autocomplete endpoint>/v1"
65 }
66 }
67 ```
68 </Tab>
69</Tabs>
70
71## Embeddings model
72
73We recommend configuring **Nomic Embed Text** as your embeddings model.
74
75<Tabs>
76 <Tab title="YAML">
77 ```yaml title="config.yaml"
78 models:
79 - name: VLLM Nomad Embed Text
80 provider: vllm
81 model: nomic-ai/nomic-embed-text-v1
82 apiBase: http://<vllm embed endpoint>/v1
83 roles:
84 - embed
85 ```
86 </Tab>
87 <Tab title="JSON">
88 ```json title="config.json"
89 {
90 "embeddingsProvider": {
91 "provider": "vllm",
92 "model": "nomic-ai/nomic-embed-text-v1",
93 "apiBase": "http://<vllm embed endpoint>/v1"
94 }
95 }
96 ```
97 </Tab>
98</Tabs>
99
100## Reranking model
101
102Continue automatically handles vLLM's response format (which uses `results` instead of `data`).
103
104[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
105
106The continue implementation uses [OpenAI](../top-level/openai.mdx) under the hood. [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Vllm.ts)