Skip to content

feat(comfyui): SDXL Lightning replaces FLUX as default image gen#606

Merged
Lightheartdevs merged 3 commits intomainfrom
feat/comfyui-sdxl-lightning-default
Mar 24, 2026
Merged

feat(comfyui): SDXL Lightning replaces FLUX as default image gen#606
Lightheartdevs merged 3 commits intomainfrom
feat/comfyui-sdxl-lightning-default

Conversation

@Lightheartdevs
Copy link
Copy Markdown
Collaborator

Summary

  • FLUX.1 Schnell (23GB, 5-18 min/image on AMD) → SDXL Lightning 4-step (6.5GB, 5-8 sec/image)
  • Single checkpoint download vs 4 separate model files
  • ~60x faster, ~5x smaller download, works on more hardware

Changes

  • docker-compose.base.yml: FLUX pipeline (DualCLIPLoader + UNETLoader + FluxGuidance + SamplerCustomAdvanced) → SDXL pipeline (CheckpointLoaderSimple + KSampler). Euler sampler, sgm_uniform scheduler, CFG 1.5, 4 steps.
  • Phase 11: 4-file FLUX download (~34GB) → single SDXL Lightning checkpoint (~6.5GB) from HuggingFace
  • Phase 13: Background task name updated
  • test-network-timeouts.sh: Updated to match new download pattern
  • .env.example: Comment updated

What stays the same

  • ComfyUI container, API endpoint, dashboard integration — all unchanged
  • Services that trigger image gen (n8n, dashboard) work identically
  • Users can still manually download FLUX into checkpoints directory if they want higher quality

Verified on

  • AMD Strix Halo (Radeon 8060S, ROCm, gfx1151) — 5-8 seconds per image after first run

Test plan

  • Fresh install with ComfyUI enabled: SDXL Lightning downloads (~6.5GB)
  • Generate image via Open WebUI: completes in seconds, not minutes
  • make test passes (network timeout test updated)
  • NVIDIA path: same workflow, same model, same download
  • Existing FLUX installs: ComfyUI loads SDXL Lightning instead (old FLUX files remain but unused)

🤖 Generated with Claude Code

Lightheartdevs and others added 3 commits March 24, 2026 09:40
FLUX.1 Schnell (12B params, 23GB, 4 separate model files totaling ~34GB)
was taking 5-18 minutes per image on AMD RDNA 3 due to immature ROCm
kernel optimization. SDXL Lightning 4-step (3.5B params, single 6.5GB
checkpoint) generates images in 5-8 seconds on the same hardware.

Changes:
- docker-compose.base.yml: Replace FLUX pipeline (DualCLIPLoader +
  UNETLoader + FluxGuidance + SamplerCustomAdvanced) with standard
  SDXL pipeline (CheckpointLoaderSimple + KSampler). Euler sampler,
  sgm_uniform scheduler, CFG 1.5, 4 steps.
- Phase 11: Replace 4-file FLUX download (~34GB) with single SDXL
  Lightning checkpoint (~6.5GB) from ByteDance/SDXL-Lightning on HF.
- Phase 13: Update background task name from flux-download to
  sdxl-download.
- tests/test-network-timeouts.sh: Update to match new download pattern.
- .env.example: Update comment.

~60x faster subsequent generations. ~5x smaller download. Quality
tradeoff: lower fidelity on text rendering and complex compositions,
but very solid for most use cases. Users who want FLUX quality can
download it manually into the checkpoints directory.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Phase 03 (Linux): "ComfyUI + FLUX, ~34GB" → "ComfyUI + SDXL Lightning, ~6.5GB"
- Phase 03 (Windows): same prompt update
- ComfyUI Dockerfile: header comment updated

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Updates ComfyUI README, Open WebUI README, CATALOG.md, main README
acknowledgments, FAQ, and HOW-DREAM-SERVER-WORKS to reflect the
switch from FLUX.1 Schnell to SDXL Lightning 4-step.

OSS-LAUNCH-CHECKLIST left as-is (historical completed task).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Lightheartdevs Lightheartdevs merged commit e973d1e into main Mar 24, 2026
14 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant