Instructions to use argmaxinc/mlx-stable-diffusion-3-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- DiffusionKit
How to use argmaxinc/mlx-stable-diffusion-3-medium with DiffusionKit:
# Pipeline for Stable Diffusion 3 from diffusionkit.mlx import DiffusionPipeline pipeline = DiffusionPipeline( shift=3.0, use_t5=False, model_version=argmaxinc/mlx-stable-diffusion-3-medium, low_memory_mode=True, a16=True, w16=True, )
# Image Generation HEIGHT = 512 WIDTH = 512 NUM_STEPS = 50 CFG_WEIGHT = 5 image, _ = pipeline.generate_image( "a photo of a cat", cfg_weight=CFG_WEIGHT, num_steps=NUM_STEPS, latent_size=(HEIGHT // 8, WIDTH // 8), )
- MLX
How to use argmaxinc/mlx-stable-diffusion-3-medium with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir mlx-stable-diffusion-3-medium argmaxinc/mlx-stable-diffusion-3-medium
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
File size: 1,236 Bytes
e947441 071d78b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | ---
license: other
license_name: stabilityai-nc-research-community
license_link: >-
https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers/blob/main/LICENSE
library_name: diffusionkit
base_model: stabilityai/stable-diffusion-3-medium-diffusers
tags:
- text-to-image
- image-generation
- mlx
inference: false
language:
- en
---
# Stable Diffusion 3 Medium on DiffusionKit MLX!
## Check out the [original model](https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers)!
## Check out the [DiffusionKit](https://github.com/argmaxinc/DiffusionKit) github repository!

# Usage
- ## Create conda environment
```shell
conda create -n diffusionkit python=3.11 -y
conda activate diffusionkit
pip install diffusionkit
```
- ## Run the cli command
```shell
diffusionkit-cli --prompt "detailed cinematic dof render of a \
detailed MacBook Pro on a wooden desk in a dim room with items \
around, messy dirty room. On the screen are the letters 'SD3 on \
DiffusionKit' glowing softly. High detail hard surface render" \
--model-version argmaxinc/mlx-stable-diffusion-3-medium
--height 768 \
--width 1360 \
--seed 1001 \
--step 50 \
--cfg 7 \
--output ~/Desktop/sd3_on_mac.png
``` |