Upload README-comfyui-setup.md with huggingface_hub
Browse files- README-comfyui-setup.md +70 -0
README-comfyui-setup.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ComfyUI Fast Setup — Qwen Image Edit (H100)
|
| 2 |
+
|
| 3 |
+
Reproducible notes for standing up this ComfyUI box quickly. The speed trick is simple: **the base image already had a working CUDA PyTorch stack, so nothing large was reinstalled.**
|
| 4 |
+
|
| 5 |
+
## Machine
|
| 6 |
+
- GPU: NVIDIA H100 80GB HBM3 (CUDA 13.0 driver, 580.x)
|
| 7 |
+
- Python 3.12, pre-installed: `torch 2.8.0+cu128`, `torchvision 0.23.0`, `torchaudio 2.8.0` (all CUDA-verified)
|
| 8 |
+
- `/workspace` is a network filesystem (MooseFS) — model reads are slow when the OS page cache is cold (e.g. right after a restart). Keep the server running to keep weights resident.
|
| 9 |
+
|
| 10 |
+
## 1. ComfyUI
|
| 11 |
+
```bash
|
| 12 |
+
git clone --depth 1 https://github.com/comfyanonymous/ComfyUI.git /workspace/ComfyUI
|
| 13 |
+
cd /workspace/ComfyUI
|
| 14 |
+
pip install -r requirements.txt # torch stack already present -> only light deps install
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
## 2. Fast downloads (hf_xet, not hf_transfer)
|
| 18 |
+
`huggingface_hub` 1.x ships `hf_xet` (chunked parallel transfer) built in — `hf_transfer` no longer exists.
|
| 19 |
+
```bash
|
| 20 |
+
export HF_TOKEN=<your token>
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
## 3. Standard Qwen Image Edit models (the reproducible core)
|
| 24 |
+
Download straight from the public repos into these paths:
|
| 25 |
+
|
| 26 |
+
| File | Repo | Dest |
|
| 27 |
+
|------|------|------|
|
| 28 |
+
| `qwen_image_edit_2511_fp8mixed.safetensors` (20 GB, recommended) | `Comfy-Org/Qwen-Image-Edit_ComfyUI` `split_files/diffusion_models/` | `models/diffusion_models/` |
|
| 29 |
+
| `qwen_image_edit_2511_bf16.safetensors` (39 GB, max quality) | same | `models/diffusion_models/` |
|
| 30 |
+
| `qwen_2.5_vl_7b_fp8_scaled.safetensors` | `Comfy-Org/HunyuanVideo_1.5_repackaged` `split_files/text_encoders/` | `models/text_encoders/` |
|
| 31 |
+
| `qwen_image_vae.safetensors` | `Comfy-Org/Qwen-Image_ComfyUI` `split_files/vae/` | `models/vae/` |
|
| 32 |
+
| `Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors` | `lightx2v/Qwen-Image-Edit-2511-Lightning` | `models/loras/` |
|
| 33 |
+
|
| 34 |
+
Example (parallelize these for speed):
|
| 35 |
+
```bash
|
| 36 |
+
hf download Comfy-Org/Qwen-Image-Edit_ComfyUI \
|
| 37 |
+
split_files/diffusion_models/qwen_image_edit_2511_fp8mixed.safetensors \
|
| 38 |
+
--local-dir /tmp/dl && mv /tmp/dl/split_files/diffusion_models/*.safetensors \
|
| 39 |
+
/workspace/ComfyUI/models/diffusion_models/
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
**fp8 vs bf16:** fp8mixed is half the size (20 vs 39 GB), loads ~2x faster, and on an H100 also computes faster with negligible quality loss for edits. Use bf16 only when chasing maximum fidelity.
|
| 43 |
+
|
| 44 |
+
## 4. Custom nodes
|
| 45 |
+
```bash
|
| 46 |
+
git clone --depth 1 https://github.com/rgthree/rgthree-comfy.git \
|
| 47 |
+
/workspace/ComfyUI/custom_nodes/rgthree-comfy # Power Lora Loader
|
| 48 |
+
pip install -U comfyui-manager # matches bundled manager_requirements.txt (4.2.2)
|
| 49 |
+
```
|
| 50 |
+
> ComfyUI-Manager installs node deps with `uv pip`, which refuses the system Python (PEP 668).
|
| 51 |
+
> If a node's deps fail to install via the Manager UI, install them directly instead:
|
| 52 |
+
> `pip install -r custom_nodes/<node>/requirements.txt`
|
| 53 |
+
|
| 54 |
+
## 5. Run
|
| 55 |
+
```bash
|
| 56 |
+
cd /workspace/ComfyUI
|
| 57 |
+
python3 main.py --listen 0.0.0.0 --port 7865
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
## 6. Workflows built
|
| 61 |
+
- **`qwen-loras.json`** — master Qwen edit workflow. Single **"Accelerate?"** boolean toggles
|
| 62 |
+
Lightning-4step + steps(4↔20) + CFG(1.0↔4.0) together. Content LoRAs go in the Power Lora Loader.
|
| 63 |
+
- **`qwen-cat-final.json`** — multi-reference edit. A second `LoadImage` feeds `image2` of
|
| 64 |
+
`TextEncodeQwenImageEditPlus`, so an edit can combine two input images (e.g. subject + object).
|
| 65 |
+
|
| 66 |
+
## Notes / gotchas
|
| 67 |
+
- Model load is the slow step over the network FS; it's a one-time cost per server start. Avoid
|
| 68 |
+
restarting mid-session — resident weights make LoRA swaps fast.
|
| 69 |
+
- Both `opencv-python` and `-headless` may end up installed by different node packs; same version = fine.
|
| 70 |
+
- The `RequestsDependencyWarning` about urllib3/chardet at startup is cosmetic.
|