Text-to-Image
Diffusers
Safetensors
MLX
Flux2KleinPipeline
1-bit
apple-silicon
on-device
diffusion
flux
prismml
bonsai
Instructions to use prism-ml/bonsai-image-binary-4B-mlx-1bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use prism-ml/bonsai-image-binary-4B-mlx-1bit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("prism-ml/bonsai-image-binary-4B-mlx-1bit", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - MLX
How to use prism-ml/bonsai-image-binary-4B-mlx-1bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir bonsai-image-binary-4B-mlx-1bit prism-ml/bonsai-image-binary-4B-mlx-1bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Draw Things
- DiffusionBee
- Atomic Chat
Commit ·
d1b3ac1
1
Parent(s): 9a993c6
Add Flux2KleinPipeline model_index.json and register in manifest
Browse files- manifest.json +6 -1
- model_index.json +4 -0
manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"model_version": "binary g128 (Apple Silicon mlx-1bit deployment)",
|
| 3 |
-
"total_bytes":
|
| 4 |
"files": [
|
| 5 |
{
|
| 6 |
"remote_path": "LICENSE",
|
|
@@ -17,6 +17,11 @@
|
|
| 17 |
"size": 11996,
|
| 18 |
"sha256": "1527258bbdd58161a3241245985c78ad5503635fd32bc2d0d37634c192a574e5"
|
| 19 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
{
|
| 21 |
"remote_path": "scheduler/scheduler_config.json",
|
| 22 |
"size": 486,
|
|
|
|
| 1 |
{
|
| 2 |
"model_version": "binary g128 (Apple Silicon mlx-1bit deployment)",
|
| 3 |
+
"total_bytes": 3428210856,
|
| 4 |
"files": [
|
| 5 |
{
|
| 6 |
"remote_path": "LICENSE",
|
|
|
|
| 17 |
"size": 11996,
|
| 18 |
"sha256": "1527258bbdd58161a3241245985c78ad5503635fd32bc2d0d37634c192a574e5"
|
| 19 |
},
|
| 20 |
+
{
|
| 21 |
+
"remote_path": "model_index.json",
|
| 22 |
+
"size": 81,
|
| 23 |
+
"sha256": "ecb4735e37691a8733f62957fd6c548f841af40624905bb24fa639756153c8a1"
|
| 24 |
+
},
|
| 25 |
{
|
| 26 |
"remote_path": "scheduler/scheduler_config.json",
|
| 27 |
"size": 486,
|
model_index.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "Flux2KleinPipeline",
|
| 3 |
+
"_diffusers_version": "0.37.0.dev0"
|
| 4 |
+
}
|