Instructions to use Freepik/flux.1-lite-8B-alpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Freepik/flux.1-lite-8B-alpha with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Freepik/flux.1-lite-8B-alpha", 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
fix: Update readme
Browse files- .gitattributes +0 -1
- README.md +9 -9
- sample_images/.DS_Store +0 -0
.gitattributes
CHANGED
|
@@ -33,5 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
-
flux1-lite_sample.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
*.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 36 |
*.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -11,13 +11,13 @@ tags:
|
|
| 11 |
- text-to-image
|
| 12 |
---
|
| 13 |
|
| 14 |
-
 as the original model.
|
| 19 |
|
| 20 |
-

|
|
| 60 |
|
| 61 |
Inspired by [Ostris](https://ostris.com/2024/09/07/skipping-flux-1-dev-blocks/) findings, we analyzed the mean squared error (MSE) between the input and output of each block to quantify their contribution to the final result, revealing significant variability.
|
| 62 |
|
| 63 |
-
As Ostris pointed out, not all blocks contribute equally. While skipping just one of the early
|
| 64 |
|
| 65 |
-

|
| 84 |
|
|
|
|
| 11 |
- text-to-image
|
| 12 |
---
|
| 13 |
|
| 14 |
+

|
| 15 |
|
| 16 |
# Flux.1 Lite
|
| 17 |
|
| 18 |
We are thrilled to announce the alpha release of Flux.1 Lite, an 8B parameter transformer model distilled from the FLUX.1-dev model. This version uses 7 GB less RAM and runs 23% faster while maintaining the same precision (bfloat16) as the original model.
|
| 19 |
|
| 20 |
+

|
| 21 |
|
| 22 |
## Text-to-Image
|
| 23 |
|
|
|
|
| 60 |
|
| 61 |
Inspired by [Ostris](https://ostris.com/2024/09/07/skipping-flux-1-dev-blocks/) findings, we analyzed the mean squared error (MSE) between the input and output of each block to quantify their contribution to the final result, revealing significant variability.
|
| 62 |
|
| 63 |
+
As Ostris pointed out, not all blocks contribute equally. While skipping just one of the early MMDiT blocks can significantly impact model performance, skipping the rest of the blocks does not have a significant impact over the final image quality.
|
| 64 |
|
| 65 |
+

|
| 66 |
+

|
| 67 |
+

|
| 68 |
|
| 69 |
Furthermore, as displayed in the following image, only when you skip one of the first MMDIT blocks, the performance of the model severely impacts the model's performance.
|
| 70 |
|
| 71 |
+

|
| 72 |
+

|
| 73 |
|
| 74 |
## Future work
|
| 75 |
|
|
|
|
| 78 |
## ComfyUI
|
| 79 |
|
| 80 |
We've also crafted a ComfyUI workflow to make using Flux.1 Lite even more seamless! Find it in `comfy/flux.1-lite_workflow.json`.
|
| 81 |
+

|
| 82 |
|
| 83 |
The safetensors checkpoint is available here: [flux.1-lite-8B-alpha.safetensors](flux.1-lite-8B-alpha.safetensors)
|
| 84 |
|
sample_images/.DS_Store
DELETED
|
Binary file (6.15 kB)
|
|
|