Instructions to use kruatech/studio-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use kruatech/studio-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download kruatech/studio-mlx --local-dir studio-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -65,12 +65,13 @@ The `-q4` folders sit at the top level rather than inside the bf16 ones, so an i
|
|
| 65 |
|
| 66 |
**Use the 4-bit folders.** Quantization is MLX affine: 4 bits per weight with a bf16 scale and bias for every group of 64, about 4.5 bits per weight and 28-30% of the bf16 size. Normalizations, modulations and the encoder's embedding table stay in bf16, and matrix multiplication still runs in bf16 - the gain is memory and load time, not integer arithmetic.
|
| 67 |
|
| 68 |
-
|
|
| 69 |
-
|-----------------------------------|-----------|----------|
|
| 70 |
-
| Z-Image DiT
|
| 71 |
-
| klein DiT
|
| 72 |
-
| shared encoder
|
| 73 |
-
| klein
|
|
|
|
| 74 |
|
| 75 |
Output quality was indistinguishable: the same prompt and seed gave two clean images that differ the way two seeds differ. The bf16 folders exist as the accuracy reference a port can be checked against.
|
| 76 |
|
|
|
|
| 65 |
|
| 66 |
**Use the 4-bit folders.** Quantization is MLX affine: 4 bits per weight with a bf16 scale and bias for every group of 64, about 4.5 bits per weight and 28-30% of the bf16 size. Normalizations, modulations and the encoder's embedding table stay in bf16, and matrix multiplication still runs in bf16 - the gain is memory and load time, not integer arithmetic.
|
| 67 |
|
| 68 |
+
| | bf16 | 4-bit |
|
| 69 |
+
|------------------------------------|-----------|----------|
|
| 70 |
+
| Z-Image DiT | 11.46 GiB | 3.40 GiB |
|
| 71 |
+
| klein DiT | 7.22 GiB | 2.03 GiB |
|
| 72 |
+
| shared encoder | 7.51 GiB | 2.58 GiB |
|
| 73 |
+
| klein 1024 px, 4 steps, wall clock | 170 s | 73 s |
|
| 74 |
+
| of which the 4 steps themselves | 35 s | 32 s |
|
| 75 |
|
| 76 |
Output quality was indistinguishable: the same prompt and seed gave two clean images that differ the way two seeds differ. The bf16 folders exist as the accuracy reference a port can be checked against.
|
| 77 |
|