Instructions to use Disty0/FLUX.2-klein-4B-SDNQ-4bit-dynamic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Disty0/FLUX.2-klein-4B-SDNQ-4bit-dynamic with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Disty0/FLUX.2-klein-4B-SDNQ-4bit-dynamic", 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
- Draw Things
- DiffusionBee
Question about the license tag
#2
by belfner - opened
The base model (black-forest-labs/FLUX.2-klein-4B) is released under Apache 2.0. Black Forest Labs applies the FLUX Non-Commercial License to the 9B klein variants, not the 4B ones.
This repo lists "flux-non-commercial-license" as its license. Is there a specific reason for this, or was the 4B license intended to carry over?
Readme was copy pasted from the 9B model. Flux2 4B Licence should be the correct one, updated it.
Appreciate it!
belfner changed discussion status to closed