# SD.Next on Linux

HW and OS level articles

# SD.Next openvino docker compose

## Install

```bash
vi Dockerfile
vi docker-compose.yml
docker compose up -d
docker logs sdnext-openvino --follow
#docker compose down

```

### Dockerfile

#### example without proxy on branch master

```
# SD.Next OpenVINO Dockerfile
# docs: <https://github.com/vladmandic/sdnext/wiki/Docker>

# base image
FROM ubuntu:noble

# metadata
LABEL org.opencontainers.image.vendor="SD.Next"
LABEL org.opencontainers.image.authors="disty0"
LABEL org.opencontainers.image.url="https://github.com/vladmandic/sdnext/"
LABEL org.opencontainers.image.documentation="https://github.com/vladmandic/sdnext/wiki/Docker"
LABEL org.opencontainers.image.source="https://github.com/vladmandic/sdnext/"
LABEL org.opencontainers.image.licenses="AGPL-3.0"
LABEL org.opencontainers.image.title="SD.Next OpenVINO"
LABEL org.opencontainers.image.description="SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models"
LABEL org.opencontainers.image.base.name="https://hub.docker.com/_/ubuntu:noble"
LABEL org.opencontainers.image.version="latest"

# essentials
RUN apt-get update && \
    apt-get install -y --no-install-recommends --fix-missing \
    software-properties-common \
    build-essential \
    ca-certificates \
    wget \
    gpg \
    git

# intel compute runtime
RUN wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg
RUN echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu noble client" | tee /etc/apt/sources.list.d/intel-gpu-noble.list
RUN apt-get update

RUN apt-get install -y --no-install-recommends --fix-missing \
    intel-opencl-icd \
    libze-intel-gpu1 \
    libze1

# required by pytorch / ipex
RUN apt-get install -y --no-install-recommends --fix-missing \
    libgl1 \
    libglib2.0-0 \
    libgomp1

# python3.12
RUN apt-get install -y --no-install-recommends --fix-missing \
    python3 \
    python3-dev \
    python3-venv \
    python3-pip

# cleanup
RUN /usr/sbin/ldconfig
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

# stop pip and uv from caching
ENV PIP_NO_CACHE_DIR=true
ENV UV_NO_CACHE=true

# set paths to use with sdnext
ENV SD_DOCKER=true
ENV SD_DATADIR="/mnt/data"
ENV SD_MODELSDIR="/mnt/models"
ENV venv_dir="/mnt/python/venv"

# paths used by sdnext can be a volume if necessary
#VOLUME [ "/app" ]
#VOLUME [ "/mnt/data" ]
#VOLUME [ "/mnt/models" ]
#VOLUME [ "/mnt/python" ]
#VOLUME [ "/root/.cache/huggingface" ]

# git clone and run sdnext
RUN echo '#!/bin/bash\ngit status || git clone https://github.com/vladmandic/sdnext.git .\n/app/webui.sh "$@"' | tee /bin/startup.sh
RUN chmod 755 /bin/startup.sh

# actually run sdnext
WORKDIR /app
ENTRYPOINT [ "startup.sh", "-f", "--use-openvino", "--uv", "--listen",  "--insecure", "--update", "--debug", "--api-log", "--log", "sdnext.log" ]

# expose port
EXPOSE 7860

# healthcheck function
# HEALTHCHECK --interval=60s --timeout=10s --start-period=60s --retries=3 CMD curl --fail http://localhost:7860/sdapi/v1/status || exit 1

# stop signal
STOPSIGNAL SIGINT

```

#### example with proxy

 (to be removed or replaced to one is working) and on Developer branch

```
# SD.Next OpenVINO Dockerfile
# docs: <https://github.com/vladmandic/sdnext/wiki/Docker>

# base image
FROM ubuntu:noble

# metadata
LABEL org.opencontainers.image.vendor="SD.Next"
LABEL org.opencontainers.image.authors="disty0"
LABEL org.opencontainers.image.url="https://github.com/vladmandic/sdnext/"
LABEL org.opencontainers.image.documentation="https://github.com/vladmandic/sdnext/wiki/Docker"
LABEL org.opencontainers.image.source="https://github.com/vladmandic/sdnext/"
LABEL org.opencontainers.image.licenses="AGPL-3.0"
LABEL org.opencontainers.image.title="SD.Next OpenVINO"
LABEL org.opencontainers.image.description="SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models"
LABEL org.opencontainers.image.base.name="https://hub.docker.com/_/ubuntu:noble"
LABEL org.opencontainers.image.version="latest"

# essentials
RUN apt-get update && \
    apt-get install -y --no-install-recommends --fix-missing \
    software-properties-common \
    build-essential \
    ca-certificates \
    wget \
    gpg \
    git

# intel compute runtime
RUN https_proxy=http://proxy.example.com:18080/  wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg
RUN echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu noble client" | tee /etc/apt/sources.list.d/intel-gpu-noble.list
RUN https_proxy=http://proxy.example.com:18080/  apt-get update

RUN https_proxy=http://proxy.example.com:18080/  apt-get install -y --no-install-recommends --fix-missing \
    intel-opencl-icd \
    libze-intel-gpu1 \
    libze1

# required by pytorch / ipex
RUN https_proxy=http://proxy.example.com:18080/  apt-get install -y --no-install-recommends --fix-missing \
    libgl1 \
    libglib2.0-0 \
    libgomp1

# python3.12
RUN https_proxy=http://proxy.example.com:18080/  apt-get install -y --no-install-recommends --fix-missing \
    python3 \
    python3-dev \
    python3-venv \
    python3-pip

# cleanup
RUN /usr/sbin/ldconfig
RUN https_proxy=http://proxy.example.com:18080/  apt-get clean && rm -rf /var/lib/apt/lists/*

# stop pip and uv from caching
ENV PIP_NO_CACHE_DIR=true
ENV UV_NO_CACHE=true

# set paths to use with sdnext
ENV SD_DOCKER=true
ENV SD_DATADIR="/mnt/data"
ENV SD_MODELSDIR="/mnt/models"
ENV venv_dir="/mnt/python/venv"

# paths used by sdnext can be a volume if necessary
#VOLUME [ "/app" ]
#VOLUME [ "/mnt/data" ]
#VOLUME [ "/mnt/models" ]
#VOLUME [ "/mnt/python" ]
#VOLUME [ "/root/.cache/huggingface" ]

# git clone and run sdnext
RUN echo '#!/bin/bash\ngit status || git clone https://github.com/vladmandic/sdnext.git -b dev .\n/app/webui.sh "$@"' | tee /bin/startup.sh
RUN chmod 755 /bin/startup.sh

# actually run sdnext
WORKDIR /app
ENTRYPOINT [ "startup.sh", "-f", "--use-openvino", "--uv", "--listen",  "--insecure", "--server-name sdnext.example.com", "--update", "--debug", "--api-log", "--log", "sdnext.log" ]

# expose port
EXPOSE 7860

# healthcheck function
# HEALTHCHECK --interval=60s --timeout=10s --start-period=60s --retries=3 CMD curl --fail http://localhost:7860/sdapi/v1/status || exit 1

# stop signal
STOPSIGNAL SIGINT

```

