--- license: other license_name: stabilityai-ai-community license_link: https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/blob/main/LICENSE tags: - text-to-image - stable-diffusion - diffusers inference: true extra_gated_prompt: >- By clicking "Agree", you agree to the [License Agreement](https://huggingface.co/stabilityai/stable-diffusion-3.5-medium/blob/main/LICENSE) and acknowledge Stability AI's [Privacy Policy](https://stability.ai/privacy-policy). extra_gated_fields: Name: text Email: text Country: country Organization or Affiliation: text Receive email updates and promotions on Stability AI products, services, and research?: type: select options: - 'Yes' - 'No' What do you intend to use the model for?: type: select options: - Research - Personal use - Creative Professional - Startup - Enterprise I agree to the License Agreement and acknowledge Stability AI's Privacy Policy: checkbox language: - en pipeline_tag: text-to-image --- # 🚀 Stable Diffusion 3.5 Medium on AMD NPU "Stable Diffusion 3.5 Medium is an improved version of SD3 Medium, featuring better prompt adherence, better generation quality, and more diverse outputs. SD3.5 Medium is a Multimodal Diffusion Transformer (MMDiT) text-to-image model that features improved image quality, typography, and prompt understanding." ([stabilityai/stable-diffusion-3.5-medium](https://huggingface.co/stabilityai/stable-diffusion-3.5-medium)) This version of the model has been optimized to run on AMD NPUs. For more information, refer to the original model card under [stabilityai/stable-diffusion-3.5-medium](https://huggingface.co/stabilityai/stable-diffusion-3.5-medium). > **M1.0 variant:** This repository contains the M1.0-optimized NPU model derived from [amd/stable-diffusion-3.5-medium-amdnpu](https://huggingface.co/amd/stable-diffusion-3.5-medium-amdnpu). ## Model Details The folder structure is organized around the shared (`common`) pipeline components and the text-to-image transformer (`normal`). ```text ├─ common/ │ ├─ scheduler/ │ ├─ text_encoder/ │ ├─ text_encoder_2/ │ ├─ text_encoder_3/ │ ├─ text_encoder_3_int4/ │ ├─ tokenizer/ │ ├─ tokenizer_2/ │ ├─ tokenizer_3/ │ ├─ vae_decoder/ │ └─ vae_encoder/ └─ normal/ └─ transformer/ ``` 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. 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. 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. 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. 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. 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. > 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. | Model Details | Description | | ----------- | ----------- | | Person or organization developing model | [AMD](https://hf.co/amd) | | Original model authors | [Stability AI](https://huggingface.co/stabilityai/stable-diffusion-3.5-medium) | | Model date | October 2026 | | Model version | 1.9.0 | | Model type | Diffusion-based text-to-image generation model | | 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. | | License | [Stability AI Community](https://huggingface.co/amd/stable-diffusion-3.5-medium_m1.0_npu/blob/main/LICENSE) | | 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) | ## ⚡ Intended Use #### Getting Started To get started with this model, visit [github.com/amd/sd-sandbox](https://github.com/amd/sd-sandbox). ## ⚓ Ethical Considerations AMD is committed to conducting our business in a fair, ethical and honest manner and in compliance with all applicable laws, rules and regulations. You can find out more at the [AMD Ethics and Compliance](https://www.amd.com/en/corporate/corporate-responsibility/ethics-and-compliance.html) page. ## ⚠️ Caveats and Recommendations Please visit the original model card for more details: [stabilityai/stable-diffusion-3.5-medium](https://huggingface.co/stabilityai/stable-diffusion-3.5-medium).