update readme (#3)
Browse files- add readme to match the other flux model (ebf52e2feab7713b4338719de54d145c4b3c4236)
- update model_version and add note (9a7ac868f3e2533f21875c90200671b03e34caff)
Co-authored-by: Arda Atahan Ibis <[email protected]>
- .DS_Store +0 -0
- README.md +36 -0
- flux_on_mac.png +0 -0
.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: mlx
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
tags:
|
| 7 |
+
- text-to-image
|
| 8 |
+
- image-generation
|
| 9 |
+
- flux
|
| 10 |
+
- diffusionkit
|
| 11 |
+
---
|
| 12 |
+
# FLUX.1-schnell on DiffusionKit MLX!
|
| 13 |
+
## Check out the [original model](https://huggingface.co/black-forest-labs/FLUX.1-schnell)!
|
| 14 |
+
## Check out the [DiffusionKit](https://github.com/argmaxinc/DiffusionKit) github repository!
|
| 15 |
+
![FLUX.1 [schnell] Grid](./flux_on_mac.png)
|
| 16 |
+
Note: This checkpoint features 4-bit quantization of the mmdit module using MLX's nn.quantize function with default settings (group_size=64).
|
| 17 |
+
# Usage
|
| 18 |
+
- ## Create conda environment
|
| 19 |
+
```shell
|
| 20 |
+
conda create -n diffusionkit python=3.11 -y
|
| 21 |
+
conda activate diffusionkit
|
| 22 |
+
pip install diffusionkit
|
| 23 |
+
```
|
| 24 |
+
- ## Run the cli command
|
| 25 |
+
```shell
|
| 26 |
+
diffusionkit-cli --prompt "detailed cinematic dof render of a \
|
| 27 |
+
detailed MacBook Pro on a wooden desk in a dim room with items \
|
| 28 |
+
around, messy dirty room. On the screen are the letters 'FLUX on \
|
| 29 |
+
DiffusionKit' glowing softly. High detail hard surface render" \
|
| 30 |
+
--model-version argmaxinc/FLUX.1-schnell-4bit-quantized \
|
| 31 |
+
--height 768 \
|
| 32 |
+
--width 1360 \
|
| 33 |
+
--seed 1001 \
|
| 34 |
+
--step 4 \
|
| 35 |
+
--output ~/Desktop/flux_on_mac.png
|
| 36 |
+
```
|
flux_on_mac.png
ADDED
|