shoot ollama docker for ollama binary
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c9bdd99f8e
commit
ab40b74949
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 |
@ -2,37 +2,30 @@
|
||||
|
||||

|
||||
|
||||
## 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```:
|
||||
|
||||

|
||||
@ -56,4 +49,21 @@ nano docker-compose.yml
|
||||
}
|
||||
```
|
||||
|
||||

|
||||
> Il devrait ressembler à ça:
|
||||
|
||||

|
||||
|
||||
### Gérer Ollama
|
||||
|
||||
- Stopper le service:
|
||||
|
||||
```bash
|
||||
sudo systemctl stop ollama
|
||||
```
|
||||
|
||||
- Supprimer un modèle:
|
||||
|
||||
```bash
|
||||
ollama rm <MODEL>
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user