push local Ollama model in VScodium
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
1f554ca773
commit
d1a0c7df26
BIN
docs/assets/ia/continue-1.png
Normal file
BIN
docs/assets/ia/continue-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
BIN
docs/assets/ia/continue-2.png
Normal file
BIN
docs/assets/ia/continue-2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
BIN
docs/assets/ia/continue-3.png
Normal file
BIN
docs/assets/ia/continue-3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 65 KiB |
BIN
docs/assets/ia/ia.png
Normal file
BIN
docs/assets/ia/ia.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
59
docs/divers/ia/local-ollama.md
Normal file
59
docs/divers/ia/local-ollama.md
Normal file
@ -0,0 +1,59 @@
|
||||
# Comment déployer un model d'IA local
|
||||
|
||||
<img src="../../assets/ia/ia.png">
|
||||
|
||||
## Pré requis
|
||||
|
||||
- [Docker & compose](https://git.legaragenumerique.fr:GARAGENUM/docker-install) :whale:
|
||||
|
||||
```bash
|
||||
git clone https://git.legaragenumerique.fr:GARAGENUM/docker-install.git
|
||||
cd docker-install/
|
||||
sudo ./docker-install.sh
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
- Déployer le modèle:
|
||||
|
||||
```bash
|
||||
nano docker-compose.yml
|
||||
```
|
||||
|
||||
- Copier le code suivant:
|
||||
|
||||
```yml
|
||||
ollama:
|
||||
image: ollama/ollama
|
||||
container_name: ollama
|
||||
restart: always
|
||||
ports:
|
||||
- 11434:11434
|
||||
volumes:
|
||||
- ./ollama:/root/.ollama
|
||||
```
|
||||
|
||||
- Installer le plugin ```continue```:
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## Configuration
|
||||
|
||||
- Editer le config.json:
|
||||
|
||||
```bash
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Ollama",
|
||||
"provider": "ollama",
|
||||
"model": "llama3:latest",
|
||||
"apiBase": "http://localhost:11434/"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||

|
||||
@ -11,3 +11,4 @@ Toutes les astuces sont regroupées par catégories:
|
||||
- [les guides internes](internal/index.md)
|
||||
- [les astuces de développeur](dev/index.md)
|
||||
- [le guide Git](git/git.md)
|
||||
- [le guide IA pour déployer un model localement](ia/local-ollama.md.md)
|
||||
|
||||
@ -155,6 +155,8 @@ nav:
|
||||
- "Installer codium et Unity": divers/dev/unity_codium.md
|
||||
- "Le guide Git":
|
||||
- divers/git/git.md
|
||||
- "Les guides sur l'IA":
|
||||
- divers/ia/local-ollama.md
|
||||
- Admin:
|
||||
- "Page d'accueil": admin/index.md
|
||||
- "Cadrage de l'ASP": admin/cadrage-asp/index.md
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user