This commit is contained in:
mike
2026-06-12 01:53:06 +02:00
parent e49caf7f6a
commit 2d0322465d
8 changed files with 380 additions and 0 deletions

19
tour-comfy/run_comfyui.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Launch the ComfyUI backend (headless) for the Qwen-Image-Edit API.
# gfx906 (MI50) has no flash-attention, so use the pytorch cross-attention path.
set -e
BASE=/media/tour/APPS/comfyui
cd "$BASE/ComfyUI"
source "$BASE/venv/bin/activate"
# MI50 / Vega20 is happiest in fp16; avoid bf16 emulation.
export PYTORCH_HIP_ALLOC_CONF=expandable_segments:True
export HSA_ENABLE_SDMA=0
# Split cross-attention chunks the attention matmul -> much lower peak VRAM,
# which is what lets the 20B Q8 edit model + reference-image sequence fit in 32GB.
exec python main.py \
--listen 127.0.0.1 \
--port 8188 \
--use-split-cross-attention \
"$@"