Stability AI's Stable Diffusion 3.5 Medium Runs on Your Home GPU
Stability AI's 2.5B-parameter MMDiT-X model targets consumer GPUs with mixed-resolution training, three text encoders, and a permissive community license.
ProTakeaways
- Stability AI released Stable Diffusion 3.5 Medium, a 2.5B-parameter text-to-image model.
- Uses MMDiT-X architecture with QK normalization and dual attention in early transformer layers.
- Generates images from 0.25 to 2 megapixels and runs in about 9.9 GB VRAM.
- Trained progressively at 256, 512, 768, 1024, and 1440 resolution stages.
- Community License: free for commercial use under $1M annual revenue.
- Available on Hugging Face, Diffusers, ComfyUI, and the Stability API.
Stability AI has filled out its Stable Diffusion 3.5 lineup with a mid-sized sibling to the flagship Large model. Stable Diffusion 3.5 Medium is a 2.5B-parameter text-to-image model that trades raw parameter count for something more practical: fitting on the GPU you already own while still handling the kind of complex prompts that broke earlier open models.
The release completes a family that already included Stable Diffusion 3.5 Large and Stable Diffusion 3.5 Large Turbo. At 2.5 billion parameters, with an improved MMDiT-X architecture and revised training recipe, Medium is designed to run out of the box on consumer hardware and can generate images between 0.25 and 2 megapixels. Reference inference reportedly needs around 9.9 GB of VRAM excluding text encoders, which puts it comfortably within reach of cards like the RTX 3060 12 GB.
What MMDiT-X actually changes
The base architecture is the Multimodal Diffusion Transformer introduced with SD3, where image and text tokens flow through the same transformer instead of being fused via cross-attention. Medium ships a tweaked variant Stability calls MMDiT-X, with two notable changes:
- Self-attention modules in the first 13 layers of the transformer, aimed at multi-resolution generation and overall image coherence.
- Dual attention blocks in the first 12 transformer layers, plus QK normalization to keep training stable at scale.

QK normalization matters more than it sounds. Normalizing the query and key vectors before attention prevents the dot products from blowing up during training, which historically forced diffusion teams into fragile learning rate schedules. Stability explicitly credits it as the piece that made downstream fine-tuning easier for the community.
Training across five resolutions
The recipe leans on progressive, mixed-scale training rather than a single resolution pass. Stages ran at 256, 512, 768, 1024, and finally 1440 pixels, with the last stage mixing scales together. One clever detail: the team extended positional embedding space to 384x384 (latent) at lower resolution stages and used random crop augmentation on positional embeddings. For a 64x64 latent image, they add a randomly cropped 64x64 embedding from the 192x192 embedding space during training as the input to the x stream. The upshot is that the same checkpoint can produce a small square icon or a 2 MP wide-aspect render without falling apart.
On the text side, the model uses three frozen encoders in parallel: OpenCLIP-ViT/G, CLIP-ViT/L, and T5-XXL. One caveat worth knowing before you write novel-length prompts: artifacts can appear at the edges of generations when T5 tokens exceed 256, so shortening prompts is the recommended fix.
Running it and shrinking it
Diffusers integration is one pip install away. A minimal run in bfloat16 looks like this:
import torch
from diffusers import StableDiffusion3Pipeline
pipe = StableDiffusion3Pipeline.from_pretrained(
"stabilityai/stable-diffusion-3.5-medium",
torch_dtype=torch.bfloat16,
).to("cuda")
image = pipe(
"A capybara holding a sign that reads Hello World",
num_inference_steps=40,
guidance_scale=4.5,
).images[0]
For tighter VRAM budgets, the model card documents a 4-bit NF4 path via bitsandbytes combined with enable_model_cpu_offload(), which brings 8 GB cards into play. Stability also recommends sampling with Skip Layer Guidance for better structure and anatomy coherence, a technique now built into ComfyUI.
Licensing, pricing, and where it fits
Commercial terms match the setup that shipped with Large. All three variants use the Stability AI Community License, which is free for non-commercial use and for commercial users earning less than US$1 million in annual revenue. Above that, an enterprise license is required. Weights are a free download from Hugging Face; if you would rather hit an API, Stability charges roughly 6.5 credits per image (about $0.065) for Large and 4 credits for Turbo.
Where Medium slots in is fairly clear: it is the customization workhorse of the family. Large still owns the quality ceiling, but Medium already has more than a hundred adapter models and dozens of fine-tunes on Hugging Face, and it is small enough to LoRA-tune on a single 24 GB card. If your workload involves shipping a stylized generator inside a product, or iterating on prompts locally without an API bill, this is the checkpoint most likely to earn its keep. For photoreal humans at studio quality, Large is still the better call.