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
| from diffusers import FluxPipeline, FluxTransformer2DModel, GGUFQuantizationConfig | |
| import torch | |
| import gc | |
| # Example for FLUX, can be adapted to other models as needed as long as the diffuser supports GGUF | |
| ckpt_id = "black-forest-labs/FLUX.1-dev" | |
| ckpt_path = "/absolute/path/to/gguf/eg/flux1-dev-Q4_K_S.gguf" | |
| prompt = "PROMPT_HERE" | |
| prompt_2 = prompt # Added for reference, can be changed |
OlderNewer