Instructions to use cbensimon/FLUX.2-klein-4B-sm90-cu128-glibc235-r06 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use cbensimon/FLUX.2-klein-4B-sm90-cu128-glibc235-r06 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("cbensimon/FLUX.2-klein-4B-sm90-cu128-glibc235-r06", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -65,7 +65,7 @@ Generated as part of the compilation job: before and after compilation
|
|
| 65 |
|
| 66 |
| Before compilation (10.25s) | After compilation (7.60s) |
|
| 67 |
|------------------------------------------------|----------------------------------------------|
|
| 68 |
-
| 
|
|
|
|
| 65 |
|
| 66 |
| Before compilation (10.25s) | After compilation (7.60s) |
|
| 67 |
|------------------------------------------------|----------------------------------------------|
|
| 68 |
+
|  |  |
|
| 69 |
|
| 70 |
Speedup: **1.35x**
|
| 71 |
(note that this might not always reflect actual performance gain)
|