Update README.md
Browse files
README.md
CHANGED
|
@@ -1,4 +1,23 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
-
This is a quantized to 4bit, converted to Apple Silicon MLX, version of Z-Image-Turbo for use with [this tool](https://github.com/uqer1244/MLX_z-image), including my New Mecha LoRA.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
+
This is a quantized to 4bit, converted to Apple Silicon MLX, version of Z-Image-Turbo for use with [this tool](https://github.com/uqer1244/MLX_z-image), including my New Mecha LoRA.
|
| 5 |
+
|
| 6 |
+
The script used to convert and merge LoRA is included. It relies on the previously mentionned tool to work.
|
| 7 |
+
|
| 8 |
+
```
|
| 9 |
+
(.venv) [user@MacM1 MLX_z-image] $ python convert_comfy.py --src_model models/z_image_turbo_bf16.safetensors --dst_model alpha.safetensors --lora_model loras/new_mecha_zit.safetensors --lora_scale 0.6
|
| 10 |
+
Starting conversion!
|
| 11 |
+
Loading models/z_image_turbo_bf16.safetensors file...
|
| 12 |
+
Reverting ComfyUI format...
|
| 13 |
+
100%|βββββββββββββββββββββββββββββββββββββββββββββ| 453/453 [00:00<00:00, 533114.40it/s]
|
| 14 |
+
Merging LoRA loras/new_mecha_zit.safetensors at scale 0.6...
|
| 15 |
+
100%|βββββββββββββββββββββββββββββββββββββββββββββ| 481/481 [01:21<00:00, 5.91it/s]
|
| 16 |
+
Merged 240 weight keys
|
| 17 |
+
Converting to MLX...
|
| 18 |
+
100%|βββββββββββββββββββββββββββββββββββββββββββββ| 521/521 [01:52<00:00, 4.62it/s]
|
| 19 |
+
Loading converted weights...
|
| 20 |
+
Quantizing (bits=4, group_size=32)...
|
| 21 |
+
Saving alpha.safetensors file...
|
| 22 |
+
Done!
|
| 23 |
+
```
|