38 lines
2.0 KiB
Markdown
38 lines
2.0 KiB
Markdown
# ollama-intel-gpu
|
|
|
|
This repo illlustrates the use of Ollama with support for Intel ARC GPU based via ipex-llm. Run the recently released [deepseek-r1](https://github.com/deepseek-ai/DeepSeek-R1) model on your local Intel ARC GPU based PC using Linux or Windows WSL2.
|
|
|
|
## Screenshot
|
|

|
|
|
|
# Prerequisites
|
|
* Ubuntu 24.04 or newer (for Intel ARC GPU kernel driver support. Tested with Ubuntu 24.04), or Windows 11 with WSL2 (graphics driver [101.5445](https://www.intel.com/content/www/us/en/download/785597/intel-arc-iris-xe-graphics-windows.html) or newer).
|
|
* Installed Docker and Docker-compose tools (for Linux) or Docker Desktop (for Windows)
|
|
* Intel ARC series GPU. Tested with Intel ARC A770 16GB, Intel(R) Core(TM) Ultra 5 125H integrated GPU (Meteor Lake), and Intel(R) Core(TM) Intel Ultra 7 258V integrated GPU (Lunar Lake)
|
|
|
|
*Note:* This branch uses the upstream ipex container published by Intel. See the alternate branch [alternate_base_image](https://github.com/mattcurf/ollama-intel-gpu/tree/alternate_base_image) for an equivalent Dockerfile which builds everything from the published packages directly.
|
|
|
|
# Usage
|
|
|
|
The following will build the Ollama with Intel ARC GPU support, and compose those with the public docker image based on OpenWEB UI from https://github.com/open-webui/open-webui
|
|
|
|
Linux:
|
|
```bash
|
|
$ git clone https://github.com/mattcurf/ollama-intel-gpu
|
|
$ cd ollama-intel-gpu
|
|
$ docker compose up
|
|
```
|
|
|
|
Windows WSL2:
|
|
```bash
|
|
$ git clone https://github.com/mattcurf/ollama-intel-gpu
|
|
$ cd ollama-intel-gpu
|
|
$ docker-compose -f docker-compose-wsl2.yml up
|
|
```
|
|
|
|
Then launch your web browser to http://localhost:3000 to launch the web ui. Create a local OpenWeb UI credential, then click the settings icon in the top right of the screen, then select 'Models', then click 'Show', then download a model like 'llama3.1:8b-instruct-q8_0' for Intel ARC A770 16GB VRAM
|
|
|
|
# References
|
|
* https://dgpu-docs.intel.com/driver/client/overview.html
|
|
* https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/ollama_quickstart.html
|