### docker-compose.yml

```yaml
services:
  sdnext-openvino:
    build:
      dockerfile: Dockerfile
    image: sdnext-openvino:latest
    container_name: sdnext-openvino
    restart: unless-stopped
    devices:
      - /dev/dri:/dev/dri
# if Intel CPU got NPU 
#      - /dev/accel:/dev/accel
# if need proxy for internet access
#    environment:
#      - https_proxy=http://proxy.example.com:18080/
    ports:
      - 7860:7860
    volumes:
      - /docker/sdnext/app-volume:/app
      - /docker/sdnext/mnt-volume:/mnt
      - /docker/sdnext/huggingface-volume:/root/.cache/huggingface
      - /dev/shm:/dev/shm

```

## Application screenshots

[![image.png](https://kb.liutyi.info/uploads/images/gallery/2025-07/scaled-1680-/cUaimage.png)](https://kb.liutyi.info/uploads/images/gallery/2025-07/cUaimage.png)

[![image.png](https://kb.liutyi.info/uploads/images/gallery/2025-07/scaled-1680-/gFIimage.png)](https://kb.liutyi.info/uploads/images/gallery/2025-07/gFIimage.png)

## Post-install fixes

### add some python libraries

That is not something you beed to do, but in rare case of it kind of missing in requirements.txt

```
# In case of some dependencies is missing (like sentencepiece in Dev branch at 2025-07-14)
# docker exec -it sdnext-openvino bash
python3 -m venv /mnt/python/venv
/mnt/python/venv/bin/pip3 install sentencepiece

```

### Fix access to gated repo

 (in case access is granted and token available)

#### Access error to gated repo

```
sdnext-ipex  | 20:01:16-163840 ERROR    Load model: repo="black-forest-labs/FLUX.1-Kontext-dev"
sdnext-ipex  |                          login=True 401 Client Error. (Request ID:
sdnext-ipex  |                          Root=1-6875620c-4ddbac246caa80376513448a;bea8cc0a-fb48-
sdnext-ipex  |                          452c-a738-debd0038cb43)
sdnext-ipex  |
sdnext-ipex  |                          Cannot access gated repo for url
sdnext-ipex  |                          https://huggingface.co/api/models/black-forest-labs/FLU
sdnext-ipex  |                          X.1-Kontext-dev/auth-check.
sdnext-ipex  |                          Access to model black-forest-labs/FLUX.1-Kontext-dev is
sdnext-ipex  |                          restricted. You must have access to it and be
sdnext-ipex  |                          authenticated to access it. Please log in.

```

#### login to huggingface manually

```bash
# docker exec -it sdnext-openvino bash
# export venv_dir=/mnt/python/venv/
source "${venv_dir}"/bin/activate
git config --global credential.helper store
/mnt/python/venv/bin/huggingface-cli login
# docker restart sdnext-openvino
# Download or use the model after a restart
```

## System info

```
app: sdnext.git updated: 2025-07-14 hash: 79d0fb81 url: https://github.com/vladmandic/sdnext.git/tree/dev
arch: x86_64 cpu: x86_64 system: Linux release: 6.11.0-29-generic
python: 3.12.3 Torch: 2.7.1+cpu
device: Intel(R) Arc(TM) Graphics (iGPU) openvino: 2025.2.0
ram: free:95.64 used:29.69 total:125.33 gpu: total:125.33
xformers:  diffusers: 0.35.0.dev0 transformers: 4.53.2
active: cpu dtype: torch.float32 vae: torch.float32 unet: torch.float32
base: Diffusers/nvidia/Cosmos-Predict2-2B-Text2Image [acdb5fde99] refiner: none vae: none te: none unet: none

app: sdnext.git updated: 2025-08-02 hash: e90ac68d url: https://github.com/vladmandic/sdnext.git/tree/dev
arch: x86_64 cpu: x86_64 system: Linux release: 6.14.0-27-generic
python: 3.12.3 Torch: 2.7.1+cpu
device: Intel(R) Iris(R) Xe Graphics (iGPU) openvino: 2025.2.0
ram: free:59.83 used:34.14 total:93.97 gpu: total:93.97
xformers:  diffusers: 0.35.0.dev0 transformers: 4.54.1
active: cpu dtype: torch.float32 vae: torch.float32 unet: torch.float32
base: Diffusers/Kwai-Kolors/Kolors-diffusers [7e091c7519] refiner: none vae: none te: none unet: none
```

## openvino (float32) note

Memory consumption in openvino (float32) significantly higher than ipex (bfloat16) so it may cause OOM on same HW with same models than ipex is OK with (Flux.1 dev kontext example, openvino/gpu iGPU Intel Arc)

[![image.png](https://kb.liutyi.info/uploads/images/gallery/2025-07/scaled-1680-/9jlimage.png)](https://kb.liutyi.info/uploads/images/gallery/2025-07/9jlimage.png)

## Reinstall

### Clean reinstall

Remove all sdnext related date and have clean install

```
docker compose down --rmi local
docker system prune --all --force
rm -Rf /docker/sdnext/*
docker compose up -d
docker compose logs --follow

```

### Preserve downloaded models

save the models and output images

```
docker compose down --rmi local
docker system prune --all --force
rm -Rf /docker/sdnext/app-volume/ /docker/sdnext/python-volume/ /docker/sdnext/mnt-volume/python/
docker compose up -d
docker compose logs --follow

```

## Config example for iGPU

```json
cat /docker/sdnext/mnt-volume/data/config.json
{
  "no_half": false,
  "openvino_devices": [
    "GPU"
  ],
  "samples_filename_pattern": "[seq]-[date]-[model_name]-[height]x[width]-Seed[seed]-CFG[cfg]-STEP[steps]",
}

```

### Example image generation on iGPU

SD.Next OpenVINO Intel Xe iGPU on Intel core i7-1355U + 96GB DDR5 (35/55W power limits) float32

Kolors, Cosmos, Flux, Chroma not work

<table border="1" id="bkmrk-model-resolution-tim" style="border-collapse: collapse; width: 100%; height: 598.334px; border-width: 1px; background-color: rgb(251, 238, 184);"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><thead><tr style="height: 29.9167px;"><td style="height: 29.9167px;">Model</td><td style="height: 29.9167px;">resolution</td><td style="height: 29.9167px;">time (at 20 STEPS)</td></tr></thead><tbody><tr style="height: 29.9167px;"><td style="height: 29.9167px; background-color: rgb(191, 237, 210);"><span class="cf0">dreamshaper\_8 (SD1.5)</span></td><td style="height: 29.9167px; background-color: rgb(191, 237, 210);">512x512</td><td style="height: 29.9167px; background-color: rgb(191, 237, 210);">55.17s</td></tr><tr style="height: 29.9167px;"><td style="height: 29.9167px; background-color: rgb(191, 237, 210);"><span class="cf0">dreamshaper\_8 (SD1.5)</span></td><td style="height: 29.9167px; background-color: rgb(191, 237, 210);">768x768</td><td style="height: 29.9167px; background-color: rgb(191, 237, 210);">2m 27.75s </td></tr><tr style="height: 29.9167px;"><td style="background-color: rgb(191, 237, 210); height: 29.9167px;"><span class="cf0">cyberrealistic\_v90 (SD1.5)</span></td><td style="background-color: rgb(191, 237, 210); height: 29.9167px;">768x768</td><td style="background-color: rgb(191, 237, 210); height: 29.9167px;">2m 20.86s</td></tr><tr style="height: 29.9167px;"><td style="background-color: rgb(241, 196, 15); height: 29.9167px;"><span class="cf0">Stable Diffusion 2.1 (SD2.1)</span></td><td style="height: 29.9167px; background-color: rgb(241, 196, 15);">512x512</td><td style="height: 29.9167px; background-color: rgb(241, 196, 15);">55.17s</td></tr><tr style="height: 29.9167px;"><td style="background-color: rgb(241, 196, 15); height: 29.9167px;"><span class="cf0">Stable Diffusion 2.1 (SD2.1)</span></td><td style="background-color: rgb(241, 196, 15); height: 29.9167px;">768x768</td><td style="background-color: rgb(241, 196, 15); height: 29.9167px;">2m 13.59s </td></tr><tr style="height: 29.9167px;"><td style="background-color: rgb(241, 196, 15); height: 29.9167px;"><span class="cf0">Stable Diffusion 2.1 (SD2.1)</span></td><td style="background-color: rgb(241, 196, 15); height: 29.9167px;">1024x1024</td><td style="background-color: rgb(241, 196, 15); height: 29.9167px;">4m 40.88s </td></tr><tr style="height: 29.9167px;"><td style="height: 29.9167px; background-color: rgb(251, 238, 184);"><span class="cf0">TempestV0.1-Artistic (SDXL)</span></td><td style="height: 29.9167px; background-color: rgb(251, 238, 184);">512x512</td><td style="height: 29.9167px; background-color: rgb(251, 238, 184);">1m 58.98s</td></tr><tr style="height: 29.9167px;"><td style="height: 29.9167px; background-color: rgb(251, 238, 184);"><span class="cf0">TempestV0.1-Artistic (SDXL)</span></td><td style="height: 29.9167px; background-color: rgb(251, 238, 184);">768x768</td><td style="height: 29.9167px; background-color: rgb(251, 238, 184);">3m 23.79s</td></tr><tr style="height: 29.9167px;"><td style="height: 29.9167px; background-color: rgb(251, 238, 184);"><span class="cf0">TempestV0.1-Artistic (SDXL)</span></td><td style="height: 29.9167px; background-color: rgb(251, 238, 184);">1024x1024</td><td style="height: 29.9167px; background-color: rgb(251, 238, 184);">5m 24.46s</td></tr><tr style="height: 29.9167px;"><td style="height: 29.9167px; background-color: rgb(251, 238, 184);"><span class="cf0">TempestV0.1-Artistic (SDXL)</span></td><td style="height: 29.9167px; background-color: rgb(251, 238, 184);">1280x1280</td><td style="height: 29.9167px; background-color: rgb(251, 238, 184);">8m 25.92s</td></tr><tr style="height: 29.9167px;"><td style="background-color: rgb(251, 238, 184); height: 29.9167px;"><span class="cf0">cyberillustrious\_v60Alt (SDXL)</span></td><td style="background-color: rgb(251, 238, 184); height: 29.9167px;">1024x1024</td><td style="background-color: rgb(251, 238, 184); height: 29.9167px;">5m 13.36s</td></tr><tr style="height: 29.9167px;"><td style="background-color: rgb(251, 238, 184); height: 29.9167px;">cyberrealisticXL\_v60 <span class="cf0"> (SDXL)</span></td><td style="background-color: rgb(251, 238, 184); height: 29.9167px;">1024x1024</td><td style="background-color: rgb(251, 238, 184); height: 29.9167px;">5m 28.79s</td></tr><tr style="height: 29.9167px;"><td style="background-color: rgb(251, 238, 184); height: 29.9167px;"><span class="cf0">cyberrealisticPony\_v127Alt </span></td><td style="background-color: rgb(251, 238, 184); height: 29.9167px;">1024x1024</td><td style="background-color: rgb(251, 238, 184); height: 29.9167px;">5m 31.72s </td></tr><tr style="height: 29.9167px;"><td style="background-color: rgb(194, 224, 244); height: 29.9167px;"><span class="cf0">PixArt-Sigma-XL-2-512-MS</span></td><td style="background-color: rgb(194, 224, 244); height: 29.9167px;">512x512</td><td style="background-color: rgb(194, 224, 244); height: 29.9167px;">1m 30.74s</td></tr><tr style="height: 29.9167px;"><td style="background-color: rgb(194, 224, 244); height: 29.9167px;"><span class="cf0">PixArt-Sigma-XL-2-1024-MS </span></td><td style="background-color: rgb(194, 224, 244); height: 29.9167px;">1024x1024</td><td style="background-color: rgb(194, 224, 244); height: 29.9167px;">6m 26.39s</td></tr><tr style="height: 29.9167px;"><td style="background-color: rgb(248, 202, 198); height: 29.9167px;"><span class="cf0">Stable Diffusion 3.5 medium (SD3.5)</span></td><td style="background-color: rgb(248, 202, 198); height: 29.9167px;">512x512</td><td style="background-color: rgb(248, 202, 198); height: 29.9167px;">2m 47.35s </td></tr><tr style="height: 29.9167px;"><td style="background-color: rgb(248, 202, 198); height: 29.9167px;"><span class="cf0">Stable Diffusion 3.5 medium (SD3.5)</span></td><td style="background-color: rgb(248, 202, 198); height: 29.9167px;">768x768</td><td style="background-color: rgb(248, 202, 198); height: 29.9167px;">4m 40.50s</td></tr><tr style="height: 29.9167px;"><td style="background-color: rgb(248, 202, 198); height: 29.9167px;"><span class="cf0">Stable Diffusion 3.5 medium (SD3.5)</span></td><td style="background-color: rgb(248, 202, 198); height: 29.9167px;">1024x1024</td><td style="background-color: rgb(248, 202, 198); height: 29.9167px;">8m 52.75s</td></tr><tr><td style="background-color: rgb(248, 202, 198);"><span class="cf0">Stable Diffusion 3.5 large (SD3.5)</span></td><td style="background-color: rgb(248, 202, 198);">512x512</td><td style="background-color: rgb(248, 202, 198);">7m 7.58s </td></tr></tbody></table>

#### <span class="cf0">Stable Diffusion 3.5 medium</span>

[![00025-2025-08-08-stable-diffusion-3.5-medium-768x768-Seed116815525-CFG6-STEP20.jpg](https://kb.liutyi.info/uploads/images/gallery/2025-08/scaled-1680-/00025-2025-08-08-stable-diffusion-3-5-medium-768x768-seed116815525-cfg6-step20.jpg)](https://kb.liutyi.info/uploads/images/gallery/2025-08/00025-2025-08-08-stable-diffusion-3-5-medium-768x768-seed116815525-cfg6-step20.jpg)

**Prompt:** car

**Parameters:** Steps: 20| Size: 768x768| Seed: 116815525| CFG scale: 6| App: SD.Next| Version: c0b8c4e| Pipeline: StableDiffusion3Pipeline| Operations: txt2img| Model: stable-diffusion-3.5-medium

Time: 4m 40.50s | total 313.18 pipeline 251.68 preview 32.68 decode 28.80 | RAM 33.87 GB 36%

#### <span class="cf0">PixArt-Sigma-XL-2-512-MS</span>

[![00008-2025-08-07-PixArt-Sigma-XL-2-512-MS-512x512-Seed2113650425-CFG6-STEP20.jpg](https://kb.liutyi.info/uploads/images/gallery/2025-08/scaled-1680-/00008-2025-08-07-pixart-sigma-xl-2-512-ms-512x512-seed2113650425-cfg6-step20.jpg)](https://kb.liutyi.info/uploads/images/gallery/2025-08/00008-2025-08-07-pixart-sigma-xl-2-512-ms-512x512-seed2113650425-cfg6-step20.jpg)

**Prompt:** car

**Parameters:** Steps: 20| Size: 512x512| Seed: 2113650425| CFG scale: 6| App: SD.Next| Version: a9c65c0| Pipeline: PixArtSigmaPipeline| Operations: txt2img| Model: PixArt-Sigma-XL-2-512-MS

<div class="svelte-1ed2p3z" id="bkmrk--8"><div class="prose gradio-html infotext svelte-1ybaih5" id="bkmrk--9"></div></div>Time: 1m 30.74s | total 97.25 pipeline 76.88 decode 13.60 preview 6.51 | RAM 22.46 GB 24%

#### SD1.5

[![00001-2025-08-07-dreamshaper_8-768x768-Seed4104685571-CFG6-STEP20.jpg](https://kb.liutyi.info/uploads/images/gallery/2025-08/scaled-1680-/00001-2025-08-07-dreamshaper-8-768x768-seed4104685571-cfg6-step20.jpg)](https://kb.liutyi.info/uploads/images/gallery/2025-08/00001-2025-08-07-dreamshaper-8-768x768-seed4104685571-cfg6-step20.jpg)

**Prompt:** car

**Parameters:** Steps: 20| Size: 768x768| Seed: 4104685571| CFG scale: 6| App: SD.Next| Version: a9c65c0| Pipeline: StableDiffusionPipeline| Operations: txt2img| Model: dreamshaper\_8| Model hash: 879db523c3

Time: 2m 29.85s | total 184.46 pipeline 118.10 preview 34.60 decode 31.73 | RAM 6.66 GB 7%

## Config example for CPU

```json
{
  "no_half": false,
  "openvino_devices": [
    "CPU"
  ],
  "samples_filename_pattern": "[seq]-[date]-[model_name]-[height]x[width]-Seed[seed]-CFG[cfg]-STEP[steps]",
  "device_map": "cpu",
  "diffusers_generator_device": "CPU"
}
```

### Example image generation on CPU

SD.Next openvino CPU on Intel core i7-1355U + 96GB DDR5 (25/55W power limits) float32

<table border="1" id="bkmrk-model-resolution-tim-1" style="border-collapse: collapse; width: 100%; height: 357.6px;"><colgroup><col style="width: 33.3711%;"></col><col style="width: 33.3711%;"></col><col style="width: 33.3711%;"></col></colgroup><thead><tr style="height: 29.8px;"><td style="height: 29.8px;">Model</td><td style="height: 29.8px;">resolution</td><td style="height: 29.8px;">time (at 20 STEPS)</td></tr></thead><tbody><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(248, 202, 198);">Kolors</td><td style="height: 29.8px; background-color: rgb(248, 202, 198);">1280x1280</td><td style="height: 29.8px; background-color: rgb(248, 202, 198);"><span class="cf0">34m 51.83s</span></td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(236, 202, 250);"><span class="cf0">FLUX.1-Krea-dev</span></td><td style="height: 29.8px; background-color: rgb(236, 202, 250);">512x512</td><td style="height: 29.8px; background-color: rgb(236, 202, 250);"><span class="cf0">37m 28.47s (96GB RAM + 42GB swap)</span></td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(236, 202, 250);"><s><span class="cf0">FLUX.1-Krea-dev</span></s></td><td style="height: 29.8px; background-color: rgb(236, 202, 250);"><s>768x768</s></td><td style="height: 29.8px; background-color: rgb(236, 202, 250);"><span class="cf0" style="background-color: rgb(248, 202, 198);">96GB RAM + 64GB swap is not enough</span></td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191, 237, 210);"><span class="cf0">dreamshaper\_8 (SD1.5)</span></td><td style="height: 29.8px; background-color: rgb(191, 237, 210);">512x512</td><td style="height: 29.8px; background-color: rgb(191, 237, 210);"><span class="cf0">2m 58.45s</span></td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191, 237, 210);"><span class="cf0">dreamshaper\_8 (SD1.5)</span></td><td style="height: 29.8px; background-color: rgb(191, 237, 210);">768x768</td><td style="height: 29.8px; background-color: rgb(191, 237, 210);"><span class="cf0">7m 53.50s</span></td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191, 237, 210);"><span class="cf0">dreamshaper\_8 (SD1.5)</span></td><td style="height: 29.8px; background-color: rgb(191, 237, 210);">1024x1024</td><td style="height: 29.8px; background-color: rgb(191, 237, 210);"><span class="cf0">18m 10.01s</span></td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(251, 238, 184);"><span class="cf0">TempestV0.1-Artistic (SDXL)</span></td><td style="height: 29.8px; background-color: rgb(251, 238, 184);">512x512</td><td style="height: 29.8px; background-color: rgb(251, 238, 184);">5m 16.53s</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(251, 238, 184);"><span class="cf0">TempestV0.1-Artistic (SDXL)</span></td><td style="height: 29.8px; background-color: rgb(251, 238, 184);">768x768</td><td style="height: 29.8px; background-color: rgb(251, 238, 184);">11m 0.86s</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(251, 238, 184);"><span class="cf0">TempestV0.1-Artistic (SDXL)</span></td><td style="height: 29.8px; background-color: rgb(251, 238, 184);">1024x1024</td><td style="height: 29.8px; background-color: rgb(251, 238, 184);">20m 41.39s  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(251, 238, 184);"><span class="cf0">TempestV0.1-Artistic (SDXL)</span></td><td style="height: 29.8px; background-color: rgb(251, 238, 184);">1280x1280</td><td style="height: 29.8px; background-color: rgb(251, 238, 184);"><span class="cf0">34m 5.18s </span></td></tr></tbody></table>

### Kolors

[![openvino-cpu-kolors-1280px.jpg](https://kb.liutyi.info/uploads/images/gallery/2025-08/scaled-1680-/openvino-cpu-kolors-1280px.jpg)](https://kb.liutyi.info/uploads/images/gallery/2025-08/openvino-cpu-kolors-1280px.jpg)

<span class="cf0">**Prompt:** car</span>

<span class="cf0">**Parameters:** <span style="background-color: rgb(191, 237, 210);">Steps: 20| Size: 1280x1280</span>| Seed: 1747916893| CFG scale: 6| App: </span><span class="cf0">SD.Next</span><span class="cf0">| Version: e90ac68| Pipeline: </span><span class="cf0">KolorsPipeline</span><span class="cf0">| Operations: txt2img| <span style="background-color: rgb(191, 237, 210);">Model: </span></span><span class="cf0" style="background-color: rgb(191, 237, 210);">Kolors</span><span class="cf0">-diffusers</span>

<span class="cf0">**Execution:** <span style="background-color: rgb(191, 237, 210);">Time: 34m 51.83s</span> | total 2091.82 pipeline 1960.52 decode 131.16 | RAM 90.33 GB 96%</span>

[![openvino-cpu-kolors-1024px.jpg](https://kb.liutyi.info/uploads/images/gallery/2025-08/scaled-1680-/openvino-cpu-kolors-1024px.jpg)](https://kb.liutyi.info/uploads/images/gallery/2025-08/openvino-cpu-kolors-1024px.jpg)

<span class="cf0"></span>

<span class="cf0">**Prompt:** car</span>

<span class="cf0">**Parameters:** <span style="background-color: rgb(191, 237, 210);">Steps: 20| Size: 1024x1024</span>| Seed: 3229942612| CFG scale: 6| App: </span><span class="cf0">SD.Next</span><span class="cf0">| Version: e90ac68| Pipeline: </span><span class="cf0">KolorsPipeline</span><span class="cf0">| Operations: txt2img| <span style="background-color: rgb(191, 237, 210);">Model: Kolors</span>-diffusers</span>

<span class="cf0"></span>

### Flux.1 Krea

93GB of RAM + ~ 46GB of swap

[![openvino-cpu-Krea-512px.jpg](https://kb.liutyi.info/uploads/images/gallery/2025-08/scaled-1680-/openvino-cpu-krea-512px.jpg)](https://kb.liutyi.info/uploads/images/gallery/2025-08/openvino-cpu-krea-512px.jpg)

<span class="cf0">**Prompt:** car</span>

<span class="cf0">**Parameters:** Steps: 20| Size: 512x512| Seed: 1747916893| CFG scale: 6| App: </span><span class="cf0">SD.Next</span><span class="cf0">| Version: e90ac68| Pipeline: </span><span class="cf0">FluxPipeline</span><span class="cf0">| Operations: txt2img| Model: FLUX.1-Krea-dev</span>

<span class="cf0">**Execution:** Time: 37m 28.47s | total 2292.37 pipeline 2224.84 decode 23.42 prompt 19.16 </span><span class="cf0">te</span><span class="cf0"> 19.13 preview 5.59 | RAM 91.66 GB 98%</span>

[![openvino-cpu-flux-krea.png](https://kb.liutyi.info/uploads/images/gallery/2025-08/scaled-1680-/openvino-cpu-flux-krea.png)](https://kb.liutyi.info/uploads/images/gallery/2025-08/openvino-cpu-flux-krea.png)

## Use nginx for SD.Next

### install nginx

```bash
# SSL certificate
#vi /etc/ssl/private/wildcard.pem
#chmod 600 /etc/ssl/private/wildcard.pem
#vi /etc/ssl/certs/wildcard.ca
# Nginx
sudo apt install -y nginx
vi /etc/nginx/conf.d/sdnext.conf
systemctl restart nginx
systemctl status nginx
```

### nginx config example

```
server {
        listen       80;
        server_name sdnext.example.com;
        return 301 https://$server_name$request_uri;
    }
server {
        listen 443 ssl;
        server_name sdnext.example.com;
        # SSL Settings
        ssl_certificate /etc/ssl/private/wildcard.pem;
        ssl_certificate_key /etc/ssl/private/wildcard.pem;
        ssl_trusted_certificate /etc/ssl/certs/wildcard.ca;
        add_header Strict-Transport-Security 'max-age=15552000; includeSubDomains';
        ssl_protocols TLSv1.3 TLSv1.2;
        ssl_ciphers "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA HIGH !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS";
        ssl_session_cache shared:SSL:20m;
        ssl_session_timeout 1h;
        ssl_prefer_server_ciphers on;
        ssl_stapling on;
        ssl_stapling_verify on;
        # Timeouts
        client_max_body_size 50G;
        client_body_timeout 600s;
        proxy_read_timeout  600s;
        proxy_send_timeout  600s;
        send_timeout        600s;
        # Set headers
        proxy_set_header Host              $http_host;
        proxy_set_header X-Real-IP         $remote_addr;
        proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        # enable websockets
        proxy_http_version 1.1;
        proxy_set_header   Upgrade    $http_upgrade;
        proxy_set_header   Connection "upgrade";
        proxy_redirect     off;
        # DNS
        resolver 1.1.1.1 8.8.4.4 valid=300s;
        resolver_timeout 5s;

        # ==========  Alternative image download page BEGIN
        location ~* /(download-text)/.*.(gif|jpg|png)$ {
         add_header Content-disposition "attachment; filename=$1";
         types {}
         default_type application/octet-stream;
         expires -1;
        }

        location /download-text {
         alias /docker/sdnext/mnt-volume/data/outputs/text/;
         autoindex on;
         expires 1s;
         location ~* ^.+\.(jpeg|gif|png|jpg)
          {
           add_header Content-disposition "attachment";
          }
        }
        # ========== Alternative image download page END
        
        location / {
         proxy_pass http://127.0.0.1:7860;
        }
}

```

# SD.Next btrfs deduplication example

in case SD.Next linux server got btrfs partition we might enjoy deduplication of the files and when we use a large number of models that deduplication may save some space

```bash
btrfs filesystem du --summarize --human-readable /docker/sdnext/
compsize -x /docker/sdnext/
jdupes --one-file-system --dedupe --recurse --size /docker/sdnext/
```

Execution example

```
root@server6:~ # btrfs filesystem du --summarize --human-readable /docker/sdnext/huggingface-volume
     Total   Exclusive  Set shared  Filename
 399.51GiB   399.51GiB       0.00B  /docker/sdnext/huggingface-volume

 root@server6:~ # compsize -x /docker/sdnext/huggingface-volume
Processed 526 files, 1860252 regular extents (1860252 refs), 48 inline.
Type       Perc     Disk Usage   Uncompressed Referenced
TOTAL       89%      357G         399G         399G
none       100%      175G         175G         175G
zlib        81%      181G         223G         223G


root@server6:~ # jdupes --one-file-system --dedupe --recurse --size /docker/sdnext/huggingface-volume

root@server6:~ # btrfs filesystem du --summarize --human-readable /docker/sdnext/huggingface-volume
     Total   Exclusive  Set shared  Filename
 399.51GiB   294.70GiB    36.56GiB  /docker/sdnext/huggingface-volume

 root@server6:~ # compsize -x /docker/sdnext/huggingface-volume
Processed 526 files, 1516941 regular extents (1861709 refs), 48 inline.
Type       Perc     Disk Usage   Uncompressed Referenced
TOTAL       89%      297G         333G         399G
none       100%      151G         151G         175G
zlib        80%      146G         182G         223G


```

Example run on only one folder. Result might be better on FS level. But just as an example

```
root@server6:~ # jdupes --one-file-system --dedupe --recurse --size /docker/sdnext/huggingface-volume
Scanning: 353 files, 527 items (in 2 specified)
  [SRC] /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-E1-Full/blobs/f1ecf4952c2076dc9ef09f54814a2d4b3f14bfa9
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Dev/blobs/f1ecf4952c2076dc9ef09f54814a2d4b3f14bfa9
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Fast/blobs/f1ecf4952c2076dc9ef09f54814a2d4b3f14bfa9
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Full/blobs/f1ecf4952c2076dc9ef09f54814a2d4b3f14bfa9

  [SRC] /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Dev/blobs/cf6c4d78b3b4f575a8b296ee5fccf6ab4e14c686
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Fast/blobs/cf6c4d78b3b4f575a8b296ee5fccf6ab4e14c686
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Full/blobs/cf6c4d78b3b4f575a8b296ee5fccf6ab4e14c686

  [SRC] /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Dev/blobs/f99e44fb320546035ca153638f1f2276e0cd2e04
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Fast/blobs/f99e44fb320546035ca153638f1f2276e0cd2e04
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Full/blobs/f99e44fb320546035ca153638f1f2276e0cd2e04

  [SRC] /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-1.3B-Diffusers/blobs/481c7b2b39771c44df6dd8d13ee12ed072d731b4a650bd092885d4d52db229ad
  ====> /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-14B-Diffusers/blobs/481c7b2b39771c44df6dd8d13ee12ed072d731b4a650bd092885d4d52db229ad

  [SRC] /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-1.3B-Diffusers/blobs/c0ef3a140898e228a3520c9adec60743d2e8e5b3d229651bb37f1a3921919f99
  ====> /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-14B-Diffusers/blobs/c0ef3a140898e228a3520c9adec60743d2e8e5b3d229651bb37f1a3921919f99

  [SRC] /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-1.3B-Diffusers/blobs/a451792c739c05bca4606190cc2dd16731411bac03b4cf6aacc5767321f857c9
  ====> /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-14B-Diffusers/blobs/a451792c739c05bca4606190cc2dd16731411bac03b4cf6aacc5767321f857c9

  [SRC] /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-1.3B-Diffusers/blobs/f93148bcc04052a169e1e49bfcf6125df6cf9bf243cb9c627da75266cf8e35c3
  ====> /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-14B-Diffusers/blobs/f93148bcc04052a169e1e49bfcf6125df6cf9bf243cb9c627da75266cf8e35c3

  [SRC] /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-1.3B-Diffusers/blobs/7e76e18d224531b8197a46231cb53daf7f2f6ca707130252becf933026ac4eea
  ====> /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-14B-Diffusers/blobs/7e76e18d224531b8197a46231cb53daf7f2f6ca707130252becf933026ac4eea

  [SRC] /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-1.3B-Diffusers/blobs/60ece61b46ecb3e6a5b705ea304bc97535317c2a
  ====> /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-14B-Diffusers/blobs/60ece61b46ecb3e6a5b705ea304bc97535317c2a

  [SRC] /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-1.3B-Diffusers/blobs/2fd01c57dddd8ae386d518c69c087c8ba8c73804
  ====> /docker/sdnext/huggingface-volume/hub/models--Wan-AI--Wan2.1-T2V-14B-Diffusers/blobs/2fd01c57dddd8ae386d518c69c087c8ba8c73804

  [SRC] /docker/sdnext/huggingface-volume/hub/models--Freepik--F-Lite/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Dev/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Fast/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Full/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/huggingface-volume/hub/models--ostris--Flex.2-preview/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e

  [SRC] /docker/sdnext/huggingface-volume/hub/models--Freepik--F-Lite/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Dev/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Fast/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Full/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/huggingface-volume/hub/models--ostris--Flex.2-preview/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00

  [SRC] /docker/sdnext/huggingface-volume/hub/models--Freepik--F-Lite/blobs/c8728bc3dca59d2616a2a594cbac3ddb9eb77d5b
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Dev/blobs/c8728bc3dca59d2616a2a594cbac3ddb9eb77d5b
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Fast/blobs/c8728bc3dca59d2616a2a594cbac3ddb9eb77d5b
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Full/blobs/c8728bc3dca59d2616a2a594cbac3ddb9eb77d5b
  ====> /docker/sdnext/huggingface-volume/hub/models--ostris--Flex.2-preview/blobs/c8728bc3dca59d2616a2a594cbac3ddb9eb77d5b

  [SRC] /docker/sdnext/huggingface-volume/hub/models--nvidia--Cosmos-Predict2-2B-Text2Image/blobs/30dea2006604226b944972536b9fc1ae40e3ef39b844140641cc450af5490158
  ====> /docker/sdnext/huggingface-volume/hub/models--nvidia--Cosmos-Predict2-14B-Text2Image/blobs/30dea2006604226b944972536b9fc1ae40e3ef39b844140641cc450af5490158

  [SRC] /docker/sdnext/huggingface-volume/hub/models--nvidia--Cosmos-Predict2-2B-Text2Image/blobs/d90c625c136567ef62dc13d7fde0d54393a2b08e7400b3594d38c6a9ba12f897
  ====> /docker/sdnext/huggingface-volume/hub/models--nvidia--Cosmos-Predict2-14B-Text2Image/blobs/d90c625c136567ef62dc13d7fde0d54393a2b08e7400b3594d38c6a9ba12f897

  [SRC] /docker/sdnext/huggingface-volume/hub/models--nvidia--Cosmos-Predict2-2B-Text2Image/blobs/371ddccda7716967086fd98ef7e2f8e14f96f6ae
  ====> /docker/sdnext/huggingface-volume/hub/models--nvidia--Cosmos-Predict2-14B-Text2Image/blobs/371ddccda7716967086fd98ef7e2f8e14f96f6ae

  [SRC] /docker/sdnext/huggingface-volume/hub/models--nvidia--Cosmos-Predict2-2B-Text2Image/blobs/6c85dc465ff1a4392f21aeefb7ab6ea7b9b990a9
  ====> /docker/sdnext/huggingface-volume/hub/models--nvidia--Cosmos-Predict2-14B-Text2Image/blobs/6c85dc465ff1a4392f21aeefb7ab6ea7b9b990a9

```

on /docker/sdnext level it looks like

```
  [SRC] /docker/sdnext/huggingface-volume/hub/models--Freepik--F-Lite/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Dev/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Fast/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Full/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/huggingface-volume/hub/models--ostris--Flex.2-preview/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/mnt-volume/models/Diffusers/models--black-forest-labs--FLUX.1-dev/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/mnt-volume/models/Diffusers/models--black-forest-labs--FLUX.1-Kontext-dev/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/mnt-volume/models/Diffusers/models--black-forest-labs--FLUX.1-schnell/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/mnt-volume/models/Diffusers/models--lodestones--Chroma/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/mnt-volume/models/Diffusers/models--ostris--Flex.2-preview/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e
  ====> /docker/sdnext/mnt-volume/models/Diffusers/models--shuttleai--shuttle-3.1-aesthetic/blobs/ec87bffd1923e8b2774a6d240c922a41f6143081d52cf83b8fe39e9d838c893e

  [SRC] /docker/sdnext/huggingface-volume/hub/models--Freepik--F-Lite/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Dev/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Fast/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/huggingface-volume/hub/models--HiDream-ai--HiDream-I1-Full/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/huggingface-volume/hub/models--ostris--Flex.2-preview/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/mnt-volume/models/Diffusers/models--black-forest-labs--FLUX.1-dev/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/mnt-volume/models/Diffusers/models--black-forest-labs--FLUX.1-Kontext-dev/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/mnt-volume/models/Diffusers/models--black-forest-labs--FLUX.1-schnell/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/mnt-volume/models/Diffusers/models--lodestones--Chroma/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/mnt-volume/models/Diffusers/models--ostris--Flex.2-preview/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
  ====> /docker/sdnext/mnt-volume/models/Diffusers/models--shuttleai--shuttle-3.1-aesthetic/blobs/a5640855b301fcdbceddfa90ae8066cd9414aff020552a201a255ecf2059da00
...
Deduplication done (6565 files processed)

```

# Edit SD.Next task que using sqlite3

Sometimes it is not possible to remove hanged task from SD.Next - it is instantly re-scheduled.

that is can be done by direct edit of sqlite3 database like shown below

```
# apt install sqlite3
sqlite3 /docker/sdnext/app-volume/extensions-builtin/sd-webui-agent-scheduler/task_scheduler.sqlite3
```

```sqlite
sqlite> .tables
app_state  task

sqlite> .schema task
CREATE TABLE task (
        id VARCHAR(64) NOT NULL,
        api_task_id VARCHAR(64),
        api_task_callback VARCHAR(255),
        name VARCHAR(255),
        type VARCHAR(20) NOT NULL,
        params TEXT NOT NULL,
        script_params BLOB NOT NULL,
        priority INTEGER NOT NULL,
        status VARCHAR(20) NOT NULL,
        result TEXT,
        bookmarked BOOLEAN,
        created_at DATETIME DEFAULT (datetime('now')) NOT NULL,
        updated_at DATETIME DEFAULT (datetime('now')) NOT NULL,
        PRIMARY KEY (id)
);


sqlite> .schema task
CREATE TABLE task (
        id VARCHAR(64) NOT NULL,
        api_task_id VARCHAR(64),
        api_task_callback VARCHAR(255),
        name VARCHAR(255),
        type VARCHAR(20) NOT NULL,
        params TEXT NOT NULL,
        script_params BLOB NOT NULL,
        priority INTEGER NOT NULL,
        status VARCHAR(20) NOT NULL,
        result TEXT,
        bookmarked BOOLEAN,
        created_at DATETIME DEFAULT (datetime('now')) NOT NULL,
        updated_at DATETIME DEFAULT (datetime('now')) NOT NULL,
        PRIMARY KEY (id)
);
sqlite> SELECT id, name, status  FROM task;
task(fhraih0ryzwm1iq)||done
task(93jw8bgegiaczkr)||pending
220fd698-05db-4224-8480-03ced279d906||pending
sqlite> DELETE FROM task WHERE id = '220fd698-05db-4224-8480-03ced279d906';

sqlite> .exit
```

# SD.Next by liutyi docker compose

Personal preferences fork from [Vlad SD.Next](https://github.com/vladmandic/sdnext) for Intel Arc iGPU system based on Intel Core Ultra products. Might be also compatible with All other HW that SD.Next is suppose to work on (but that is upstream project is better to be used). Fork is also

1. keeps **standard** theme as default.
2. keeps **scheduler** as built in plugin.
3. uses **long filenames** by default.
4. Have Dockerfile and [containers ](https://hub.docker.com/repository/docker/liutyi/sdnext-ipex/general)that based on **consumer Intel drivers** not DC product one.
5. Keeps Intel Extension for Pytorch (ipex) compatibility (as long as it is relevant).

So there are 2 versions available

## IPEX

- Container: [https://hub.docker.com/repository/docker/liutyi/sdnext-ipex/tags/25.11-ipex/](https://hub.docker.com/repository/docker/liutyi/sdnext-ipex/tags/25.11-ipex/)
- Source code: [https://github.com/liutyi/sdnext/tree/ipex](https://github.com/liutyi/sdnext/tree/ipex)

PyTorch 2.7.1+xpu; IPEX 2.7.10+xpu. It was working better than Pytorch 2.7.1+xpu w/o ipex for iGPU. But might not be actually that better than 2.9.1+xpu. The only reason (at least it seems to) to continue use it is that it provides GPU memory usage verbose stats.

## PyTorch

- Docker container: [https://hub.docker.com/repository/docker/liutyi/sdnext-ipex/tags/25.11-pytorch](https://hub.docker.com/repository/docker/liutyi/sdnext-ipex/tags/25.11-pytorch)
- Source code: [https://github.com/liutyi/sdnext/tree/pytorch](https://github.com/liutyi/sdnext/tree/pytorch)

Based on PyTorch 2.9.1+xpu

## Docker-compose example

```
services:
  sdnext-ipex:
    container_name: sdnext-ipex
    # PyTorch 2.7.1+xpu and ipex 2.7.10+xpu for Intel
#    image: liutyi/sdnext-ipex:25.11-ipex
    # PyTorch 2.9.1+xpu for Intel
    image: liutyi/sdnext-ipex:25.11-pytorch
    restart: unless-stopped
    devices:
      # GPU
      - /dev/dri:/dev/dri 
      # NPU (optional)
      - /dev/accel:/dev/accel
    environment:
      - HF_DEBUG=True
      # To USE Nano Banana get key https://aistudio.google.com/api-keys
#     - GOOGLE_API_KEY=AIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    ports:
      - 7860:7860
    volumes:
      - /docker/sdnext/app-volume:/app
      - /docker/sdnext/mnt-volume:/mnt
      - /docker/sdnext/hf-volume:/root/.cache/huggingface
      - /dev/shm:/dev/shm

```