Instructions to use wikeeyang/Flux2-Klein-9B-True-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use wikeeyang/Flux2-Klein-9B-True-V1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("wikeeyang/Flux2-Klein-9B-True-V1", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
如何在diffuser使用这个权重
#1
by yeluoo - opened
麻烦你们提供的diffuser代码,谢谢,非常感谢
这个如果你有一定代码能力的话,可以使用:https://github.com/huggingface/diffusers/blob/main/scripts/convert_flux2_to_diffusers.py 脚本对模型进行转换,就可以在 diffusers 里加载。
也可以利用 diffusers 提供的单文件 transformer 加载能力,直接加载 gguf 量化文件。HF 的 diffusers 官方库中,都有代码和文档可以参考。
yeluoo changed discussion status to closed