"tests/pipelines/vq_diffusion/__init__.py" did not exist on "3f1e95928e905daccb4ae8bce0049612c53f0737"
README.md 792 Bytes
Newer Older
Michael Yang's avatar
Michael Yang committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Deploy Ollama to Kubernetes

## Prerequisites

- Ollama: https://ollama.ai/download
- Kubernetes cluster. This example will use Google Kubernetes Engine.

## Steps

1. Create the Ollama namespace, daemon set, and service

    ```bash
    kubectl apply -f cpu.yaml
    ```

1. Port forward the Ollama service to connect and use it locally

    ```bash
    kubectl -n ollama port-forward service/ollama 11434:80
    ```

1. Pull and run `orca-mini:3b`

    ```bash
    ollama run orca-mini:3b
    ```

## (Optional) Hardware Acceleration

Hardware acceleration in Kubernetes requires NVIDIA's [`k8s-device-plugin`](https://github.com/NVIDIA/k8s-device-plugin). Follow the link for more details.

Once configured, create a GPU enabled Ollama deployment.

```bash
kubectl apply -f gpu.yaml
```