This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup | |
# ---------------------- | |
# Install torch from nightly | |
# `pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu126` | |
# Install diffusers | |
# `pip install diffusers` | |
import torch | |
from diffusers import FluxPipeline, FluxTransformer2DModel, GGUFQuantizationConfig |