Instructions to use stabilityai/stable-diffusion-3.5-medium_m1.0_npu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-diffusion-3.5-medium_m1.0_npu with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-3.5-medium_m1.0_npu", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Rename medusa to m1.0 in model card links; update model version to 1.9.0
#1
by bconsolvo - opened
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
license_name: stabilityai-ai-community
|
| 4 |
-
license_link: https://huggingface.co/amd/stable-diffusion-3.5-
|
| 5 |
tags:
|
| 6 |
- text-to-image
|
| 7 |
- stable-diffusion
|
|
@@ -67,17 +67,17 @@ The folder structure is organized around the shared (`common`) pipeline componen
|
|
| 67 |
└─ transformer/
|
| 68 |
```
|
| 69 |
|
| 70 |
-
The [scheduler](https://huggingface.co/amd/stable-diffusion-3.5-
|
| 71 |
|
| 72 |
-
The [text_encoder](https://huggingface.co/amd/stable-diffusion-3.5-
|
| 73 |
|
| 74 |
-
The [tokenizer](https://huggingface.co/amd/stable-diffusion-3.5-
|
| 75 |
|
| 76 |
-
The [transformer](https://huggingface.co/amd/stable-diffusion-3.5-
|
| 77 |
|
| 78 |
-
The [vae_decoder](https://huggingface.co/amd/stable-diffusion-3.5-
|
| 79 |
|
| 80 |
-
The [vae_encoder](https://huggingface.co/amd/stable-diffusion-3.5-
|
| 81 |
|
| 82 |
> Note: Transformer and VAE decoder models are optimized and structured to run on AMD NPUs. The other components (text encoders, tokenizers and scheduler) are shared between GPU and NPU pipelines, but are provided here for completeness.
|
| 83 |
|
|
@@ -86,11 +86,11 @@ The [vae_encoder](https://huggingface.co/amd/stable-diffusion-3.5-medium-amdnpu-
|
|
| 86 |
| Person or organization developing model | [AMD](https://hf.co/amd) |
|
| 87 |
| Original model authors | [Stability AI](https://huggingface.co/stabilityai/stable-diffusion-3.5-medium) |
|
| 88 |
| Model date | October 2026 |
|
| 89 |
-
| Model version | 1.
|
| 90 |
| Model type | Diffusion-based text-to-image generation model |
|
| 91 |
| Information about training algorithms, parameters, fairness constraints or other applied approaches, and features | This is a model that can be used to generate and modify images based on text prompts. |
|
| 92 |
-
| License | [Stability AI Community](https://huggingface.co/amd/stable-diffusion-3.5-
|
| 93 |
-
| Where to send questions or comments about the model | [Community Tab](https://hf.co/amd/stable-diffusion-3.5-
|
| 94 |
|
| 95 |
## ⚡ Intended Use
|
| 96 |
|
|
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
license_name: stabilityai-ai-community
|
| 4 |
+
license_link: https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/blob/main/LICENSE
|
| 5 |
tags:
|
| 6 |
- text-to-image
|
| 7 |
- stable-diffusion
|
|
|
|
| 67 |
└─ transformer/
|
| 68 |
```
|
| 69 |
|
| 70 |
+
The [scheduler](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/tree/main/common/scheduler) folder contains the scheduler configuration used during the diffusion sampling process.
|
| 71 |
|
| 72 |
+
The [text_encoder](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/tree/main/common/text_encoder), [text_encoder_2](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/tree/main/common/text_encoder_2), [text_encoder_3](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/tree/main/common/text_encoder_3), and [text_encoder_3_int4](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/tree/main/common/text_encoder_3_int4) folders contain the CLIP and T5 text encoder models (including the INT4 T5 variant) used to convert the input prompt into conditioning embeddings.
|
| 73 |
|
| 74 |
+
The [tokenizer](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/tree/main/common/tokenizer), [tokenizer_2](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/tree/main/common/tokenizer_2), and [tokenizer_3](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/tree/main/common/tokenizer_3) folders contain the tokenizer configuration and vocabulary files required to preprocess text prompts for the respective text encoders.
|
| 75 |
|
| 76 |
+
The [transformer](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/tree/main/normal/transformer) folder contains the MMDiT transformer model used in the diffusion process. The transformer is exported and structured specifically to leverage the AMD NPU accelerator for the denoising steps.
|
| 77 |
|
| 78 |
+
The [vae_decoder](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/tree/main/common/vae_decoder) folder contains the VAE decoder model used to map latent representations back to the image space. The VAE decoder is also structured to make use of the NPU accelerator for efficient image reconstruction.
|
| 79 |
|
| 80 |
+
The [vae_encoder](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/tree/main/common/vae_encoder) folder contains the VAE encoder model used for image-to-latent conversion.
|
| 81 |
|
| 82 |
> Note: Transformer and VAE decoder models are optimized and structured to run on AMD NPUs. The other components (text encoders, tokenizers and scheduler) are shared between GPU and NPU pipelines, but are provided here for completeness.
|
| 83 |
|
|
|
|
| 86 |
| Person or organization developing model | [AMD](https://hf.co/amd) |
|
| 87 |
| Original model authors | [Stability AI](https://huggingface.co/stabilityai/stable-diffusion-3.5-medium) |
|
| 88 |
| Model date | October 2026 |
|
| 89 |
+
| Model version | 1.9.0 |
|
| 90 |
| Model type | Diffusion-based text-to-image generation model |
|
| 91 |
| Information about training algorithms, parameters, fairness constraints or other applied approaches, and features | This is a model that can be used to generate and modify images based on text prompts. |
|
| 92 |
+
| License | [Stability AI Community](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/blob/main/LICENSE) |
|
| 93 |
+
| Where to send questions or comments about the model | [Community Tab](https://hf.co/amd/stable-diffusion-3.5-medium_m1.0_npu/discussions) and [AMD Developer Community Discord](https://discord.gg/amd-dev) |
|
| 94 |
|
| 95 |
## ⚡ Intended Use
|
| 96 |
|