| name | genai-iterate |
| description | Iterate on a GenAI notebook against the self-hosted stack via the genai-stack CLI (config dirs, auth, subdomains, quantization, GPU/VRAM). Arguments: <notebook|service> [--service comfyui|forge|vllm] [--quant int4|fp8] [--validate] [--bg] |
GenAI Iterate
Iterer sur un notebook GenAI (MyIA.AI.Notebooks/GenAI/) contre la stack auto-hebergee, en pilotant le CLI scripts/genai-stack/genai.py. Couvre l'Epic #1385 (GenAI series + hosting). Pour les cycles batch, deleguer a l'agent genai-iterator en async.
Arguments
<notebook|service> : chemin notebook ou nom de service (comfyui-qwen, forge-turbo, vllm-zimage).
--service comfyui|forge|vllm : service cible si ambigu.
--quant int4|fp8 : forcer une quantization (Nunchaku INT4 ~4GB / FP8 ~29GB).
--validate : lancer la validation stack (genai.py validate + skill validate-genai).
--bg : iteration en background.
Process
Phase 0 — Config & secrets (HARD)
.env reel = MyIA.AI.Notebooks/GenAI/.env (gitignored) ; template .env.example (carte sous-domaines).
- Secrets uniquement dans
.env. Jamais de literal inline, jamais os.getenv("KEY","<fallback>"), jamais imprimer une valeur de token (cf .claude/rules/secrets-hygiene.md).
Phase 1 — Pre-flight (CLI genai-stack)
python genai.py docker # service up ?
python genai.py auth # token present + correct (Bearer comfyui / Basic forge / none vllm) ?
python genai.py gpu # VRAM libre sur le GPU cible ?
python genai.py quant summary # bonne quant chargee ?