Elffuss BraidHub

kikocis/continue public

451a09bc4725 · 2.2 KiBRawPermalink
1import TabItem from "@theme/TabItem";
2import Tabs from "@theme/Tabs";
3
4# IPEX-LLM
5
6:::info
7[**IPEX-LLM**](https://github.com/intel-analytics/ipex-llm) is a PyTorch library for running LLM on Intel CPU and GPU (e.g., local PC with iGPU, discrete GPU such as Arc A-Series, Flex and Max) with very low latency.
8:::
9
10IPEX-LLM supports accelerated Ollama backend to be hosted on Intel GPU. Refer to [this guide](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/ollama_quickstart.html) from IPEX-LLM official documentation about how to install and run Ollama serve accelerated by IPEX-LLM on Intel GPU. You can then configure Continue to use the IPEX-LLM accelerated `"ollama"` provider as follows:
11
12<Tabs groupId="config-example">
13 <TabItem value="yaml" label="YAML">
14 ```yaml title="config.yaml"
15 models:
16 - name: IPEX-LLM
17 provider: ollama
18 model: AUTODETECT
19 ```
20 </TabItem>
21 <TabItem value="json" label="JSON">
22 ```json title="config.json"
23 {
24 "models": [
25 {
26 "title": "IPEX-LLM",
27 "provider": "ollama",
28 "model": "AUTODETECT"
29 }
30 ]
31 }
32 ```
33 </TabItem>
34</Tabs>
35
36If you would like to reach the Ollama service from another machine, make sure you set or export the environment variable `OLLAMA_HOST=0.0.0.0` before executing the command `ollama serve`. Then, in the Continue configuration, set `'apiBase'` to correspond with the IP address / port of the remote machine. That is, Continue can be configured to be:
37
38<Tabs groupId="config-example">
39 <TabItem value="yaml" label="YAML">
40 ```yaml title="config.yaml"
41 models:
42 - name: IPEX-LLM
43 provider: ollama
44 model: AUTODETECT
45 apiBase: http://your-ollama-service-ip:11434
46 ```
47 </TabItem>
48 <TabItem value="json" label="JSON">
49 ```json title="config.json"
50 {
51 "models": [
52 {
53 "title": "IPEX-LLM",
54 "provider": "ollama",
55 "model": "AUTODETECT",
56 "apiBase": "http://your-ollama-service-ip:11434"
57 }
58 ]
59 }
60 ```
61 </TabItem>
62</Tabs>
63
64:::tip
65If you would like to preload the model before your first conversation with that model in Continue, you could refer to [here](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/continue_quickstart.html#pull-and-prepare-the-model) for more information.
66:::