diff --git a/docs/assets/ia/continue-1.png b/docs/assets/ia/continue-1.png new file mode 100644 index 00000000..a5f3d0e8 Binary files /dev/null and b/docs/assets/ia/continue-1.png differ diff --git a/docs/assets/ia/continue-2.png b/docs/assets/ia/continue-2.png new file mode 100644 index 00000000..c7c71619 Binary files /dev/null and b/docs/assets/ia/continue-2.png differ diff --git a/docs/assets/ia/continue-3.png b/docs/assets/ia/continue-3.png new file mode 100644 index 00000000..47ab5a24 Binary files /dev/null and b/docs/assets/ia/continue-3.png differ diff --git a/docs/assets/ia/ia.png b/docs/assets/ia/ia.png new file mode 100644 index 00000000..6eddf081 Binary files /dev/null and b/docs/assets/ia/ia.png differ diff --git a/docs/divers/ia/local-ollama.md b/docs/divers/ia/local-ollama.md new file mode 100644 index 00000000..ce0ecd19 --- /dev/null +++ b/docs/divers/ia/local-ollama.md @@ -0,0 +1,59 @@ +# Comment déployer un model d'IA local + + + +## 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```: + +![continue](../../assets/ia/continue-1.png) + +![continue](../../assets/ia/continue-2.png) + +## Configuration + +- Editer le config.json: + +```bash +{ + "models": [ + { + "title": "Ollama", + "provider": "ollama", + "model": "llama3:latest", + "apiBase": "http://localhost:11434/" + } + ] +} +``` + +![continue](../../assets/ia/continue-3.png) \ No newline at end of file diff --git a/docs/divers/index.md b/docs/divers/index.md index 8cc32436..719fbf79 100644 --- a/docs/divers/index.md +++ b/docs/divers/index.md @@ -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) diff --git a/mkdocs.yml b/mkdocs.yml index cf317a9e..8596f498 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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