fix(mcp-image-gen): merge HF authenticated download fix
This commit is contained in:
@@ -53,17 +53,48 @@ pip install torch torchvision --index-url https://download.pytorch.org/whl/rocm6
|
|||||||
|
|
||||||
FLUX.1-schnell is the recommended model — fast (4 steps), Apache 2.0 licensed, excellent quality.
|
FLUX.1-schnell is the recommended model — fast (4 steps), Apache 2.0 licensed, excellent quality.
|
||||||
|
|
||||||
```bash
|
> ⚠️ **FLUX.1-schnell is a gated model on HuggingFace.**
|
||||||
# Download (~8GB) — place in ComfyUI/models/checkpoints/
|
> A bare `wget` on the URL returns HTTP 401. You must:
|
||||||
wget https://huggingface.co/black-forest-labs/FLUX.1-schnell/resolve/main/flux1-schnell.safetensors \
|
> 1. Accept the license at https://huggingface.co/black-forest-labs/FLUX.1-schnell (click **"Agree and access repository"** — one-time)
|
||||||
-O ~/ComfyUI/models/checkpoints/flux1-schnell.safetensors
|
> 2. Create a HuggingFace access token with **Read** permissions at https://huggingface.co/settings/tokens
|
||||||
|
|
||||||
# Or use huggingface_hub:
|
#### Option A — `huggingface-cli` (recommended)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install the HuggingFace Hub CLI
|
||||||
|
pip install huggingface_hub
|
||||||
|
|
||||||
|
# Log in — paste your Read token when prompted
|
||||||
|
huggingface-cli login
|
||||||
|
|
||||||
|
# Download (~8GB) directly into ComfyUI checkpoints
|
||||||
huggingface-cli download black-forest-labs/FLUX.1-schnell \
|
huggingface-cli download black-forest-labs/FLUX.1-schnell \
|
||||||
flux1-schnell.safetensors \
|
flux1-schnell.safetensors \
|
||||||
--local-dir ~/ComfyUI/models/checkpoints/
|
--local-dir ~/ComfyUI/models/checkpoints/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Option B — `wget` with Authorization header
|
||||||
|
|
||||||
|
```bash
|
||||||
|
wget --header="Authorization: Bearer hf_YOUR_TOKEN_HERE" \
|
||||||
|
https://huggingface.co/black-forest-labs/FLUX.1-schnell/resolve/main/flux1-schnell.safetensors \
|
||||||
|
-O ~/ComfyUI/models/checkpoints/flux1-schnell.safetensors
|
||||||
|
```
|
||||||
|
|
||||||
|
> Replace `hf_YOUR_TOKEN_HERE` with your actual HuggingFace token from https://huggingface.co/settings/tokens
|
||||||
|
|
||||||
|
#### Alternative: fp8 quantized variant (~8.1GB, faster inference)
|
||||||
|
|
||||||
|
If you want slightly faster inference with near-identical quality, the fp8 quantized version is also available:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
huggingface-cli download black-forest-labs/FLUX.1-schnell-fp8 \
|
||||||
|
flux1-schnell-fp8.safetensors \
|
||||||
|
--local-dir ~/ComfyUI/models/checkpoints/
|
||||||
|
```
|
||||||
|
|
||||||
|
> **Download note:** Both variants are ~8GB — expect 10–30 minutes depending on connection speed.
|
||||||
|
|
||||||
You'll also need the CLIP and VAE models — see the [ComfyUI FLUX guide](https://github.com/comfyanonymous/ComfyUI/blob/master/README.md) for full model list.
|
You'll also need the CLIP and VAE models — see the [ComfyUI FLUX guide](https://github.com/comfyanonymous/ComfyUI/blob/master/README.md) for full model list.
|
||||||
|
|
||||||
### Start ComfyUI (AMD ROCm)
|
### Start ComfyUI (AMD ROCm)
|
||||||
|
|||||||
Reference in New Issue
Block a user