shoot ollama docker for ollama binary
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Grégory Lebreton 2024-07-16 19:11:18 +02:00
parent c9bdd99f8e
commit ab40b74949
4 changed files with 33 additions and 23 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -2,37 +2,30 @@
![ia](../../assets/ia/ia.png)
## Pré requis
- [Docker & compose](https://git.legaragenumerique.fr:GARAGENUM/docker-install)
```bash
git clone https://git.legaragenumerique.fr:GARAGENUM/docker-install.git
cd docker-install/
sudo ./docker-install.sh
```
## Installation
- Déployer le modèle:
- Installer Ollama:
```bash
nano docker-compose.yml
curl -fsSL https://ollama.com/install.sh | sh
```
- Copier le code suivant:
- Télécharger le modèle:
```yml
ollama:
image: ollama/ollama
container_name: ollama
restart: always
ports:
- 11434:11434
volumes:
- ./ollama:/root/.ollama
```bash
ollama pull llama3:latest
```
> Librairie de modèles pris en charge: https://ollama.com/library
- Lancer le modèle:
```bash
ollama run llama3:latest
```
> La console permet d'intéragir avec le modèle directement, fAppuyer sur ```Ctrl+d```
- Installer le plugin ```continue```:
![continue](../../assets/ia/continue-1.png)
@ -56,4 +49,21 @@ nano docker-compose.yml
}
```
> Il devrait ressembler à ça:
![continue](../../assets/ia/continue-3.png)
### Gérer Ollama
- Stopper le service:
```bash
sudo systemctl stop ollama
```
- Supprimer un modèle:
```bash
ollama rm <MODEL>
```