# đŸŽ™ïž Studio IA Multimodal — Architecture & SpĂ©cifications ## Version 2026 — État de l'art --- ## 1. Architecture gĂ©nĂ©rale ``` [Utilisateur navigateur] ↓ [Open WebUI — port 3000] ↓ [Ollama — Mistral Medium] ↓ (Tools/Functions) ┌────┮────┬──────────┬──────────┐ [Audio] [Voix] [Foley] [Image] port 7860 port 7861 port 7862 port 8188 ``` --- ## 2. Pile logicielle — État de l'art 2026 ### đŸŽ” GĂ©nĂ©ration Musicale | ModĂšle | Forces | VRAM | Vitesse | |---|---|---|---| | **Heart Mula** (Jan 2026) ⭐ | Morceaux 6 min, structure complĂšte, qualitĂ© Suno | 12-16 Go | Lente | | **ACE-Step 1.5** | Ultra-rapide, cohĂ©rence harmonique, idĂ©al novices | 8-12 Go | TrĂšs rapide | | ~~MusicGen (Meta)~~ | Boucles 30s seulement — dĂ©passĂ© | 8 Go | Rapide | > **Choix recommandĂ© :** ACE-Step 1.5 pour les novices (rapiditĂ©), Heart Mula pour la qualitĂ© maximale --- ### đŸŽ€ Voix Off (TTS) | ModĂšle | Forces | VRAM | |---|---|---| | **Zonos-v0.1** (Zyphra) ⭐ | 44kHz natif, tags Ă©motion, clone voix 10s | 8-12 Go | | **IndexTTS-2** ⭐ | ContrĂŽle milliseconde de durĂ©e, sync animation | 8 Go | > **Choix recommandĂ© :** Les deux sont complĂ©mentaires et indispensables > - Zonos pour la narration et les voix expressives > - IndexTTS-2 pour la sync animation et le lip-sync --- ### 🔊 Bruitages & Foley | ModĂšle | Forces | VRAM | |---|---|---| | **HunyuanVideo-Foley** ⭐ | Analyse vidĂ©o → son synchronisĂ©, rĂ©volutionnaire | 12-16 Go | | ~~AudioGen (Meta)~~ | Texte seulement, pas de sync vidĂ©o — dĂ©passĂ© | 8 Go | > **Choix recommandĂ© :** HunyuanVideo-Foley uniquement — Meta est dĂ©passĂ© sur ce segment --- ### đŸ–Œïž GĂ©nĂ©ration Image | ModĂšle | Forces | VRAM | |---|---|---| | **Flux.1** | Meilleure qualitĂ© actuelle | 12-16 Go | | **SDXL** | Rapide, bon Ă©cosystĂšme LoRA | 8-12 Go | --- ### 💬 Chat & Code | ModĂšle | Forces | VRAM | |---|---|---| | **Mistral Medium** (Ollama) | Chat gĂ©nĂ©ral, orchestration outils | 8-12 Go | | **CodeLlama** (Ollama) | GĂ©nĂ©ration de code | 8 Go | --- ## 3. Ports & Services | Service | Port | Technologie | |---|---|---| | Open WebUI | 3000 | Interface unifiĂ©e | | Ollama | 11434 | LLM (Mistral + CodeLlama) | | Musique | 7860 | ACE-Step 1.5 + Heart Mula via ComfyUI | | Voix Off | 7861 | Zonos-v0.1 + IndexTTS-2 | | Foley | 7862 | HunyuanVideo-Foley | | Images | 8188 | ComfyUI (Flux.1 + SDXL) | --- ## 4. Image Docker de base **Nom cible :** `nicoboy/studio-ai:latest` ### Dockerfile (Ă  construire avec Gemini) ```dockerfile FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04 ENV DEBIAN_FRONTEND=noninteractive ENV PYTHONUNBUFFERED=1 # Python 3.11 RUN apt-get update && \ apt-get install -y software-properties-common && \ add-apt-repository ppa:deadsnakes/ppa && \ apt-get update && \ apt-get install -y \ python3.11 \ python3.11-venv \ python3.11-distutils \ python3.11-dev # DĂ©pendances systĂšme RUN apt-get install -y \ ffmpeg libsndfile1 sox \ git wget curl nano screen \ nodejs npm \ libgl1 libglib2.0-0 # pip pour Python 3.11 RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11 RUN python3.11 -m pip install --upgrade pip # PyTorch CUDA 12.1 RUN python3.11 -m pip install \ torch torchvision torchaudio \ --index-url https://download.pytorch.org/whl/cu121 # Open WebUI RUN python3.11 -m pip install open-webui # Ollama RUN curl -fsSL https://ollama.ai/install.sh | sh # DĂ©pendances audio communes RUN python3.11 -m pip install \ gradio \ fastapi \ uvicorn \ scipy \ soundfile \ transformers \ accelerate \ diffusers # ComfyUI dĂ©pendances RUN python3.11 -m pip install \ einops \ kornia \ spandrel WORKDIR /root ``` ### ⚠ Points critiques pour Gemini 1. **Python 3.11 obligatoire** — Open WebUI refuse Python 3.10 2. **Ne pas inclure les modĂšles** — trop lourds, tĂ©lĂ©chargĂ©s via provisioning script 3. **Image sur DockerHub public** — nĂ©cessaire pour Vast.ai 4. **CUDA 12.1** — compatible A4000 et RTX 4060 Ti 5. **Tester** : `docker build -t nicoboy/studio-ai .` puis `docker push nicoboy/studio-ai:latest` --- ## 5. Provisioning Script (1er lancement ~30-45 min) ```bash #!/bin/bash set -eo pipefail # --- MUSIQUE --- # ACE-Step 1.5 pip install ace-step # Heart Mula via ComfyUI (custom node) git clone https://github.com/[repo]/heart-mula /root/ComfyUI/custom_nodes/heart-mula # --- VOIX OFF --- # Zonos pip install zonos # IndexTTS-2 git clone https://github.com/index-tts/indextts /root/indextts pip install -r /root/indextts/requirements.txt # --- FOLEY --- # HunyuanVideo-Foley git clone https://github.com/Tencent/HunyuanVideo-Foley /root/hunyuan-foley pip install -r /root/hunyuan-foley/requirements.txt # --- IMAGES --- git clone https://github.com/comfyanonymous/ComfyUI /root/ComfyUI pip install -r /root/ComfyUI/requirements.txt # TĂ©lĂ©charger Flux.1 wget -P /root/ComfyUI/models/checkpoints/ [URL_FLUX1] # --- LLM --- ollama serve & sleep 5 ollama pull mistral ollama pull codellama # --- LANCEMENT DES SERVICES --- screen -dmS openwebui open-webui serve --port 3000 screen -dmS ollama ollama serve screen -dmS audio python3.11 /root/audio-api/server.py screen -dmS comfyui python3.11 /root/ComfyUI/main.py --listen 0.0.0.0 --port 8188 env >> /etc/environment echo "✅ Studio IA prĂȘt !" ``` --- ## 6. Configuration Open WebUI (Ă  faire avec Claude) > Cette partie sera traitĂ©e aprĂšs le build Docker. ### 6.1 Tools Ă  crĂ©er - `generate_music(prompt, duration, model)` → ACE-Step ou Heart Mula - `generate_voice(text, emotion, duration)` → Zonos ou IndexTTS-2 - `generate_foley(video_path, prompt)` → HunyuanVideo-Foley - `generate_image(prompt, width, height)` → ComfyUI/Flux.1 - `generate_code(prompt, language)` → CodeLlama ### 6.2 System Prompt assistant ``` Tu es un assistant crĂ©atif expert en production multimĂ©dia. Tu guides les novices et utilises les outils appropriĂ©s : - generate_music : composition musicale complĂšte - generate_voice : voix off avec Ă©motion contrĂŽlĂ©e - generate_foley : bruitages synchronisĂ©s avec vidĂ©o - generate_image : gĂ©nĂ©ration d'images - generate_code : Ă©criture de code Tu poses des questions prĂ©cises avant de gĂ©nĂ©rer, et tu proposes des ajustements aprĂšs chaque crĂ©ation. ``` --- ## 7. Estimation disque production | ÉlĂ©ment | Taille | |---|---| | Image Docker | ~15 Go | | ModĂšles LLM (Mistral + CodeLlama) | ~12 Go | | ModĂšles Audio (ACE-Step, Heart Mula, Zonos, IndexTTS-2) | ~15 Go | | HunyuanVideo-Foley | ~8 Go | | ComfyUI + Flux.1 | ~15 Go | | DonnĂ©es utilisateurs + outputs | ~10 Go | | **Total** | **~75 Go** | > ✅ 130 Go = confortable > ⚠ Si on ajoute SDXL + LoRA : prĂ©voir 200 Go --- ## 8. Checklist projet - [x] Architecture dĂ©finie - [x] État de l'art 2026 intĂ©grĂ© - [ ] **Dockerfile → Gemini** - [ ] Build + push DockerHub - [ ] Mise Ă  jour template Vast.ai - [ ] Provisioning script final - [ ] **Configuration Open WebUI → Claude** - [ ] **Tools AudioCraft/Foley/TTS → Claude** - [ ] **System Prompts → Claude** - [ ] Tests utilisateur