Skip to content

Develop

EXDYSA edited this page Jul 10, 2025 · 85 revisions

Setup

Important

Prerequisites:

Windows 10+
- show

Install Git

Linux
- show

Install libportaudio2, ffmpeg and toga

MacOS 13+ (Ventura-Sequoia)
- show

Install xcode-select (optionally brew) from Terminal app:

xcode-select --install
brew install ffmpeg

Tip

OPTIONAL: Graphics card installation instructions

- show

NVIDIA

- show

CUDA Toolkit for gguf support

linux [export CMAKE_ARGS="-DGGML_CUDA=on"] -windows [setx CMAKE_ARGS="-DGGML_CUDA=on"] for OUTETTS support

AMD

- show

ROCm/HIP SDK Windows for gguf support

ROCm SDK Linux for gguf support

linux [export CMAKE_ARGS="-DGGML_HIPBLAS=on"] -windows [setx CMAKE_ARGS="-DGGML_HIPBLAS=on"] for OUTETTS support

INTEL

- show

APPLE

- show

or just open Terminal and type:

xcode-select --install

type export CMAKE_ARGS="-DGGML_METAL=on" for OUTETTS support

Our Python tools use uv. Simply git clone a project:

  • The main Shadowbox repo

    git clone https://github.com/darkshapes/sdbx
    cd sdbx
    

    then:

    uv sync --group dev
    

You can also run a single session without installation (from sdbx, Zodiac, or nnll):

  • Run Shadowbox without installing

    uvx --from git+https://github.com/darkshapes/sdbx sdbx
    

Other projects [Optional]

These repos may be cloned separately to work on individual components of Shadowbox

git clone https://github.com/darkshapes/nnll
cd nnll
git clone https://github.com/darkshapes/zodiac
cd zodiac
git clone https://github.com/darkshapes/mir
cd mir

then:

uv sync --group dev

For singularity :

We use Bun for TypeScript/React projects.

Clone the repo

git clone https://github.com/darkshapes/singularity

Then install and open your dev copy:

cd singularity
bun install
bun run dev

Alternative Pip Setup [Legacy, Optional]

  • Configure advanced GPU settings (OPTIONAL. Linux, flash-attn, PyTorch compile, etc)

  • Clone your repo(s)

    For sdbx :

    git clone https://github.com/darkshapes/sdbx
    pip install -e "sdbx[dev]"
    sdbx
    ```<hr>
    

    For nnll :

    git clone https://github.com/darkshapes/nnll
     pip install -e "zodiac[dev]"
    

    For mir :

    git clone https://github.com/darkshapes/nnll
     pip install -e "zodiac[dev]"
    

    For Zodiac :

    git clone https://github.com/darkshapes/zodiac.git
    pip install -e "zodiac[dev]"
    

Happy Hacking!