From ae5ce0556ef2adff13ee42a9a7cd1e6174bc0660 Mon Sep 17 00:00:00 2001 From: luix93 <76565668+luix93@users.noreply.github.com> Date: Sat, 14 Mar 2026 16:30:56 +0100 Subject: [PATCH] Add example .env configuration for ComfyUI --- .env.example | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..439d9ec --- /dev/null +++ b/.env.example @@ -0,0 +1,30 @@ +# ComfyUI for DGX Spark (Blackwell GB10) +# Based on nvidia/cuda:13.1.1-devel-ubuntu24.04 container +# Customize your paths and rename this to .env +# I suggest creating a comfyui folder in your home +# Copy comfy_kitchen-0.2.7-cp312-abi3-linux_aarch64.whl in your /home/user/comfyui/wheel folder + +# Base path where your existing ComfyUI installation lives (for models) +COMFYUI_HOST_PATH=/home/user/comfyui + +# Base path for ComfyUI data (custom_nodes, outputs, inputs, etc.) +COMFYUI_DATA_PATH=/home/user/comfyui + +# 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 Flash Attention optimization +# --dont-upcast-attention: keeps attention in FP16 for speed +# --disable-mmap: together with the patch in the Dockerfile fixes the double memory usage on unified memory on the Spark +COMFYUI_FLAGS=--listen 0.0.0.0 --port 8188 --disable-pinned-memory --use-sage-attention --force-fp16 --bf16-unet --bf16-vae --bf16-text-enc --dont-upcast-attention --disable-mmap + +# Build refs (pin to specific commits/tags for reproducibility) +COMFYUI_REF=master + +# ComfyUIMini - Mobile-friendly UI (optional) +# Access at http://:3000 +COMFYUIMINI_PORT=3000 +COMFYUIMINI_REF=main