0b606721dd
Downloads previously landed in models/ owned by root because the
container ran as root. Add `user: "${PUID:-1000}:${PGID:-1000}"` to the
model-manager service and PUID/PGID to .env.example so downloaded models
are owned by the host user. Defaults to 1000:1000.
Note: existing root-owned files under models/ and sparkyui-data/ must be
chowned once (e.g. via a one-off root container) when upgrading.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
39 lines
1.4 KiB
Bash
39 lines
1.4 KiB
Bash
# SparkyUI - ComfyUI for DGX Spark (Blackwell GB10)
|
|
# Copy this to .env and customize paths as needed
|
|
|
|
# Base path that holds the models/ directory (defaults to the project root).
|
|
# The Model Manager downloads into <COMFYUI_HOST_PATH>/models and ComfyUI reads it.
|
|
COMFYUI_HOST_PATH=.
|
|
|
|
# Base path for SparkyUI data (custom_nodes, outputs, inputs, manager DB, etc.)
|
|
# Defaults to the project root.
|
|
SPARKYUI_DATA_PATH=.
|
|
|
|
# ComfyUI settings
|
|
COMFYUI_PORT=8188
|
|
|
|
# Optimized flags for Grace-Blackwell unified memory architecture
|
|
# Key: DON'T use --gpu-only - it fights the unified memory fabric
|
|
# --disable-pinned-memory: reduces overhead on unified fabric
|
|
# --force-fp16 + --fp16-*: enables SageAttention optimization
|
|
# --dont-upcast-attention: keeps attention in FP16 for speed
|
|
COMFYUI_FLAGS=--listen 0.0.0.0 --port 8188 --disable-pinned-memory --force-fp16 --fp16-unet --fp16-vae --fp16-text-enc --dont-upcast-attention
|
|
|
|
# Build refs (pin to specific commits/tags for reproducibility)
|
|
COMFYUI_REF=master
|
|
SAGEATTN_REF=main
|
|
|
|
# ComfyUIMini - Mobile-friendly UI (optional)
|
|
# Access at http://<host>:3000
|
|
COMFYUIMINI_PORT=3000
|
|
COMFYUIMINI_REF=main
|
|
|
|
# Model Manager - StabilityMatrix-style model download/management UI
|
|
# Access at http://<host>:8189
|
|
MODEL_MANAGER_PORT=8189
|
|
|
|
# Run the Model Manager container as this host user/group so downloaded
|
|
# models are owned by you (not root). Set to your `id -u` / `id -g`.
|
|
PUID=1000
|
|
PGID=1000
|