ai:local
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| ai:local [2025/01/17 11:03] – created warnaud | ai:local [2025/01/24 10:24] (current) – [Integration in open-WebUI] warnaud | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Local Ai Install ====== | ||
| + | ===== All in one ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== local service install on MacOS ===== | ||
| + | You need a **__mac Silicon__** | ||
| + | ==== Ollama ==== | ||
| + | First, install ollama\\ | ||
| + | -> [[https:// | ||
| + | Unzip et run the .app\\ | ||
| + | Once installed it proposed to run <code bash> | ||
| + | Do it...in a terminal\\ | ||
| + | Once the model is pulled and command prompt is **>>> | ||
| + | ==== Homebrew ==== | ||
| + | If not already done, install homebrew: | ||
| + | <code bash>/ | ||
| + | :!: Don't forget to add homebrew to your PATH as indicated at the end of the install :!: | ||
| + | === git/conda === | ||
| + | <code bash> brew install git</ | ||
| + | grab latest conda for the platform from [[https:// | ||
| + | <code bash>cd ~/Downloads && wget https:// | ||
| + | sh Miniforge3-24.11.2-1-MacOSX-arm64.sh</ | ||
| + | Read / accept and install by default [enter] ... | ||
| + | <code bash> | ||
| + | python --version | ||
| + | pip --version | ||
| + | pip install open-webui</ | ||
| + | </ | ||
| + | === web server === | ||
| + | <code bash> | ||
| + | ==== Stable diffusion ==== | ||
| + | <code bash> | ||
| + | eval " | ||
| + | conda create -n stable python=3.10.6 | ||
| + | conda activate stable | ||
| + | python --version #Must be 3.10.6 | ||
| + | cd ~/git # or wherever you put your git stuff | ||
| + | git clone https:// | ||
| + | cd stable-diffusion-webui/ | ||
| + | wget https:// | ||
| + | cd ../.. | ||
| + | ./ | ||
| + | In the web interface select v1-5-pruned.safetensors and check generation | ||
| + | **Ctrl+C** to quit after testing | ||
| + | ==== Integration in open-WebUI ==== | ||
| + | Let's generate image in our nice local Ai\\ | ||
| + | relaunch stable-diffusion: | ||
| + | <code bash> | ||
| + | eval " | ||
| + | conda activate stable | ||
| + | cd ~/ | ||
| + | ./webui.sh --listen --api | ||
| + | </ | ||
| + | Click on your account icon then Settings > Admin Settings > Images then: | ||
| + | * Image Generation Engine set to AUTOMATIC1111 | ||
| + | * URL to http:// | ||
| + | * Activate "Image Generation (Experimental)" | ||
| + | |||
| + | ===== Update ===== | ||
| + | ==== Open-WebUI ==== | ||
| + | <code bash> | ||
| + | eval " | ||
| + | conda | ||
| + | </ | ||
| + | ===== References ===== | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
