From ebf2a09b1888848f5a6785dfee01ae09e1e21d00 Mon Sep 17 00:00:00 2001 From: Yuwen Hu <54161268+Oscilloscope98@users.noreply.github.com> Date: Wed, 5 Jun 2024 07:17:56 +0800 Subject: [PATCH] Doc: Add IPEX-LLM model provider (#1417) * Add related doc for IPEX-LLM accelerated Ollama provider * Add description in providor title and other small updates --- .../reference/Model Providers/ipex_llm.md | 39 +++++++++++++++++++ docs/docs/setup/select-provider.md | 3 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 docs/docs/reference/Model Providers/ipex_llm.md diff --git a/docs/docs/reference/Model Providers/ipex_llm.md b/docs/docs/reference/Model Providers/ipex_llm.md new file mode 100644 index 000000000..f741b8554 --- /dev/null +++ b/docs/docs/reference/Model Providers/ipex_llm.md @@ -0,0 +1,39 @@ +# IPEX-LLM + +:::info +[**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. +::: + +IPEX-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: + +```json title="~/.continue/config.json" +{ + "models": [ + { + "title": "IPEX-LLM", + "provider": "ollama", + "model": "AUTODETECT" + } + ] +} +``` + +If 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: + +```json title="~/.continue/config.json" +{ + "models": [ + { + "title": "IPEX-LLM", + "provider": "ollama", + "model": "AUTODETECT", + "apiBase": "http://your-ollama-service-ip:11434" + } + ] +} +``` + +:::tip +- For more configuration options regarding completion or authentication, you could refer to [here](./ollama.md#completion-options) for Ollama provider. +- If 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. +::: diff --git a/docs/docs/setup/select-provider.md b/docs/docs/setup/select-provider.md index 3fb5c00c3..672627730 100644 --- a/docs/docs/setup/select-provider.md +++ b/docs/docs/setup/select-provider.md @@ -20,12 +20,13 @@ You can run a model on your local computer using: - [LM Studio](../reference/Model%20Providers/lmstudio.md) - [Llama.cpp](../reference/Model%20Providers/llamacpp.md) - [KoboldCpp](../reference/Model%20Providers/openai.md) (OpenAI compatible server) -- [llamafile](../reference/Model%20Providers/llamafile) ((OpenAI compatible server) +- [llamafile](../reference/Model%20Providers/llamafile) (OpenAI compatible server) - [LocalAI](../reference/Model%20Providers/openai.md) (OpenAI compatible server) - [Text generation web UI](../reference/Model%20Providers/openai.md) (OpenAI compatible server) - [FastChat](../reference/Model%20Providers/openai.md) (OpenAI compatible server) - [llama-cpp-python](../reference/Model%20Providers/openai.md) (OpenAI compatible server) - [TensorRT-LLM](https://github.com/NVIDIA/trt-llm-as-openai-windows?tab=readme-ov-file#examples) (OpenAI compatible server) +- [IPEX-LLM](../reference/Model%20Providers/ipex_llm.md) (Local LLM on Intel GPU) ### Remote