Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SD WebUI Forge Neo Docker Image

Prebuilt Docker images for SD WebUI Forge Neo, with the application and Python dependencies installed into the baked virtual environment at /opt/venv.

Use Cases

  • Running Forge Neo locally in a stable and isolated environment.
  • Running on an NVIDIA, AMD, or CPU-only host with consistent image tags.
  • Updating Forge Neo by pulling a new image instead of modifying an existing container in place.

Automatic Builds On Upstream Changes

The upstream Forge Neo repository is checked periodically for updates. These badges show when each published GHCR tag was last updated.

latest neo cpu-latest cpu-neo amd-latest amd-neo
sd-webui-forge-neo latest neo cpu latest cpu neo amd latest amd neo

Available Image

Image Description
sd-webui-forge-neo Forge Neo with application dependencies and built-in preprocessor dependencies installed at image build time

The image is published as ghcr.io/offloadr/sd-webui-forge-neo.

The image moved here from ghcr.io/radiatingreverberations. The old name still receives every update for now, but new setups should use ghcr.io/offloadr.

Available Tags

Tag Description
latest Latest upstream numeric tag for NVIDIA / CUDA 13.0.3
X.Y.Z Specific upstream numeric Forge Neo release for NVIDIA / CUDA 13.0.3
neo Latest commit of the upstream neo branch for NVIDIA / CUDA 13.0.3
amd-latest / amd-neo As above, but for AMD / ROCm 7.2.3
cpu-latest / cpu-neo As above, but CPU-only
amd-X.Y.Z / cpu-X.Y.Z Release-specific tags for AMD / ROCm and CPU images

Release-specific tags track the current image for that upstream Forge Neo release and may move when this repository's Docker build logic changes.

Running Locally

NVIDIA

docker run --gpus=all -p 7860:7860 ghcr.io/offloadr/sd-webui-forge-neo:latest

AMD

docker run --device=/dev/kfd --device=/dev/dri -p 7860:7860 ghcr.io/offloadr/sd-webui-forge-neo:amd-latest

CPU

docker run -p 7860:7860 ghcr.io/offloadr/sd-webui-forge-neo:cpu-latest

Additional arguments are forwarded to Forge Neo. For example:

docker run --gpus=all -p 7860:7860 ghcr.io/offloadr/sd-webui-forge-neo:latest --api

On container start, the entrypoint activates /opt/venv and launches Forge Neo with --listen and --uv.

Persistent Storage

Without mounts, files created inside the container are lost when the container is removed. Mount these paths for normal use:

Container Path Purpose
/sd-webui-forge-neo/models Model files
/sd-webui-forge-neo/extensions User-installed extensions
/sd-webui-forge-neo/output Generated outputs
/sd-webui-forge-neo/cache Application cache
/sd-webui-forge-neo/config.json UI settings
/sd-webui-forge-neo/ui-config.json UI layout settings

Docker Compose

services:
  forge-neo:
    image: ghcr.io/offloadr/sd-webui-forge-neo:latest
    ports:
      - "7860:7860"
    volumes:
      - ./models:/sd-webui-forge-neo/models
      - ./extensions:/sd-webui-forge-neo/extensions
      - ./output:/sd-webui-forge-neo/output
      - ./cache:/sd-webui-forge-neo/cache
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]
    restart: unless-stopped

Building

Instead of using the prebuilt images, you can build them locally:

docker buildx bake

By default local builds consume:

  • ghcr.io/offloadr/base/cpu-core:py3.13-torch2.14.1-cpu
  • ghcr.io/offloadr/base/amd-core:py3.13-torch2.14.1-rocm7.2.4
  • ghcr.io/offloadr/base/nvidia-full:py3.13-torch2.14.1-cuda13.0.3

To override them, pass one or more Bake variables such as CPU_BASE_IMAGE, AMD_BASE_IMAGE, or NVIDIA_BASE_IMAGE.

Dependencies and bundled tokenizer assets have separate layers. Updates that leave these inputs unchanged reuse those layers; only the final application layer changes. Source archives and temporary build caches are kept out of the published image.

Every build checks that the UI starts and responds over HTTP without a model or GPU. The check uses a read-only venv and includes generated startup settings in the application layer. GPU inference requires a separate runtime check.

CI builds the resolved upstream commit SHA, matching the forge-neo.sha image label.

The Check source-only layer reuse GitHub Actions workflow builds two upstream commits with identical requirements and bundled tokenizer assets, and verifies that only the final layer changes. To run the same check locally:

python tests/check_layer_reuse.py <before-sha> <after-sha> --flavor nvidia

Test images are removed afterwards; Docker's build cache remains available for reuse.

NVIDIA Runtime

NVIDIA images use Python 3.13, PyTorch 2.14.1 and CUDA 13.0.3, with xFormers and SageAttention2++. CPU and AMD images use PyTorch 2.11.0.

The host supplies the NVIDIA driver. On Vast.ai, QuickPod, RunPod, Shadeform and similar services, select a host advertising CUDA 13.0 or newer (driver branch R580 or newer). Its installed CUDA Toolkit does not need to match the container. See NVIDIA's compatibility documentation for driver requirements and PTX/JIT limitations.

Image Details

The image includes:

  • Forge Neo
  • Build-time Forge Neo Python requirements
  • Built-in legacy preprocessor requirements
  • insightface
  • Depth Anything and Depth Anything V2 preprocessor wheels
  • ffmpeg
  • git

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages