Instructions to use treadon/mlx-nucleus-image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use treadon/mlx-nucleus-image with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download treadon/mlx-nucleus-image --local-dir mlx-nucleus-image
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -38,17 +38,11 @@ An [MLX](https://github.com/ml-explore/mlx) port of [NucleusAI/Nucleus-Image](ht
|
|
| 38 |
|
| 39 |
## Usage
|
| 40 |
|
| 41 |
-
### Option A: Clone and run (recommended)
|
| 42 |
-
|
| 43 |
```bash
|
| 44 |
-
git clone https://huggingface.co/treadon/mlx-nucleus-image
|
| 45 |
-
cd mlx-nucleus-image
|
| 46 |
pip install mlx torch transformers huggingface_hub pillow
|
| 47 |
-
|
| 48 |
-
python generate.py --prompt "A red apple on a white table" --seed 42
|
| 49 |
```
|
| 50 |
|
| 51 |
-
###
|
| 52 |
|
| 53 |
```python
|
| 54 |
import torch, gc
|
|
@@ -92,7 +86,13 @@ img.save("output.png")
|
|
| 92 |
|
| 93 |
> First run downloads ~16GB (text encoder) + ~34GB (DiT/VAE weights). Cached by HuggingFace after that.
|
| 94 |
|
| 95 |
-
### CLI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
| Flag | Default | Description |
|
| 98 |
|------|---------|-------------|
|
|
|
|
| 38 |
|
| 39 |
## Usage
|
| 40 |
|
|
|
|
|
|
|
| 41 |
```bash
|
|
|
|
|
|
|
| 42 |
pip install mlx torch transformers huggingface_hub pillow
|
|
|
|
|
|
|
| 43 |
```
|
| 44 |
|
| 45 |
+
### Python API
|
| 46 |
|
| 47 |
```python
|
| 48 |
import torch, gc
|
|
|
|
| 86 |
|
| 87 |
> First run downloads ~16GB (text encoder) + ~34GB (DiT/VAE weights). Cached by HuggingFace after that.
|
| 88 |
|
| 89 |
+
### CLI
|
| 90 |
+
|
| 91 |
+
```bash
|
| 92 |
+
git clone https://huggingface.co/treadon/mlx-nucleus-image
|
| 93 |
+
cd mlx-nucleus-image
|
| 94 |
+
python generate.py --prompt "A red apple on a white table" --seed 42
|
| 95 |
+
```
|
| 96 |
|
| 97 |
| Flag | Default | Description |
|
| 98 |
|------|---------|-------------|
|